Re: [PATCH net-next v15 00/14] Device Memory TCP

2024-06-27 Thread Mina Almasry
On Thu, Jun 27, 2024 at 5:32 PM Mina Almasry wrote: > > v15: > https://patchwork.kernel.org/project/netdevbpf/list/?series=865481&state=* > > > No material changes in this version, only a fix to linking against > libynl.a from the last version. Per Jakub's instructions I've pulled one > of h

[PATCH v3 2/2] KVM: selftests: aarch64: Add writable test for ID_AA64PFR1_EL1

2024-06-27 Thread Shaoqin Huang
Add writable test for the ID_AA64PFR1_EL1 register. Signed-off-by: Shaoqin Huang --- tools/testing/selftests/kvm/aarch64/set_id_regs.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/kvm/aarch64/set_id_regs.c b/tools/testing/selftests/kvm/aarch64/set_id_regs.

[PATCH v3 0/2] Allow userspace to change ID_AA64PFR1_EL1

2024-06-27 Thread Shaoqin Huang
Allow userspace to change the guest-visible value of the register with some severe limitation: - No changes to features not virtualized by KVM (MPAM_frac, RAS_frac, SME, RNDP_trap). - No changes to features (CSV2_frac, NMI, MTE_frac, GCS, THE, MTEX, DF2, PFAR) which haven't been added

[PATCH net v3 2/2] skmsg: bugfix for sk_msg sge iteration

