[PATCH v2 2/2] selftests/harness: Use 1024 in place of LINE_MAX

2024-05-08 Thread Tao Su
Android was seeing a compilation error because its C library does not define LINE_MAX. Since LINE_MAX is only used to determine the size of test_name[] and 1024 should be enough for the test name, use 1024 instead of LINE_MAX. Fixes: 38c957f07038 ("selftests: kselftest_harness: generate test name

[PATCH v2 1/2] Revert "selftests/harness: remove use of LINE_MAX"

2024-05-08 Thread Tao Su
This reverts commit 8092162335554c8ef5e7f50eff68aa9cfbdbf865. asprintf() is declared in stdio.h when defining _GNU_SOURCE, but stdio.h is so common that many files don’t define _GNU_SOURCE before including stdio.h, and defining _GNU_SOURCE after including stdio.h will no longer take effect, which

[PATCH v2 0/2] Selftests: Fix compilation warnings due to missing _GNU_SOURCE definition

2024-05-08 Thread Tao Su
Since kselftest_harness.h introduces asprintf()[1], many selftests have compilation warnings or errors due to missing _GNU_SOURCE definitions. The issue stems from a lack of a LINE_MAX definition in Android (see commit 38c957f07038), which is the reason why asprintf() was introduced. We tried

Re: [PATCH v2 3/5] selftests: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Mark Brown
On Tue, May 07, 2024 at 09:38:28PM +, Edward Liaw wrote: > tools/testing/selftests/arm64/signal/Makefile | 2 +- This is not really using any of the kselftest framework at all to build so I'm not sure the change makes sense for it. OTOH it does no harm... signature.asc

Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h

2024-05-08 Thread Tao Su
On Wed, May 08, 2024 at 10:57:47AM -0700, Edward Liaw wrote: > On Wed, May 8, 2024 at 7:00 AM Jakub Kicinski wrote: > > > > On Wed, 8 May 2024 10:55:05 +0800 Tao Su wrote: > > > Back to commit 38c957f07038, I don't see any advantage in using LINE_MAX. > > > Can we use a fixed value instead of

Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h

2024-05-08 Thread Tao Su
On Wed, May 08, 2024 at 07:00:03AM -0700, Jakub Kicinski wrote: > On Wed, 8 May 2024 10:55:05 +0800 Tao Su wrote: > > Back to commit 38c957f07038, I don't see any advantage in using LINE_MAX. > > Can we use a fixed value instead of LINE_MAX? E.g., 1024, 2048. Then we > > just need to revert commit

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Christoph Hellwig
On Wed, May 08, 2024 at 06:02:14PM +0100, Pavel Begunkov wrote: > Well, the example fell flat, but you don't use dmabuf when there are > no upsides from using it. For instance, when you already have pinned > pages, you're going to use pages, and there are no other refcounting > concerns. Sure. >

Re: [PATCH v2] kunit: Cover 'assert.c' with tests

2024-05-08 Thread kernel test robot
Hi Ivan, kernel test robot noticed the following build warnings: [auto build test WARNING on shuah-kselftest/kunit] [also build test WARNING on shuah-kselftest/kunit-fixes linus/master v6.9-rc7 next-20240508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v2] kunit: Cover 'assert.c' with tests

2024-05-08 Thread kernel test robot
Hi Ivan, kernel test robot noticed the following build warnings: [auto build test WARNING on shuah-kselftest/kunit] [also build test WARNING on linus/master v6.9-rc7 next-20240508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [PATCH 1/3] selftests/exec: Build both static and non-static load_address tests

2024-05-08 Thread John Hubbard
On 5/8/24 10:31 AM, Kees Cook wrote: After commit 4d1cd3b2c5c1 ("tools/testing/selftests/exec: fix link error"), the load address alignment tests tried to build statically. This was silently ignored in some cases. However, after attempting to further fix the build by switching to "-static-pie",

kselftest/next kselftest-livepatch: 1 runs, 1 regressions (v6.9-rc7-44-g2c3b8f8f37c6)

2024-05-08 Thread kernelci.org bot
kselftest/next kselftest-livepatch: 1 runs, 1 regressions (v6.9-rc7-44-g2c3b8f8f37c6) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions

Re: [PATCH net-next v3] selftests: drv-net: add checksum tests

2024-05-08 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Tue, 7 May 2024 11:40:58 -0400 you wrote: > From: Willem de Bruijn > > Run tools/testing/selftest/net/csum.c as part of drv-net. > This binary covers multiple scenarios, based on arguments given, > for both

kselftest/next build: 3 builds: 0 failed, 3 passed (v6.9-rc7-44-g2c3b8f8f37c6)

2024-05-08 Thread kernelci.org bot
kselftest/next build: 3 builds: 0 failed, 3 passed (v6.9-rc7-44-g2c3b8f8f37c6) Full Build Summary: https://kernelci.org/build/kselftest/branch/next/kernel/v6.9-rc7-44-g2c3b8f8f37c6/ Tree: kselftest Branch: next Git Describe: v6.9-rc7-44-g2c3b8f8f37c6 Git Commit:

Re: [PATCH v2 3/5] selftests: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread John Hubbard
On 5/8/24 5:29 PM, Edward Liaw wrote: On Wed, May 8, 2024 at 2:41 PM John Hubbard wrote: On 5/7/24 2:38 PM, Edward Liaw wrote: ... Seeing as how these all include lib.mk, and all use CFLAGS, is there any reason not to simply fix this in lib.mk instead? Like this: diff --git

Re: [PATCH v3 00/29] riscv control-flow integrity for usermode

2024-05-08 Thread Charlie Jenkins
On Wed, Apr 03, 2024 at 04:34:48PM -0700, Deepak Gupta wrote: > Sending out v3 for cpu assisted riscv user mode control flow integrity. > > v2 [9] was sent a week ago for this riscv usermode control flow integrity > enabling. RFC patchset was (v1) early this year (January) [7]. > > changes in v3

Re: [PATCH v2 3/5] selftests: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Edward Liaw
On Wed, May 8, 2024 at 2:41 PM John Hubbard wrote: > > On 5/7/24 2:38 PM, Edward Liaw wrote: > > Add KHDR_INCLUDES to CFLAGS to pull in the kselftest harness > > dependencies (-D_GNU_SOURCE). > > > > Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") > > Signed-off-by: Edward Liaw

Re: [PATCH v3 01/29] riscv: envcfg save and restore on task switching

2024-05-08 Thread Charlie Jenkins
On Wed, Apr 03, 2024 at 04:34:49PM -0700, Deepak Gupta wrote: > envcfg CSR defines enabling bits for cache management instructions and > soon will control enabling for control flow integrity and pointer > masking features. > > Control flow integrity enabling for forward cfi and backward cfi are >

Re: [PATCH v3 05/29] riscv: zicfiss / zicfilp enumeration

2024-05-08 Thread Charlie Jenkins
On Thu, May 09, 2024 at 08:00:00AM +0800, Andy Chiu wrote: > Hi Deepak, > > On Thu, Apr 4, 2024 at 7:41 AM Deepak Gupta wrote: > > > > This patch adds support for detecting zicfiss and zicfilp. zicfiss and > > zicfilp stands for unprivleged integer spec extension for shadow stack > > and branch

Re: [PATCH v3 05/29] riscv: zicfiss / zicfilp enumeration

2024-05-08 Thread Andy Chiu
Hi Deepak, On Thu, Apr 4, 2024 at 7:41 AM Deepak Gupta wrote: > > This patch adds support for detecting zicfiss and zicfilp. zicfiss and > zicfilp stands for unprivleged integer spec extension for shadow stack > and branch tracking on indirect branches, respectively. > > This patch looks for

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-08 Thread Shuah Khan
On 5/7/24 15:38, Edward Liaw wrote: 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be defined prior to including headers or with the -D_GNU_SOURCE flag passed to the compiler. v1:

Re: [PATCH v2 5/5] selftests: Drop duplicate -D_GNU_SOURCE

2024-05-08 Thread John Hubbard
On 5/7/24 2:38 PM, Edward Liaw wrote: -D_GNU_SOURCE can be de-duplicated here, as it is added by KHDR_INCLUDES. Signed-off-by: Edward Liaw --- Most of the churn in these Makefiles can be avoided if it is possible to take my recommendation on patch 3/5 [1]. However, as it is, it is correct,

Re: [PATCH v2 3/5] selftests: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread John Hubbard
On 5/7/24 2:38 PM, Edward Liaw wrote: Add KHDR_INCLUDES to CFLAGS to pull in the kselftest harness dependencies (-D_GNU_SOURCE). Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/alsa/Makefile | 2 +-

Re: [PATCH v2 4/5] selftests: Drop define _GNU_SOURCE

2024-05-08 Thread John Hubbard
On 5/7/24 2:38 PM, Edward Liaw wrote: _GNU_SOURCE is provided by KHDR_INCLUDES, so it should be dropped to prevent _GNU_SOURCE redefined warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- Very nice. Reviewed-by: John Hubbard thanks,

Re: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread John Hubbard
On 5/7/24 2:38 PM, Edward Liaw wrote: Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness dependencies (-D_GNU_SOURCE). Also, remove redefinitions of _GNU_SOURCE in the source code. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reported-by: kernel test robot

Re: [PATCH v2 1/5] selftests: Compile kselftest headers with -D_GNU_SOURCE

2024-05-08 Thread John Hubbard
On 5/7/24 2:38 PM, Edward Liaw wrote: Add the -D_GNU_SOURCE flag to KHDR_INCLUDES so that it is defined in a central location. 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced asprintf into kselftest_harness.h, which is a GNU extension and needs _GNU_SOURCE to either be

Re: [PATCH 3/3] selftests/futex: pass _GNU_SOURCE without a value to the compiler

2024-05-08 Thread John Hubbard
On 5/2/24 9:18 PM, John Hubbard wrote: It's slightly better to set _GNU_SOURCE in the source code, but if one must do it via the compiler invocation, then the best way to do so is this: Hi Shuah, Edward and all, This patch now seems to be obsolete, due to Edward Liaw's comprehensive fix,

[PATCH v4] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftests ...two types of warnings occur: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value warning: taking the absolute

Re: [PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
On 5/8/24 1:24 PM, Reinette Chatre wrote: Hi John, On 5/8/2024 12:41 PM, John Hubbard wrote: ... diff --git a/tools/testing/selftests/resctrl/mba_test.c b/tools/testing/selftests/resctrl/mba_test.c index 7946e32e85c8..5fffbc9ff6a4 100644 --- a/tools/testing/selftests/resctrl/mba_test.c +++

Re: [PATCH v2 4/5] selftests: Drop define _GNU_SOURCE

2024-05-08 Thread Edward Liaw
On Wed, May 8, 2024 at 6:54 AM Sean Christopherson wrote: > > On Tue, May 07, 2024, Edward Liaw wrote: > > _GNU_SOURCE is provided by KHDR_INCLUDES, so it should be dropped to > > prevent _GNU_SOURCE redefined warnings. > > ... > > > diff --git a/tools/testing/selftests/x86/test_syscall_vdso.c >

Re: [PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread Reinette Chatre
Hi John, On 5/8/2024 12:41 PM, John Hubbard wrote: > When building with clang, via: > > make LLVM=1 -C tools/testing/selftests > > ...two types of warnings occur: > > warning: absolute value function 'abs' given an argument of type > 'long' but has parameter of type 'int' which may

[PATCH] selftests/netfilter: formally SKIP() two cases of setup failure

2024-05-08 Thread John Hubbard
If mnl_socket_open() or mnl_socket_bind() fails, it's generally due to not having the user space parts fully installed and configured correctly. This was previously ignored and reported as a test PASS, but what really happened is that the tests were being skipped. This led to generating inaccurate

[PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns about several cases of using a signed integer for the priority argument to mq_receive(3), which expects an unsigned int. Fix this by declaring the type as unsigned int in all cases. Also, both input and

[PATCH v3] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftests ...two types of warnings occur: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value warning: taking the absolute

Re: [PATCH] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
This was supposed to be a v3 patch. I'll resend as v3, sorry about creating a confusing email here. thanks, -- John Hubbard NVIDIA On 5/8/24 12:02 PM, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...two types of warnings occur: warning:

[PATCH] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
When building with clang, via: make LLVM=1 -C tools/testing/selftests ...two types of warnings occur: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value warning: taking the absolute

[PATCH REPOST net-next v3] selftest: epoll_busy_poll: epoll busy poll tests

2024-05-08 Thread Joe Damato
Add a simple test for the epoll busy poll ioctls, using the kernel selftest harness. This test ensures that the ioctls have the expected return codes and that the kernel properly gets and sets epoll busy poll parameters. The test can be expanded in the future to do real busy polling (provided

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-08 Thread Edward Liaw
On Wed, May 8, 2024 at 6:47 AM Sean Christopherson wrote: > > On Tue, May 07, 2024, Edward Liaw wrote: > > 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > > asprintf into kselftest_harness.h, which is a GNU extension and needs > > _GNU_SOURCE to either be defined prior to

Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h

2024-05-08 Thread Edward Liaw
On Wed, May 8, 2024 at 7:00 AM Jakub Kicinski wrote: > > On Wed, 8 May 2024 10:55:05 +0800 Tao Su wrote: > > Back to commit 38c957f07038, I don't see any advantage in using LINE_MAX. > > Can we use a fixed value instead of LINE_MAX? E.g., 1024, 2048. Then we > > just need to revert commit

Re: [PATCH AUTOSEL 6.8 18/52] KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF

2024-05-08 Thread Sasha Levin
On Wed, May 08, 2024 at 06:25:39AM +, Oliver Upton wrote: Hi, On Tue, May 07, 2024 at 07:06:44PM -0400, Sasha Levin wrote: From: Oliver Upton [ Upstream commit 160933e330f4c5a13931d725a4d952a4b9aefa71 ] Can you please drop this and pick up the bugfix instead? 6ddb4f372fc6 ("KVM:

[PATCH 3/3] binfmt_elf: Honor PT_LOAD alignment for static PIE

2024-05-08 Thread Kees Cook
The p_align values in PT_LOAD were ignored for static PIE executables (i.e. ET_DYN without PT_INTERP). This is because there is no way to request a non-fixed mmap region with a specific alignment. ET_DYN with PT_INTERP uses a separate base address (ELF_ET_DYN_BASE) and binfmt_elf performs the ASLR

[PATCH 2/3] binfmt_elf: Calculate total_size earlier

2024-05-08 Thread Kees Cook
In preparation to support PT_LOAD with large p_align values on non-PT_INTERP ET_DYN executables (i.e. "static pie"), we'll need to use the total_size details earlier. Move this separately now to make the next patch more readable. As total_size and load_bias are currently calculated separately,

[PATCH 0/3] binfmt_elf: Honor PT_LOAD alignment for static PIE

2024-05-08 Thread Kees Cook
Hi, This attempts to implement PT_LOAD p_align support for static PIE builds. I intend this to go into -next after the coming merge window so we can maximize bake time. In the past we've had regressions with both the selftests and the ELF loader. Hopefully we can shake everything out over a few

[PATCH 1/3] selftests/exec: Build both static and non-static load_address tests

2024-05-08 Thread Kees Cook
After commit 4d1cd3b2c5c1 ("tools/testing/selftests/exec: fix link error"), the load address alignment tests tried to build statically. This was silently ignored in some cases. However, after attempting to further fix the build by switching to "-static-pie", the test started failing. This appears

Re: [PATCH v2] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread John Hubbard
On 5/8/24 1:00 AM, Ilpo Järvinen wrote: On Tue, 7 May 2024, Reinette Chatre wrote: Hi John, On 5/7/2024 6:25 PM, John Hubbard wrote: On 5/7/24 6:21 PM, Reinette Chatre wrote: Hi John, ... Yes, there are two *abs() calls in this function. In this case is okay to remove the first one since

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Pavel Begunkov
On 5/8/24 16:51, Christoph Hellwig wrote: On Wed, May 08, 2024 at 12:35:52PM +0100, Pavel Begunkov wrote: all these, because e.g. ttm internally does have a page pool because depending upon allocator, that's indeed beneficial. Other drm drivers have more buffer-based concepts for

Re: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Jarkko Sakkinen
On Wed May 8, 2024 at 6:33 PM EEST, Dave Hansen wrote: > On 5/7/24 14:38, Edward Liaw wrote: > > Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness > > dependencies (-D_GNU_SOURCE). > > > > Also, remove redefinitions of _GNU_SOURCE in the source code. > > From an x86 and SGX

Re: [PATCH 1/2] Fix userfaultfd_api to return EINVAL as expected

2024-05-08 Thread David Hildenbrand
On 08.05.24 14:58, Audra Mitchell wrote: On Wed, May 08, 2024 at 09:39:10AM +0200, David Hildenbrand wrote: On 07.05.24 21:55, Audra Mitchell wrote: Currently if we request a feature that is not set in the Kernel config we fail silently and return the available features. However, the

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Pavel Begunkov
On 5/8/24 16:58, Jason Gunthorpe wrote: On Wed, May 08, 2024 at 04:44:32PM +0100, Pavel Begunkov wrote: like a weird and indirect way to get there. Why can't io_uring just be the entity that does the final free and not mess with the logic allocator? Then the user has to do a syscall (e.g.

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Jason Gunthorpe
On Wed, May 08, 2024 at 04:44:32PM +0100, Pavel Begunkov wrote: > > like a weird and indirect way to get there. Why can't io_uring just be > > the entity that does the final free and not mess with the logic > > allocator? > > Then the user has to do a syscall (e.g. via io_uring) to return pages,

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Christoph Hellwig
On Wed, May 08, 2024 at 12:35:52PM +0100, Pavel Begunkov wrote: > > all these, because e.g. ttm internally does have a page pool because > > depending upon allocator, that's indeed beneficial. Other drm drivers have > > more buffer-based concepts for opportunistically memory around, usually > > by

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Pavel Begunkov
On 5/8/24 15:25, Jason Gunthorpe wrote: On Wed, May 08, 2024 at 12:30:07PM +0100, Pavel Begunkov wrote: I'm not going to pretend to know about page pool details, but dmabuf is the way to get the bulk of pages into a pool within the net stack's allocator and keep that bulk properly refcounted

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Daniel Vetter
On Wed, May 08, 2024 at 12:35:52PM +0100, Pavel Begunkov wrote: > On 5/8/24 08:16, Daniel Vetter wrote: > > On Tue, May 07, 2024 at 08:32:47PM -0300, Jason Gunthorpe wrote: > > > On Tue, May 07, 2024 at 08:35:37PM +0100, Pavel Begunkov wrote: > > > > On 5/7/24 18:56, Jason Gunthorpe wrote: > > > >

Re: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Dave Hansen
On 5/7/24 14:38, Edward Liaw wrote: > Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness > dependencies (-D_GNU_SOURCE). > > Also, remove redefinitions of _GNU_SOURCE in the source code. >From an x86 and SGX perspective, looks fine. I assume Shuah is planning on taking this pile.

Re: [PATCH net-next v3] selftest: epoll_busy_poll: epoll busy poll tests

2024-05-08 Thread Jakub Kicinski
On Tue, 7 May 2024 19:21:50 -0700 Joe Damato wrote: > On Wed, May 08, 2024 at 12:43:26AM +, Joe Damato wrote: > > Add a simple test for the epoll busy poll ioctls, using the kernel > > selftest harness. > > > > This test ensures that the ioctls have the expected return codes and > > that the

Re: [PATCH bpf-next] bpf, arm64: Add support for lse atomics in bpf_arena

2024-05-08 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Fri, 26 Apr 2024 16:11:16 + you wrote: > When LSE atomics are available, BPF atomic instructions are implemented > as single ARM64 atomic instructions, therefore it is easy to enable > these in bpf_arena

Re: [PATCH bpf-next 3/4] selftests/bpf: Add mptcp subflow example

2024-05-08 Thread Alexei Starovoitov
On Wed, May 8, 2024 at 12:36 AM Matthieu Baerts wrote: > > > > > The concern with picking reno is extra deps to CI and every developer. > > Currently in selftests/bpf/config we do: > > CONFIG_TCP_CONG_DCTCP=y > > CONFIG_TCP_CONG_BBR=y > > > > I'd like to avoid adding reno there as well. > > Will

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Jason Gunthorpe
On Wed, May 08, 2024 at 12:30:07PM +0100, Pavel Begunkov wrote: > > I'm not going to pretend to know about page pool details, but dmabuf > > is the way to get the bulk of pages into a pool within the net stack's > > allocator and keep that bulk properly refcounted while.> An object like > >

Re: [PATCH 1/2] Fix userfaultfd_api to return EINVAL as expected

2024-05-08 Thread Peter Xu
On Wed, May 08, 2024 at 08:58:42AM -0400, Audra Mitchell wrote: > On Wed, May 08, 2024 at 09:39:10AM +0200, David Hildenbrand wrote: > > On 07.05.24 21:55, Audra Mitchell wrote: > > > Currently if we request a feature that is not set in the Kernel > > > config we fail silently and return the

Re: [PATCH] selftests: Add _GNU_SOURCE definition when including kselftest_harness.h

2024-05-08 Thread Jakub Kicinski
On Wed, 8 May 2024 10:55:05 +0800 Tao Su wrote: > Back to commit 38c957f07038, I don't see any advantage in using LINE_MAX. > Can we use a fixed value instead of LINE_MAX? E.g., 1024, 2048. Then we > just need to revert commit 809216233555. SGTM, FWIW. The print is printing a test summary line,

Re: [PATCH v2 4/5] selftests: Drop define _GNU_SOURCE

2024-05-08 Thread Sean Christopherson
On Tue, May 07, 2024, Edward Liaw wrote: > _GNU_SOURCE is provided by KHDR_INCLUDES, so it should be dropped to > prevent _GNU_SOURCE redefined warnings. ... > diff --git a/tools/testing/selftests/x86/test_syscall_vdso.c > b/tools/testing/selftests/x86/test_syscall_vdso.c > index

[PATCH v5 8/8] selftests/pcie_bwctrl: Create selftests

2024-05-08 Thread Ilpo Järvinen
Create selftests for PCIe BW control through the PCIe cooling device sysfs interface. First, the BW control selftest finds the PCIe Port to test with. By default, the PCIe Port with the highest Link Speed is selected but another PCIe Port can be provided with -d parameter. The actual test steps

Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using

2024-05-08 Thread Sean Christopherson
On Tue, May 07, 2024, Edward Liaw wrote: > 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > asprintf into kselftest_harness.h, which is a GNU extension and needs > _GNU_SOURCE to either be defined prior to including headers or with the > -D_GNU_SOURCE flag passed to the

Re: [PATCH][next] selftests/powerpc/dexcr: Fix spelling mistake "predicition" -> "prediction"

2024-05-08 Thread Michael Ellerman
On Wed, 08 May 2024 09:41:17 +0100, Colin Ian King wrote: > There is a spelling mistake in the help message. Fix it. > > Applied to powerpc/next. [1/1] selftests/powerpc/dexcr: Fix spelling mistake "predicition" -> "prediction"

[PATCH v2] kunit: Cover 'assert.c' with tests

2024-05-08 Thread Ivan Orlov
There are multiple assertion formatting functions in the `assert.c` file, which are not covered with tests yet. Implement the KUnit test for these functions. The test consists of 11 test cases for the following functions: 1) 'is_literal' 2) 'is_str_literal' 3) 'kunit_assert_prologue', test case

Re: [PATCH 1/2] Fix userfaultfd_api to return EINVAL as expected

2024-05-08 Thread Audra Mitchell
On Wed, May 08, 2024 at 09:39:10AM +0200, David Hildenbrand wrote: > On 07.05.24 21:55, Audra Mitchell wrote: > > Currently if we request a feature that is not set in the Kernel > > config we fail silently and return the available features. However, the > > documentation indicates we should return

Re: [PATCH v2 1/5] selftests: Compile kselftest headers with -D_GNU_SOURCE

2024-05-08 Thread Mark Brown
On Tue, May 07, 2024 at 09:38:26PM +, Edward Liaw wrote: > Add the -D_GNU_SOURCE flag to KHDR_INCLUDES so that it is defined in a > central location. > > 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > asprintf into kselftest_harness.h, which is a GNU extension and

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Pavel Begunkov
On 5/8/24 08:16, Daniel Vetter wrote: On Tue, May 07, 2024 at 08:32:47PM -0300, Jason Gunthorpe wrote: On Tue, May 07, 2024 at 08:35:37PM +0100, Pavel Begunkov wrote: On 5/7/24 18:56, Jason Gunthorpe wrote: On Tue, May 07, 2024 at 06:25:52PM +0100, Pavel Begunkov wrote: On 5/7/24 17:48,

Re: [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits

2024-05-08 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Tue, 7 May 2024 11:11:55 +0200 you wrote: > Without this change the created netns instances are not cleared after > this script execution. To fix this problem the cleanup_all_ns function > from ../lib.sh is

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Pavel Begunkov
On 5/8/24 00:32, Jason Gunthorpe wrote: On Tue, May 07, 2024 at 08:35:37PM +0100, Pavel Begunkov wrote: On 5/7/24 18:56, Jason Gunthorpe wrote: On Tue, May 07, 2024 at 06:25:52PM +0100, Pavel Begunkov wrote: On 5/7/24 17:48, Jason Gunthorpe wrote: On Tue, May 07, 2024 at 09:42:05AM -0700,

Re: [PATCH v4 2/9] riscv: smp: fail booting up smp if inconsistent vlen is detected

2024-05-08 Thread Alexandre Ghiti
Hi Andy, On 08/05/2024 10:21, Andy Chiu wrote: On Thu, Apr 25, 2024 at 4:01 AM Alexandre Ghiti wrote: Hi Andy, On 12/04/2024 08:48, Andy Chiu wrote: Currently we only support Vector for SMP platforms, that is, all SMP cores have the same vlenb. If we happen to detect a mismatching vlen, it

Re: [PATCH bpf-next] bpf, arm64: Add support for lse atomics in bpf_arena

2024-05-08 Thread Puranjay Mohan
Puranjay Mohan writes: > When LSE atomics are available, BPF atomic instructions are implemented > as single ARM64 atomic instructions, therefore it is easy to enable > these in bpf_arena using the currently available exception handling > setup. > > LL_SC atomics use loops and therefore would

Re: [PATCH] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

2024-05-08 Thread Ryan Roberts
On 07/05/2024 18:04, John Hubbard wrote: > On 5/7/24 12:54 AM, Ryan Roberts wrote: >> On 05/05/2024 23:13, John Hubbard wrote: > ... >>> diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c >>> b/tools/testing/selftests/mqueue/mq_perf_tests.c >>> index 5c16159d0bcd..fb898850867c 100644 >>>

Re: [net-next PATCH] test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits

2024-05-08 Thread Simon Horman
On Tue, May 07, 2024 at 11:11:55AM +0200, Lukasz Majewski wrote: > Without this change the created netns instances are not cleared after > this script execution. To fix this problem the cleanup_all_ns function > from ../lib.sh is called. > > Signed-off-by: Lukasz Majewski Reviewed-by: Simon

[PATCH][next] selftests/powerpc/dexcr: Fix spelling mistake "predicition" -> "prediction"

2024-05-08 Thread Colin Ian King
There is a spelling mistake in the help message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/powerpc/dexcr/chdexcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/dexcr/chdexcr.c

Re: [PATCH v4 2/9] riscv: smp: fail booting up smp if inconsistent vlen is detected

2024-05-08 Thread Andy Chiu
On Thu, Apr 25, 2024 at 4:01 AM Alexandre Ghiti wrote: > > Hi Andy, > > On 12/04/2024 08:48, Andy Chiu wrote: > > Currently we only support Vector for SMP platforms, that is, all SMP > > cores have the same vlenb. If we happen to detect a mismatching vlen, it > > is better to just fail bootting

Re: [PATCH v2] selftests/resctrl: fix clang build warnings related to abs(), labs() calls

2024-05-08 Thread Ilpo Järvinen
On Tue, 7 May 2024, Reinette Chatre wrote: > Hi John, > > On 5/7/2024 6:25 PM, John Hubbard wrote: > > On 5/7/24 6:21 PM, Reinette Chatre wrote: > >> Hi John, > > ... > >> > >> The following (what was in v1) looks good to me. What am I missing? > >> > >> diff --git

Re: [PATCH v2 5/5] selftests: Drop duplicate -D_GNU_SOURCE

2024-05-08 Thread Muhammad Usama Anjum
On 5/8/24 2:38 AM, Edward Liaw wrote: > -D_GNU_SOURCE can be de-duplicated here, as it is added by > KHDR_INCLUDES. > > Signed-off-by: Edward Liaw Reviewed-by: Muhammad Usama Anjum > --- > tools/testing/selftests/futex/functional/Makefile | 2 +- > tools/testing/selftests/iommu/Makefile

Re: [PATCH v2 3/5] selftests: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Muhammad Usama Anjum
On 5/8/24 2:38 AM, Edward Liaw wrote: > Add KHDR_INCLUDES to CFLAGS to pull in the kselftest harness > dependencies (-D_GNU_SOURCE). > > Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") > Signed-off-by: Edward Liaw Reviewed-by: Muhammad Usama Anjum > --- >

Re: [PATCH v2 4/5] selftests: Drop define _GNU_SOURCE

2024-05-08 Thread Muhammad Usama Anjum
On 5/8/24 2:38 AM, Edward Liaw wrote: > _GNU_SOURCE is provided by KHDR_INCLUDES, so it should be dropped to > prevent _GNU_SOURCE redefined warnings. > > Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") > Signed-off-by: Edward Liaw Reviewed-by: Muhammad Usama Anjum > --- >

Re: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile

2024-05-08 Thread Muhammad Usama Anjum
On 5/8/24 2:38 AM, Edward Liaw wrote: > Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness > dependencies (-D_GNU_SOURCE). > > Also, remove redefinitions of _GNU_SOURCE in the source code. > > Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") > Reported-by: kernel

Re: [PATCH v2 1/5] selftests: Compile kselftest headers with -D_GNU_SOURCE

2024-05-08 Thread Muhammad Usama Anjum
Thanks for patches On 5/8/24 2:38 AM, Edward Liaw wrote: > Add the -D_GNU_SOURCE flag to KHDR_INCLUDES so that it is defined in a > central location. > > 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > asprintf into kselftest_harness.h, which is a GNU extension and needs

Re: [PATCH 1/2] Fix userfaultfd_api to return EINVAL as expected

2024-05-08 Thread David Hildenbrand
On 07.05.24 21:55, Audra Mitchell wrote: Currently if we request a feature that is not set in the Kernel config we fail silently and return the available features. However, the documentation indicates we should return an EINVAL. I assume you are referencing "EINVAL The API version requested

Re: [PATCH bpf-next 3/4] selftests/bpf: Add mptcp subflow example

2024-05-08 Thread Matthieu Baerts
Hi Alexei, Thank you for your reply! On 07/05/2024 22:54, Alexei Starovoitov wrote: > On Tue, May 7, 2024 at 9:03 AM Matthieu Baerts wrote: >> >> Hi Alexei, >> >> Thank you for the review! >> >> On 07/05/2024 16:49, Alexei Starovoitov wrote: >>> On Tue, May 7, 2024 at 3:53 AM Matthieu Baerts

Re: [PATCH bpf-next 2/4] selftests/bpf: Add RUN_MPTCP_TEST macro

2024-05-08 Thread Matthieu Baerts
Hi Alexei, Thank you for your reply! On 07/05/2024 22:51, Alexei Starovoitov wrote: > On Tue, May 7, 2024 at 9:02 AM Matthieu Baerts wrote: >> >> Hi Alexei, >> >> Thank you for the review! >> >> On 07/05/2024 16:44, Alexei Starovoitov wrote: >>> On Tue, May 7, 2024 at 3:53 AM Matthieu Baerts

Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers

2024-05-08 Thread Daniel Vetter
On Tue, May 07, 2024 at 08:32:47PM -0300, Jason Gunthorpe wrote: > On Tue, May 07, 2024 at 08:35:37PM +0100, Pavel Begunkov wrote: > > On 5/7/24 18:56, Jason Gunthorpe wrote: > > > On Tue, May 07, 2024 at 06:25:52PM +0100, Pavel Begunkov wrote: > > > > On 5/7/24 17:48, Jason Gunthorpe wrote: > > >

Re: [PATCH] Build guest_memfd_test also on arm64.

2024-05-08 Thread Itaru Kitayama
Hi Paolo, > On Feb 23, 2024, at 17:57, Paolo Bonzini wrote: > > On Thu, Feb 22, 2024 at 12:44 AM Itaru Kitayama > wrote: >> on arm64 KVM_CAP_GUEST_MEMDF capability is not enabled, but >> guest_memfd_test can build on arm64, let's build it on arm64 as well. > > The test will be skipped, so

Re: [PATCH AUTOSEL 6.8 18/52] KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF

2024-05-08 Thread Oliver Upton
Hi, On Tue, May 07, 2024 at 07:06:44PM -0400, Sasha Levin wrote: > From: Oliver Upton > > [ Upstream commit 160933e330f4c5a13931d725a4d952a4b9aefa71 ] Can you please drop this and pick up the bugfix instead? 6ddb4f372fc6 ("KVM: arm64: vgic-v2: Check for non-NULL vCPU in