Re: [PATCH RFC 2/6] mm/slub: add sheaf support for batching kfree_rcu() operations

2024-11-17 Thread Vlastimil Babka
On 11/14/24 17:57, Uladzislau Rezki wrote: > On Tue, Nov 12, 2024 at 05:38:46PM +0100, Vlastimil Babka wrote: >> --- a/kernel/rcu/tree.c >> +++ b/kernel/rcu/tree.c >> @@ -65,6 +65,7 @@ >> #include >> #include >> #include "../time/tick-internal.h" >> +#include "../../mm/slab.h" >> >> #includ

[PATCH] landlock: ptrace_test: remove unused macros

2024-11-17 Thread Ba Jing
After reviewing the code, it was found that these macros are never referenced in the code. Just remove them. Signed-off-by: Ba Jing --- tools/testing/selftests/landlock/ptrace_test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/landlock/ptrace_test.c b/tools/test

[PATCH] kvm: hardware_disable_test: remove unused macro

2024-11-17 Thread Ba Jing
After reviewing the code, it was found that the macro GUEST_CODE_PIO_PORT is never referenced in the code. Just remove it. Signed-off-by: Ba Jing --- tools/testing/selftests/kvm/hardware_disable_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/kvm/hardware_disabl

Re: [PATCH net 2/2] selftests/rtnetlink.sh: add mngtempaddr test

2024-11-17 Thread Hangbin Liu
On Thu, Nov 14, 2024 at 07:13:40AM -0800, Jakub Kicinski wrote: > > I will modify the test with Sam's suggestions and see if it could pass. > > The other option is that some other test doesn't clean up after itself, > since we reuse VMs. We have a script in NIPA to map things: > contest/cithreadma

[PATCH bpf v4 2/2] selftests/bpf: Add some tests with sockmap SK_PASS

2024-11-17 Thread Jiayuan Chen
Add a new tests in sockmap_basic.c to test SK_PASS for sockmap Signed-off-by: Jiayuan Chen --- .../selftests/bpf/prog_tests/sockmap_basic.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c b/tools/testing/selftests/

[PATCH bpf v4 1/2] bpf: fix recursive lock when verdict program return SK_PASS

2024-11-17 Thread Jiayuan Chen
When the stream_verdict program returns SK_PASS, it places the received skb into its own receive queue, but a recursive lock eventually occurs, leading to an operating system deadlock. This issue has been present since v6.9. ''' sk_psock_strp_data_ready write_lock_bh(&sk->sk_callback_lock)

[PATCH bpf v4 0/2] bpf: fix recursive lock and add test

2024-11-17 Thread Jiayuan Chen
1. fix recursive lock when ebpf prog return SK_PASS. 2. add selftest to reproduce recursive lock. Note that the test code can reproduce the 'dead-lock' and if just the selftest merged without first patch, the test case will definitely fail, because the issue of deadlock is inevitable. --- v2->v4:

Re: [PATCH v5] acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl

2024-11-17 Thread Ira Weiny
Suraj Sonawane wrote: > Fix an issue detected by syzbot with KASAN: > > BUG: KASAN: vmalloc-out-of-bounds in cmd_to_func drivers/acpi/nfit/ > core.c:416 [inline] > BUG: KASAN: vmalloc-out-of-bounds in acpi_nfit_ctl+0x20e8/0x24a0 > drivers/acpi/nfit/core.c:459 > > The issue occurs in cmd_to_func w

Re: [PATCH] dt-bindings: remoteproc: Consolidate SC8180X and SM8150 PAS files

2024-11-17 Thread Dmitry Baryshkov
On Sat, Nov 16, 2024 at 12:40:04PM +0100, Konrad Dybcio wrote: > From: Konrad Dybcio > > SC8180X PAS bindings are plain wrong, resulting in false-positive > dt checker errors. SC8180X's remoteprocs happen to be identical to > SM8150's from the kernel point of view, so reuse that binding instead.

[PATCH net-next] selftests: net/psock_lib: Handle EINTR and EAGAIN

2024-11-17 Thread Leo Stone
Make pair_udp_send_char handle EAGAIN, EINTR, and partial reads or writes. Signed-off-by: Leo Stone --- tools/testing/selftests/net/psock_lib.h | 39 +++-- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/net/psock_lib.h b/tools/testing/

Re: [PATCH] selftests: lsm: Refactor `flags_overset_lsm_set_self_attr` test

2024-11-17 Thread Amit
On 14/11/24 10:38 pm, Shuah Khan wrote: On 11/14/24 09:55, Casey Schaufler wrote: On 11/14/2024 8:25 AM, Shuah Khan wrote: On 11/12/24 11:28, Amit Vadhavana wrote: - Remove unnecessary `tctx` variable, use `ctx` directly. - Simplified code with no functional changes. I would rephrase the s

Re: [PATCH v2] selftests/powerpc: Remove the path after initialization.

2024-11-17 Thread Michael Ellerman
On Mon, 30 Sep 2024 09:27:57 +0800, zhangjiao2 wrote: > If there were no anamolies noted, then we can > simply remove the log file and return. > > Applied to powerpc/next. [1/1] selftests/powerpc: Remove the path after initialization. https://git.kernel.org/powerpc/c/7ca93aa9204b706e4afcd

Re: [PATCHv2 net-next] selftests: wireguards: use nft by default

2024-11-17 Thread Jason A. Donenfeld
On Mon, Nov 11, 2024 at 04:19:02AM +, Hangbin Liu wrote: > Use nft by default if it's supported, as nft is the replacement for iptables, > which is used by default in some releases. Additionally, iptables is dropped > in some releases. Rather than having this optionality, I'd rather just do e

Re: [PATCHv2 net] selftests: wireguard: load nf_conntrack if it's not present

2024-11-17 Thread Jason A. Donenfeld
On Tue, Nov 12, 2024 at 09:48:27AM +, Hangbin Liu wrote: > Some distros may not load nf_conntrack by default, which will cause > subsequent nf_conntrack settings to fail. Let's load this module if it's > not loaded by default. > > Fixes: e7096c131e51 ("net: WireGuard secure network tunnel") >