2024-06-27 Thread Geliang Tang
From: Geliang Tang Every time run this BPF selftests (./test_sockmap) on a Loongarch platform, a Kernel panic occurs: ''' Oops[#1]: CPU: 20 PID: 23245 Comm: test_sockmap Tainted: G OE 6.10.0-rc2+ #32 Hardware name: LOONGSON Dabieshan/Loongson-TC542F0, BIOS Loongson-UDK2018 ... ... ra

[PATCH net v3 1/2] skmsg: prevent empty ingress skb from enqueuing

2024-06-27 Thread Geliang Tang
From: Geliang Tang Run this BPF selftests (./test_progs -t sockmap_basic) on a Loongarch platform, a Kernel panic occurs: ''' Oops[#1]: CPU: 22 PID: 2824 Comm: test_progs Tainted: G OE 6.10.0-rc2+ #18 Hardware name: LOONGSON Dabieshan/Loongson-TC542F0, BIOS Loongson-UDK2018 ... ...

[PATCH net v3 0/2] bugfixes for skmsg

2024-06-27 Thread Geliang Tang
From: Geliang Tang v3: - modifications that better address the root causes. - only contains the first two patches for -net. v2: - add patch 2, a new fix for sk_msg_memcopy_from_iter. - update patch 3, only test "sk->sk_prot->close" as Eric suggested. - update patch 4, use "goto err" instead

Re: [PATCH v6 3/4] selftest/mm: test enable_soft_offline behaviors

2024-06-27 Thread Miaohe Lin
On 2024/6/26 13:08, Jiaqi Yan wrote: > Add regression and new tests when hugepage has correctable memory > errors, and how userspace wants to deal with it: > * if enable_soft_offline=1, mapped hugepage is soft offlined > * if enable_soft_offline=0, mapped hugepage is intact > > Free hugepages case

Re: [PATCH v6 2/4] mm/memory-failure: userspace controls soft-offlining pages

2024-06-27 Thread David Rientjes
On Wed, 26 Jun 2024, Jiaqi Yan wrote: > diff --git a/mm/memory-failure.c b/mm/memory-failure.c > index 6f5ac334efba..1559e773537f 100644 > --- a/mm/memory-failure.c > +++ b/mm/memory-failure.c > @@ -68,6 +68,8 @@ static int sysctl_memory_failure_early_kill __read_mostly; > > static int sysctl_m

[PATCH net-next v15 14/14] selftests: add ncdevmem, netcat for devmem TCP

2024-06-27 Thread Mina Almasry
ncdevmem is a devmem TCP netcat. It works similarly to netcat, but it sends and receives data using the devmem TCP APIs. It uses udmabuf as the dmabuf provider. It is compatible with a regular netcat running on a peer, or a ncdevmem running on a peer. In addition to normal netcat support, ncdevmem

[PATCH net-next v15 13/14] tools: net: package libynl for use in selftests

2024-06-27 Thread Mina Almasry
From: Jakub Kicinski Support building the C YNL userspace library into one big static file. We can then link selftests against it for easy to use C netlink interface. Signed-off-by: Jakub Kicinski Signed-off-by: Mina Almasry --- v15: - Added this patch from Jakub to fix linking against ynl.

[PATCH net-next v15 12/14] net: add devmem TCP documentation

2024-06-27 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya --- v9: https://lore.kernel.org/netdev/20240403002053.2376017-14-almasrym...@google.com/ - Bagas doc suggestions. v8: - Applied docs suggestions (Randy). Thanks! v7: - App

[PATCH net-next v15 11/14] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-06-27 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry --- v

[PATCH net-next v15 09/14] net: add support for skbs with unreadable frags

2024-06-27 Thread Mina Almasry
For device memory TCP, we expect the skb headers to be available in host memory for access, and we expect the skb frags to be in device memory and unaccessible to the host. We expect there to be no mixing and matching of device memory frags (unaccessible) with host memory frags (accessible) in the

[PATCH net-next v15 10/14] tcp: RX path for devmem TCP

2024-06-27 Thread Mina Almasry
In tcp_recvmsg_locked(), detect if the skb being received by the user is a devmem skb. In this case - if the user provided the MSG_SOCK_DEVMEM flag - pass it to tcp_recvmsg_devmem() for custom handling. tcp_recvmsg_devmem() copies any data in the skb header to the linear buffer, and returns a cmsg

[PATCH net-next v15 07/14] memory-provider: dmabuf devmem memory provider

2024-06-27 Thread Mina Almasry
Implement a memory provider that allocates dmabuf devmem in the form of net_iov. The provider receives a reference to the struct netdev_dmabuf_binding via the pool->mp_priv pointer. The driver needs to set this pointer for the provider in the net_iov. The provider obtains a reference on the netde

[PATCH net-next v15 08/14] net: support non paged skb frags

2024-06-27 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return section of the functions I touched.

[PATCH net-next v15 05/14] page_pool: convert to use netmem

2024-06-27 Thread Mina Almasry
Abstract the memory type from the page_pool so we can later add support for new memory types. Convert the page_pool to use the new netmem type abstraction, rather than use struct page directly. As of this patch the netmem type is a no-op abstraction: it's always a struct page underneath. All the p

[PATCH net-next v15 06/14] page_pool: devmem support

2024-06-27 Thread Mina Almasry
Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack: struct { unsigned long pp_mag

[PATCH net-next v15 04/14] netdev: netdevice devmem allocator

2024-06-27 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates net_iov from that binding. The allocation simply delegates to the binding's genpool for the allocation logic and wraps the returned memory region in a net_iov struct. Signed-off-by:

[PATCH net-next v15 03/14] netdev: support binding dma-buf to netdevice

2024-06-27 Thread Mina Almasry
Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from mapping will be inserted into a genpool

[PATCH net-next v15 02/14] net: netdev netlink api to bind dma-buf to a net device

2024-06-27 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- v7: - Use flags: [ admin-perm ] instead of a CAP_NET_ADMIN check. Changes in v1: - Add rx-queue-type to

[PATCH net-next v15 01/14] netdev: add netdev_rx_queue_restart()

2024-06-27 Thread Mina Almasry
Add netdev_rx_queue_restart() function to netdev_rx_queue.h Signed-off-by: David Wei Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov --- v13: - Add reviewed-by from Pavel (thanks!) - Fixed comment (Pavel) v11: - Fix not checking dev->queue_mgmt_ops (Pavel). - Fix ndo_queue_mem_free c

[PATCH net-next v15 00/14] Device Memory TCP

2024-06-27 Thread Mina Almasry
v15: https://patchwork.kernel.org/project/netdevbpf/list/?series=865481&state=* No material changes in this version, only a fix to linking against libynl.a from the last version. Per Jakub's instructions I've pulled one of his patches into this series, and now use the new libynl.a correctly,

Re: [PATCH net-next v1 3/3] selftests: rds: add testing infrastructure

2024-06-27 Thread Jakub Kicinski
On Tue, 25 Jun 2024 18:28:34 -0700 allison.hender...@oracle.com wrote: > From: Vegard Nossum > > This adds some basic self-testing infrastructure for RDS-TCP. > > Signed-off-by: Vegard Nossum > Signed-off-by: Chuck Lever > Signed-off-by: Allison Henderson > --- > Documentation/dev-tools/gcov

Re: [PATCH net-next v1 2/3] net: rds: add option for GCOV profiling

2024-06-27 Thread Jakub Kicinski
On Tue, 25 Jun 2024 18:28:33 -0700 allison.hender...@oracle.com wrote: > From: Vegard Nossum > > To better our unit tests we need code coverage to be part of the kernel. > This patch borrows heavily from how CONFIG_GCOV_PROFILE_FTRACE is > implemented Hi Florian, IIRC you were able to generate t

Re: [PATCH net-next v3 0/7] selftests: net: Switch pmtu.sh to use the internal ovs script.

2024-06-27 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Tue, 25 Jun 2024 13:22:38 -0400 you wrote: > Currently, if a user wants to run pmtu.sh and cover all the provided test > cases, they need to install the Open vSwitch userspace utilities. This > dependency is diff

Re: selftests/ftrace kprobe_eventname test fails on s390x QEMU (KVM/Linux)

2024-06-27 Thread Yunseong Kim
Hi all, On 6/28/24 1:15 오전, Sven Schnelle wrote: > Yunseong Kim writes: > >> In my s390x archtecture, kprobe_eventname selftest have always failed >> because of rcu_sched stalls. >> >> My environment is QEMU Ubuntu 24.04 KVM Machine Linux version >> 6.8.0-36-generic (buildd@bos01-s390x-012) (s39

Re: [PATCH v2 3/5] kunit: string-stream-test: Make it a separate module

2024-06-27 Thread Ivan Orlov
On 6/21/24 22:07, 'Rae Moar' via KUnit Development wrote: On Tue, Jun 18, 2024 at 1:03 PM Ivan Orlov wrote: Currently, the only way to build string-stream-test is by setting CONFIG_KUNIT_TEST=y. However, CONFIG_KUNIT_TEST is a config option for a different test (`kunit-test.c`). Introduce a n

Re: [PATCH v2 3/5] kunit: string-stream-test: Make it a separate module

2024-06-27 Thread Ivan Orlov
On 6/19/24 19:09, Jeff Johnson wrote: On 6/18/24 10:03, Ivan Orlov wrote: Currently, the only way to build string-stream-test is by setting CONFIG_KUNIT_TEST=y. However, CONFIG_KUNIT_TEST is a config option for a different test (`kunit-test.c`). Introduce a new Kconfig entry in order to be able

Re: [PATCH net-next v14 13/13] selftests: add ncdevmem, netcat for devmem TCP

2024-06-27 Thread Jakub Kicinski
On Thu, 27 Jun 2024 13:36:57 -0700 Mina Almasry wrote: > `make -C ./tools/testing/selftests/net TARGETS=ncdevmem`, which works. AFAIU the most supported incantation would have to be something rather insane, like: make -C tools/testing/selftests TARGETS=net TEST_GEN_PROGS="$(pwd)/tools/testing/se

Re: [PATCH v2 5/5] kunit: Merge assertion test into kunit-test.c

2024-06-27 Thread Ivan Orlov
On 6/21/24 22:38, Rae Moar wrote: On Tue, Jun 18, 2024 at 1:03 PM Ivan Orlov wrote: Since assert_test covers the part of the KUnit core (the assertion formatting functions), I believe it would be better to have it merged into kunit-test (as it is done for other tests for the KUnit core). Sign

Re: [PATCH net-next v14 13/13] selftests: add ncdevmem, netcat for devmem TCP

2024-06-27 Thread Jakub Kicinski
On Thu, 27 Jun 2024 12:55:38 -0700 Mina Almasry wrote: > `git clean -fdx && make headers_install && make -C > ./tools/testing/selftests/net` works > > `git clean -fdx && make headers_install && make -C > ./tools/testing/selftests/net ncdevmem` doesn't work with this error: Hm, I haven't tested

Re: [PATCH net-next v14 13/13] selftests: add ncdevmem, netcat for devmem TCP

2024-06-27 Thread Mina Almasry
On Thu, Jun 27, 2024 at 12:55 PM Mina Almasry wrote: > > On Wed, Jun 26, 2024 at 5:46 PM Jakub Kicinski wrote: > > > > On Wed, 26 Jun 2024 15:08:22 -0700 Jakub Kicinski wrote: > > > On Tue, 25 Jun 2024 19:54:01 + Mina Almasry wrote: > > > > +CFLAGS += -I../../../net/ynl/generated/ > > > > +CF

Re: [PATCH net-next v14 13/13] selftests: add ncdevmem, netcat for devmem TCP

2024-06-27 Thread Mina Almasry
On Wed, Jun 26, 2024 at 5:46 PM Jakub Kicinski wrote: > > On Wed, 26 Jun 2024 15:08:22 -0700 Jakub Kicinski wrote: > > On Tue, 25 Jun 2024 19:54:01 + Mina Almasry wrote: > > > +CFLAGS += -I../../../net/ynl/generated/ > > > +CFLAGS += -I../../../net/ynl/lib/ > > > + > > > +LDLIBS += ../../../ne

Re: [PATCH v3 1/2] kunit: test: Add vm_mmap() allocation resource manager

2024-06-27 Thread Kees Cook
On Sat, Jun 22, 2024 at 06:47:39AM -0700, Guenter Roeck wrote: > Hi, > > On Wed, Jun 12, 2024 at 12:59:18PM -0700, Kees Cook wrote: > > For tests that need to allocate using vm_mmap() (e.g. usercopy and > > execve), provide the interface to have the allocation tracked by KUnit > > itself. This req

Re: [PATCH 1/2] selftests/watchdog: limit ping loop and allow configuring the number of pings

2024-06-27 Thread Shuah Khan
On 5/6/24 05:13, Laura Nao wrote: In order to run the watchdog selftest with the kselftest runner, the loop responsible for pinging the watchdog should be finite. This change limits the loop to 5 iterations by default and introduces a new '-c' option to adjust the number of pings as needed. Thi

Re: [PATCH 2/2] selftests/watchdog: convert the test output to KTAP format

2024-06-27 Thread Shuah Khan
On 5/6/24 05:13, Laura Nao wrote: Modify the script output to conform to the KTAP format standard. The What is script here? number of tests executed is determined by the script arguments, and options such as -c, -f, -h, -i, and -p do not impact the total test count. No functional change is i

Re: [PATCH v7 1/1] selftests: Centralize -D_GNU_SOURCE= to CFLAGS in lib.mk

2024-06-27 Thread Shuah Khan
On 6/25/24 16:34, Edward Liaw wrote: Centralize the _GNU_SOURCE definition to CFLAGS in lib.mk. Remove redundant defines from Makefiles that import lib.mk. Convert any usage of "#define _GNU_SOURCE 1" to "#define _GNU_SOURCE". This uses the form "-D_GNU_SOURCE=", which is equivalent to "#defin

Re: [PATCH v7 00/16] Add support for a few Zc* extensions, Zcmop and Zimop

2024-06-27 Thread patchwork-bot+linux-riscv
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Wed, 19 Jun 2024 13:35:10 +0200 you wrote: > Add support for (yet again) more RVA23U64 missing extensions. Add > support for Zimop, Zcmop, Zca, Zcf, Zcd and Zcb extensions ISA string > parsing, hwprobe and kvm sup

Re: [PATCH 1/1] KVM: selftests: pmu_counters_test: increase robustness of LLC cache misses

2024-06-27 Thread Sean Christopherson
On Fri, Jun 21, 2024, Maxim Levitsky wrote: > Currently this test does a single CLFLUSH on its memory location > but due to speculative execution this might not cause LLC misses. > > Instead, do a cache flush on each loop iteration to confuse the prediction > and make sure that cache misses always

Re: [PATCH v2] selftests/capabilities: Fix possible file leak in copy_fromat_to

2024-06-27 Thread Shuah Khan
On 6/26/24 19:57, Ma Ke wrote: The open() function returns -1 on error. openat() and open() initialize 'from' and 'to', and only 'from' validated with 'if' statement. If the initialization of variable 'to' fails, we should better check the value of 'to' and close 'from' to avoid possible file lea

Re: [PATCH v2] kunit/usercopy: Disable testing on !CONFIG_MMU

2024-06-27 Thread Kees Cook
Hi Shuah, Can you please add this to your -next tree since it fixes test failures on non-MMU systems, after commit cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test"). Thanks! -Kees On Thu, Jun 20, 2024 at 05:13:35PM -0400, Rae Moar wrote: > On Wed, Jun 19, 2024 at 4:25 PM Kees Cook

Re: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-06-27 Thread Reinette Chatre
Hi Maciej On 6/27/24 2:50 AM, Maciej Wieczor-Retman wrote: Yeah, I've been thinking about what is the best way to display these for a while. Maybe you're right that messages at the top will be lost. What about this set of messages: 1. First run of run_single_test() 1.1. For all tests:

Re: [PATCH v4 2/2] selftests: Add a test mangling with uc_sigmask

2024-06-27 Thread Mark Brown
On Thu, Jun 27, 2024 at 09:22:15AM +0530, Dev Jain wrote: > This test asserts the relation between blocked signal, delivered signal, > and ucontext. The ucontext is mangled with, by adding a signal mask to > it; on return from the handler, the thread must block the corresponding > signal. Reviewed

Re: selftests/ftrace kprobe_eventname test fails on s390x QEMU (KVM/Linux)

2024-06-27 Thread Sven Schnelle
Yunseong Kim writes: > In my s390x archtecture, kprobe_eventname selftest have always failed > because of rcu_sched stalls. > > My environment is QEMU Ubuntu 24.04 KVM Machine Linux version > 6.8.0-36-generic (buildd@bos01-s390x-012) (s390x-linux-gnu-gcc-13 > (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU

[PATCH] selftests/hid: ensure CKI can compile our new tests on old kernels

2024-06-27 Thread Benjamin Tissoires
bpf_ctx *ctx, __u64 source); + struct hid_device *hdev; +}; + #ifndef BPF_F_BEFORE #define BPF_F_BEFORE (1U << 3) #endif --- base-commit: d3e15189bfd4d0a9d3a7ad8bd0e6ebb1c0419f93 change-id: 20240627-fix-cki-f372855cbf6f Best regards, -- Benjamin Tissoires

[PATCH net-next 12/12] selftests: mlxsw: mirror_gre: Obey TESTS

2024-06-27 Thread Petr Machata
This test is unusual in that overriding TESTS does not change the tests to be run. Split the individual tests into several functions and invoke them through tests_run() as appropriate. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/mirror_gre.sh | 2

[PATCH net-next 11/12] selftests: libs: Drop unused functions

2024-06-27 Thread Petr Machata
Nothing calls these. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/net/forwarding/mirror_gre_lib.sh | 11 --- .../selftests/net/forwarding/mirror_lib.sh | 18 -- 2 files changed, 29 deletions(-) diff --git a/tools/testing/selftests/net/f

[PATCH net-next 09/12] selftests: mirror_gre_lag_lacp: Drop unnecessary code

2024-06-27 Thread Petr Machata
The selftest does not use functions from mirror_gre_lib, ditch the import. It does not use arping either, so drop the require_command as well. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/mirror_gre_lag_lacp.sh | 3 --- 1 file changed, 3 d

[PATCH net-next 10/12] selftests: libs: Drop slow_path_trap_install()/_uninstall()

2024-06-27 Thread Petr Machata
These functions are not used anymore. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/lib.sh | 16 1 file changed, 16 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forw

[PATCH net-next 07/12] selftests: mirror: Drop dual SW/HW testing

2024-06-27 Thread Petr Machata
The mirroring tests are currently run in a skip_hw and optionally a skip_sw mode. The former tests the SW datapath, the latter the HW datapath, if available. In order to be able to test SW datapath on HW loopbacks, traps are installed on ingress to get traffic from the HW datapath to the SW one. Th

[PATCH net-next 08/12] selftests: mlxsw: mirror_gre: Simplify

2024-06-27 Thread Petr Machata
After the previous patch, the function test_span_failable() is always called with should_fail=1. Drop the argument and streamline the code. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/mirror_gre.sh | 17 + 1 file changed, 5 inse

[PATCH net-next 06/12] selftests: mirror: mirror_test(): Allow exact count of packets

2024-06-27 Thread Petr Machata
The mirroring selftests work by sending ICMP traffic between two hosts. Along the way, this traffic is mirrored to a gretap netdevice, and counter taps are then installed strategically along the path of the mirrored traffic to verify the mirroring took place. The problem with this is that besides

[PATCH net-next 05/12] selftests: mirror: do_test_span_dir_ips(): Install accurate taps

2024-06-27 Thread Petr Machata
The mirroring selftests work by sending ICMP traffic between two hosts. Along the way, this traffic is mirrored to a gretap netdevice, and counter taps are then installed strategically along the path of the mirrored traffic to verify the mirroring took place. The problem with this is that besides

[PATCH net-next 03/12] selftests: lib: tc_rule_stats_get(): Move default to argument definition

2024-06-27 Thread Petr Machata
The argument $dir has a fallback value of "ingress". Move the fallback from the usage site to the argument definition block to make the fact clearer. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH net-next 04/12] selftests: mirror_gre_lag_lacp: Check counters at tunnel

2024-06-27 Thread Petr Machata
The test works by sending packets through a tunnel, whence they are forwarded to a LAG. One of the LAG children is removed from the LAG prior to the exercise, and the test then counts how many packets pass through the other one. The issue with this is that it counts all packets, not just the encaps

[PATCH net-next 02/12] selftests: mirror: Drop direction argument from several functions

2024-06-27 Thread Petr Machata
The argument is not used by these functions except to propagate it for ultimately no purpose. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/mirror_gre.sh | 12 .../selftests/net/forwarding/mirror_gre.sh| 12 .../net/forwarding

[PATCH net-next 01/12] selftests: libs: Expand "$@" where possible

2024-06-27 Thread Petr Machata
In some functions, argument-forwarding through "$@" without listing the individual arguments explicitly is fundamental to the operation of a function. E.g. xfail_on_veth() should be able to run various tests in the fail-to-xfail regime, and usage of "$@" is appropriate as an abstraction mechanism.

[PATCH net-next 00/12] selftest: Clean-up and stabilize mirroring tests

2024-06-27 Thread Petr Machata
The mirroring selftests work by sending ICMP traffic between two hosts. Along the way, this traffic is mirrored to a gretap netdevice, and counter taps are then installed strategically along the path of the mirrored traffic to verify the mirroring took place. The problem with this is that besides

Re: selftests/ftrace kprobe_eventname test fails on s390x QEMU (KVM/Linux)

2024-06-27 Thread Google
Hi, Thanks for reporting! On Thu, 27 Jun 2024 14:03:14 +0900 Yunseong Kim wrote: > Hi all, > > > In my s390x archtecture, kprobe_eventname selftest have always failed > because of rcu_sched stalls. > > My environment is QEMU Ubuntu 24.04 KVM Machine Linux version > 6.8.0-36-generic (buildd@b

Re: selftests/ftrace kprobe_eventname test fails on s390x QEMU (KVM/Linux)

2024-06-27 Thread Steven Rostedt
On Thu, 27 Jun 2024 14:03:14 +0900 Yunseong Kim wrote: > My environment is QEMU Ubuntu 24.04 KVM Machine Linux version > 6.8.0-36-generic (buildd@bos01-s390x-012) (s390x-linux-gnu-gcc-13 > (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #36 Could you see if you have the

Re: [PATCH net-next v3 6/7] selftests: net: Use the provided dpctl rather than the vswitchd for tests.

2024-06-27 Thread Aaron Conole
Simon Horman writes: > On Tue, Jun 25, 2024 at 01:22:44PM -0400, Aaron Conole wrote: >> The current pmtu test infrastucture requires an installed copy of the >> ovs-vswitchd userspace. This means that any automated or constrained >> environments may not have the requisite tools to run the tests.

[PATCH net-next v5 25/25] testing/selftest: add test tool and scripts for ovpn module

2024-06-27 Thread Antonio Quartulli
The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. It implementes the netlink API and can thus be integrated in any script for more automated testing. Along with the tool, 2 scripts are added that perform basic functionality tests by means of network namespaces. T

Re: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-06-27 Thread Maciej Wieczor-Retman
On 2024-06-26 at 09:46:01 -0700, Reinette Chatre wrote: >Hi Maciej, > >On 6/26/24 12:09 AM, Maciej Wieczor-Retman wrote: >> Hello!, >> >> On 2024-06-25 at 09:28:55 -0700, Reinette Chatre wrote: >> > Hi Maciej, >> > >> > On 6/25/24 4:04 AM, Maciej Wieczor-Retman wrote: >> > > Hello, >> > > sorry i

Re: [PATCH HID v2 04/13] HID: bpf: add HID-BPF hooks for hid_hw_raw_requests

2024-06-27 Thread Benjamin Tissoires
On Jun 26 2024, Alexei Starovoitov wrote: > On Wed, Jun 26, 2024 at 6:46 AM Benjamin Tissoires wrote: > > > > This allows to intercept and prevent or change the behavior of > > hid_hw_raw_request() from a bpf program. > > > > The intent is to solve a couple of use case: > > - firewalling a HID dev

Re: [PATCH HID v2 00/13] HID: bpf_struct_ops, part 2

2024-06-27 Thread Benjamin Tissoires
On Wed, 26 Jun 2024 15:46:21 +0200, Benjamin Tissoires wrote: > This series is a followup of the struct_ops conversion. > > Therefore, it is based on top of the for-6.11/bpf branch of the hid.git > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/log/?h=for-6.11/bpf > > The fir

Re: [PATCH net-next v5 10/10] selftests: openvswitch: add emit_sample test

2024-06-27 Thread Adrián Moreno
On Wed, Jun 26, 2024 at 01:15:21PM GMT, Ilya Maximets wrote: > On 6/25/24 22:51, Adrian Moreno wrote: > > Add a test to verify sampling packets via psample works. > > > > In order to do that, create a subcommand in ovs-dpctl.py to listen to > > on the psample multicast group and print samples. > >

Re: [PATCH] selftests/alsa:Fix printf format string in pcm-test.c

2024-06-27 Thread Takashi Iwai
On Wed, 26 Jun 2024 10:48:59 +0200, Zhu Jun wrote: > > Inside of test_pcm_time() arguments are printed via printf > but '%d' is used to print @flags (of type unsigned int). > Use '%u' instead, just like we do everywhere else. > > Signed-off-by: Zhu Jun Applied now to for-next branch. Thanks.

Re: [PATCH bpf-next v2 1/4] skmsg: null check for sg_page in sk_msg_recvmsg

2024-06-27 Thread Geliang Tang
Hi John, On Wed, 2024-06-26 at 21:05 +0800, Geliang Tang wrote: > On Tue, 2024-06-25 at 12:37 -0700, John Fastabend wrote: > > Eric Dumazet wrote: > > > On Tue, Jun 25, 2024 at 10:25 AM Geliang Tang > > > > > > wrote: > > > > > > > > From: Geliang Tang > > > > > > > > Run the following BPF sel