Re: [RFC 27/31] objtool: Fix weak symbol detection

2024-09-03 Thread Josh Poimboeuf
On Tue, Sep 03, 2024 at 10:26:45AM +0200, Peter Zijlstra wrote: > On Mon, Sep 02, 2024 at 09:00:10PM -0700, Josh Poimboeuf wrote: > > @@ -433,9 +433,13 @@ static void elf_add_symbol(struct elf *elf, struct > > symbol *sym) > > /* > > * Don't store empty STT_NOTYPE symbols in the rbtree.

Re: [PATCH] mm/damon/tests/vaddr-kunit: don't use mas_lock for MM_MT_FLAGS-initialized maple tree

2024-09-03 Thread Guenter Roeck
On 9/3/24 20:36, Liam R. Howlett wrote: * Guenter Roeck [240903 22:38]: On 9/3/24 19:31, Liam R. Howlett wrote: * SeongJae Park [240903 21:18]: On Tue, 3 Sep 2024 17:58:15 -0700 SeongJae Park wrote: On Tue, 3 Sep 2024 20:48:53 -0400 "Liam R. Howlett" wrote: * SeongJae Park [240903 2

Re: [RFC 28/31] x86/alternative: Create symbols for special section entries

2024-09-03 Thread Josh Poimboeuf
On Tue, Sep 03, 2024 at 10:29:09AM +0200, Peter Zijlstra wrote: > On Mon, Sep 02, 2024 at 09:00:11PM -0700, Josh Poimboeuf wrote: > > Create a symbol for each special section entry. This helps objtool > > extract needed entries. > > A little more explanation would be nice,.. Indeed! From: Josh

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-03 Thread Josh Poimboeuf
On Tue, Sep 03, 2024 at 10:32:00AM -0700, Song Liu wrote: > Hi Josh, > > Thanks for the patchset! We really need this work so that we can undo our > hack for LTO enabled kernels. > > On Mon, Sep 2, 2024 at 9:00 PM Josh Poimboeuf wrote: > > > > Hi, > > > > Here's a new way to build livepatch modu

Re: [PATCH v4 2/2] livepatch: Add using attribute to klp_func for using function show

2024-09-03 Thread Josh Poimboeuf
On Wed, Aug 28, 2024 at 10:23:50AM +0800, Wardenjohn wrote: > One system may contains more than one livepatch module. We can see > which patch is enabled. If some patches applied to one system > modifing the same function, livepatch will use the function enabled > on top of the function stack. Howe

Re: [PATCH v6 1/2] selftests: Rename sigaltstack to generic signal

2024-09-03 Thread Dev Jain
On 9/4/24 03:14, Shuah Khan wrote: On 8/30/24 10:29, Dev Jain wrote: On 8/27/24 17:16, Dev Jain wrote: On 8/27/24 17:14, Shuah Khan wrote: On 8/22/24 06:14, Dev Jain wrote: Rename sigaltstack to generic signal directory, to allow adding more signal tests in the future. Sorry - I think I

[PATCH net-next 0/3] lan743x: This series of patches are for lan743x driver testing

2024-09-03 Thread Mohan Prasad J
This series of patches are for testing the lan743x network driver. Testing comprises autonegotiation, speed, duplex and throughput checks. Tools such as ethtool, iperf3 are used in the testing process. Performance test is done for TCP streams at different speeds. Signed-off-by: Mohan Prasad J Mo

[PATCH net-next 1/3] selftests: lan743x: Add testfile for lan743x network driver

2024-09-03 Thread Mohan Prasad J
Add testfile for lan743x network driver. Testfile includes the verification of status of autonegotiation. Ksft modules and ethtool are used for the testing. net/lib libraries are included for testing. Add the __init__.py file. Include /microchip/lan743x as a target in Makefile. Updated MAINTAINERS

[PATCH net-next 2/3] selftests: lan743x: Add testcase to check speed and duplex state of lan743x

2024-09-03 Thread Mohan Prasad J
Add testcase for checking speed and duplex states for lan743x network driver. Testcase comprises of varying the network speed and duplex state to 10/100/1000Mbps and half/full via ethtool. Signed-off-by: Mohan Prasad J --- .../net/hw/microchip/lan743x/lan743x.py | 33 +++ 1

[PATCH net-next 3/3] selftests: lan743x: Add testcase to check throughput of lan743x

2024-09-03 Thread Mohan Prasad J
Add testcase to check TCP throughput of lan743x network driver. Test uses iperf3 to do performance testing of the driver. TCP data at different speeds is sent, received and verified. Signed-off-by: Mohan Prasad J --- .../net/hw/microchip/lan743x/lan743x.py | 33 +++ 1 file

Re: [PATCH net-next 0/3] lan743x: This series of patches are for lan743x driver testing

2024-09-03 Thread Andrew Lunn
On Wed, Sep 04, 2024 at 03:45:46AM +0530, Mohan Prasad J wrote: > This series of patches are for testing the lan743x network driver. > Testing comprises autonegotiation, speed, duplex and throughput checks. > Tools such as ethtool, iperf3 are used in the testing process. > Performance test is done

Re: [PATCH v2 2/2] vdpa: Remove ioctl VHOST_VDPA_SET_CONFIG per spec compliance

2024-09-03 Thread Dragos Tatulea
On 04.09.24 05:38, Jason Wang wrote: > On Wed, Sep 4, 2024 at 1:15 AM Carlos Bilbao > wrote: >> >> From: Carlos Bilbao >> >> Remove invalid ioctl VHOST_VDPA_SET_CONFIG and all its implementations >> with vdpa_config_ops->set_config(). This is needed per virtio spec >> requirements; virtio-spec

[PATCH v2] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-03 Thread Wenbo Li
Currently, the virtio-net driver will perform a pre-dma-mapping for small or mergeable RX buffer. But for small packets, a mismatched address without VIRTNET_RX_PAD and xdp_headroom is used for unmapping. That will result in unsynchronized buffers when SWIOTLB is enabled, for example, when running

[PATCH net] selftests: net: enable bind tests

2024-09-03 Thread Jamie Bainbridge
bind_wildcard is compiled but not run, bind_timewait is not compiled. These two tests complete in a very short time, use the test harness properly, and seem reasonable to enable. The author of the tests confirmed via email that these were intended to be run. Enable these two tests. Fixes: 13715

[PATCH] iommufd/selftest:fix a resource leak

2024-09-03 Thread Liu Jing
If the file fails to open, not only return return1 but also close the file descriptor,otherwise resource leak will occur Signed-off-by: Liu Jing --- .../selftests/iommu/iommufd_fail_nth.c| 143 ++ 1 file changed, 83 insertions(+), 60 deletions(-) diff --git a/tools/test

Re: [PATCH v2] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-03 Thread Jason Wang
On Wed, Sep 4, 2024 at 2:10 PM Wenbo Li wrote: > > Currently, the virtio-net driver will perform a pre-dma-mapping for > small or mergeable RX buffer. But for small packets, a mismatched address > without VIRTNET_RX_PAD and xdp_headroom is used for unmapping. > > That will result in unsynchronized

Re: [PATCH v2 2/2] vdpa: Remove ioctl VHOST_VDPA_SET_CONFIG per spec compliance

2024-09-03 Thread Jason Wang
On Wed, Sep 4, 2024 at 1:59 PM Dragos Tatulea wrote: > > > > On 04.09.24 05:38, Jason Wang wrote: > > On Wed, Sep 4, 2024 at 1:15 AM Carlos Bilbao > > wrote: > >> > >> From: Carlos Bilbao > >> > >> Remove invalid ioctl VHOST_VDPA_SET_CONFIG and all its implementations > >> with vdpa_config_ops->

Re: [PATCH v4 2/2] livepatch: Add using attribute to klp_func for using function show

2024-09-03 Thread zhang warden
> On Sep 4, 2024, at 12:48, Josh Poimboeuf wrote: > > On Wed, Aug 28, 2024 at 10:23:50AM +0800, Wardenjohn wrote: >> One system may contains more than one livepatch module. We can see >> which patch is enabled. If some patches applied to one system >> modifing the same function, livepatch will

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-03 Thread Josh Poimboeuf
On Tue, Sep 03, 2024 at 10:26:02PM -0700, Song Liu wrote: > Hi Josh, > > I have attached the config I used for LLVM and gcc. !IBT is triggering the ORC bug. This should fix it: diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 518c70b8db50..643bfba65d48 100755 --- a/scripts/l

Re: [PATCH v2] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-03 Thread Xuan Zhuo
On Wed, 4 Sep 2024 14:10:09 +0800, Wenbo Li wrote: > Currently, the virtio-net driver will perform a pre-dma-mapping for > small or mergeable RX buffer. But for small packets, a mismatched address > without VIRTNET_RX_PAD and xdp_headroom is used for unmapping. Will used virt_to_head_page(), so

<    1   2