Re: [PATCH v6 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Blaise Boscaccy
Song Liu writes: > On Fri, Mar 7, 2025 at 5:33 PM Blaise Boscaccy > wrote: >> >> This test exercises the kernel flag added to security_bpf by >> effectively blocking light-skeletons from loading while allowing >> normal skeletons to function as-is. Since this should work with any >> arbitrary BP

Re: [PATCH v3 4/7] Input: synaptics-rmi4 - f55: handle zero electrode count

2025-03-10 Thread Dmitry Torokhov
On Sat, Mar 08, 2025 at 03:08:40PM +0100, David Heidelberg via B4 Relay wrote: > From: methanal > > Some third party ICs claim to support f55 but report an electrode count > of 0. Catch this and bail out early so that we don't confuse the i2c bus > with 0 sized reads. > > Signed-off-by: methanal

[PATCH 3/9] rcutorture: Split out beginning and end from rcu_torture_one_read()

2025-03-10 Thread Paul E. McKenney
The rcu_torture_one_read() function is designed for RCU readers that are confined to a task, such that a single thread of control extends from the beginning of a given RCU read-side critical section to its end. This does not suffice for things like srcu_down_read() and srcu_up_read(), where the cr

[PATCH v12 3/3] selftests/rseq: Add test for mm_cid compaction

2025-03-10 Thread Gabriele Monaco
A task in the kernel (task_mm_cid_work) runs somewhat periodically to compact the mm_cid for each process. Add a test to validate that it runs correctly and timely. The test spawns 1 thread pinned to each CPU, then each thread, including the main one, runs in short bursts for some time. During thi

Re: [PATCH v21 18/24] ovpn: add support for peer floating

2025-03-10 Thread Antonio Quartulli
On 07/03/2025 11:12, Sabrina Dubroca wrote: 2025-03-06, 11:02:50 +0100, Antonio Quartulli wrote: On 05/03/2025 17:56, Sabrina Dubroca wrote: 2025-03-05, 14:14:36 +0100, Antonio Quartulli wrote: On 05/03/2025 12:20, Sabrina Dubroca wrote: 2025-03-05, 00:19:32 +0100, Antonio Quartulli wrote: O

Re: [PATCH RESEND 0/4] media: i2c: imx214: Add support for 23.88MHz clock

2025-03-10 Thread André Apitzsch
Hi Sakari, Am Montag, dem 10.03.2025 um 11:11 + schrieb Sakari Ailus: > Hi André, > > On Sat, Mar 08, 2025 at 10:47:54PM +0100, André Apitzsch via B4 Relay > wrote: > > The imx214 driver currently supports only a 24MHz external clock. > > But > > there are devices, like Qualcomm-MSM8916-based

[PATCH 0/9] RCU torture-test changes for v6.16

2025-03-10 Thread Paul E. McKenney
Hello! The following series improves testing of SRCU-fast and SRCU up/down: 1. Make srcu_lockdep.sh check kernel Kconfig. 2. Make srcu_lockdep.sh check reader-conflict handling. 3. Split out beginning and end from rcu_torture_one_read(). 4. Make torture.sh --do-rt use CONFI

[PATCH 4/9] rcutorture: Make torture.sh --do-rt use CONFIG_PREEMPT_RT

2025-03-10 Thread Paul E. McKenney
The torture.sh --do-rt command-line parameter is intended to mimic -rt kernels. Now that CONFIG_PREEMPT_RT is upstream, this commit makes this mimicking more precise. Note that testing of RCU priority boosting is disabled in favor of forward-progress testing of RCU callbacks. If it turns out to

[PATCH 7/9] rcutorture: Comment invocations of tick_dep_set_task()

2025-03-10 Thread Paul E. McKenney
The rcu_torture_reader() and rcu_torture_fwd_prog_cr() functions run CPU-bound for extended periods of time (tens or even hundreds of milliseconds), so they invoke tick_dep_set_task() and tick_dep_clear_task() to ensure that the scheduling-clock tick helps move grace periods forward. So why doesn'

Re: [PATCH v6 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Song Liu
On Mon, Mar 10, 2025 at 10:43 AM Blaise Boscaccy wrote: > > Song Liu writes: > > > On Fri, Mar 7, 2025 at 5:33 PM Blaise Boscaccy > > wrote: > >> > >> This test exercises the kernel flag added to security_bpf by > >> effectively blocking light-skeletons from loading while allowing > >> normal sk

Re: [PATCH v4 0/2] Add Goodix Berlin-A series support

2025-03-10 Thread Dmitry Torokhov
On Sun, Mar 09, 2025 at 07:23:13AM +0100, Jens Reidel wrote: > This series adds support for the Goodix Berlin-A series touch ICs > (gt9897). This was tested on a Xiaomi 11 Lite 5G NE (xiaomi-lisa), > which uses the gt9897 IC connected over SPI. I am not aware of any > device that has gt9897 connect

[PATCH] selftests/mm/cow: Fix the incorrect error handling

2025-03-10 Thread Cyan Yang
There are two error handlings did not check the correct return value. This patch will fix them. Fixes: f4b5fd6946e244cdedc3bbb9a1f24c8133b2077a ("selftests/vm: anon_cow: THP tests") Signed-off-by: Cyan Yang --- tools/testing/selftests/mm/cow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

Re: [PATCH] selftests/mm/cow: Fix the incorrect error handling

2025-03-10 Thread Dev Jain
On 11/03/25 8:07 am, Cyan Yang wrote: There are two error handlings did not check the correct return value. This patch will fix them. Fixes: f4b5fd6946e244cdedc3bbb9a1f24c8133b2077a ("selftests/vm: anon_cow: THP tests") Signed-off-by: Cyan Yang --- tools/testing/selftests/mm/cow.c | 4 ++-

[PATCH v2 net] ipvs: prevent integer overflow in do_ip_vs_get_ctl()

2025-03-10 Thread Dan Carpenter
The get->num_services variable is an unsigned int which is controlled by the user. The struct_size() function ensures that the size calculation does not overflow an unsigned long, however, we are saving the result to an int so the calculation can overflow. Both "len" and "get->num_services" come

Re: [PATCHv5 net 1/3] bonding: fix calling sleeping function in spin lock and some race conditions

2025-03-10 Thread Hangbin Liu
On Fri, Mar 07, 2025 at 09:03:32AM -0800, Jakub Kicinski wrote: > On Fri, 7 Mar 2025 09:42:49 +0200 Nikolay Aleksandrov wrote: > > TBH, keeping buggy code with a comment doesn't sound good to me. I'd rather > > remove this > > support than tell people "good luck, it might crash". It's better to be

Re: [PATCHv5 net 1/3] bonding: fix calling sleeping function in spin lock and some race conditions

2025-03-10 Thread Hangbin Liu
On Sat, Mar 08, 2025 at 08:54:51AM +, Simon Horman wrote: > On Fri, Mar 07, 2025 at 03:19:01AM +, Hangbin Liu wrote: > > ... > > > @@ -616,9 +615,22 @@ static void bond_ipsec_del_sa_all(struct bonding *bond) > > return; > > > > mutex_lock(&bond->ipsec_lock); > > - list

[PATCH -v3] x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled

2025-03-10 Thread Ingo Molnar
* Huang, Kai wrote: > On Sun, 2025-03-09 at 18:22 +0100, Vladis Dronov wrote: > > A kernel requires X86_FEATURE_SGX_LC to be able to create SGX enclaves. > > The kernel requires ... > > > There is quite a number of hardware which has X86_FEATURE_SGX but not > > X86_FEATURE_SGX_LC. A kernel ru

Re: [PATCH bpf-next v2 1/3] bpf, sockmap: avoid using sk_socket after free

2025-03-10 Thread Jiayuan Chen
March 7, 2025 at 5:45 PM, "Michal Luczaj" wrote: > > On 2/28/25 06:51, Jiayuan Chen wrote: > > > > > ... > > > > static void sk_psock_verdict_data_ready(struct sock *sk) > > > > { > > > > - struct socket *sock = sk->sk_socket; > > > > + struct socket *sock; > > > > const struct proto

Re: [PATCH] virtio: console: Make resizing compliant with virtio spec

2025-03-10 Thread Maximilian Immanuel Brandtner
On Wed, 2025-03-05 at 13:15 +0100, Niklas Schnelle wrote: > On Wed, 2025-03-05 at 13:13 +0100, Niklas Schnelle wrote: > > On Wed, 2025-03-05 at 10:53 +0100, Maximilian Immanuel Brandtner > > wrote: > > > On Mon, 2025-03-03 at 12:54 +0100, Amit Shah wrote: > > > > On Tue, 2025-02-25 at 10:21 +0100,

Re: [PATCH v9 2/8] mm/huge_memory: add two new (not yet used) functions for folio_split()

2025-03-10 Thread Hugh Dickins
On Thu, 6 Mar 2025, Zi Yan wrote: > On 5 Mar 2025, at 17:38, Hugh Dickins wrote: > > On Wed, 5 Mar 2025, Zi Yan wrote: > >> On 5 Mar 2025, at 16:03, Hugh Dickins wrote: > >>> > >>> Beyond checking that, I didn't have time yesterday to investigate > >>> further, but I'll try again today (still using

Re: [PATCH RESEND 0/4] media: i2c: imx214: Add support for 23.88MHz clock

2025-03-10 Thread Sakari Ailus
Hi André, On Sat, Mar 08, 2025 at 10:47:54PM +0100, André Apitzsch via B4 Relay wrote: > The imx214 driver currently supports only a 24MHz external clock. But > there are devices, like Qualcomm-MSM8916-based phones, which cannot > provide this frequency. To make the sensor usable by those devices,

Re: [PATCH v10 2/8] mm/huge_memory: add two new (not yet used) functions for folio_split()

2025-03-10 Thread Zi Yan
On 7 Mar 2025, at 12:39, Zi Yan wrote: > This is a preparation patch, both added functions are not used yet. > > The added __split_unmapped_folio() is able to split a folio with its > mapping removed in two manners: 1) uniform split (the existing way), and > 2) buddy allocator like (or non-uniform

Re: [PATCH] sev-snp: parse MP tables for VMware hypervisor

2025-03-10 Thread Borislav Petkov
On Thu, Dec 19, 2024 at 11:44:00AM +, Ajay Kaher wrote: > For VMware hypervisor, SEV-SNP enabled VM's could boot without UEFI. > In this case, mpparse_find_mptable() has to be called to parse MP > tables which contains boot information. > > Fixes: 0f4a1e80989a ("x86/sev: Skip ROM range scans a

Re: [PATCH bpf-next v2 1/3] bpf, sockmap: avoid using sk_socket after free

2025-03-10 Thread Michal Luczaj
On 3/10/25 12:36, Jiayuan Chen wrote: > March 7, 2025 at 5:45 PM, "Michal Luczaj" wrote: > ... >> BTW, lockdep (CONFIG_LOCKDEP=y) complains about calling AF_UNIX's >> read_skb() under RCU read lock. >> > My environment also has LOCKDEP enabled, but I didn't see similar > warnings. > Moreover, RCU

Re: [PATCH] sev-snp: parse MP tables for VMware hypervisor

2025-03-10 Thread Tom Lendacky
On 3/10/25 05:26, Borislav Petkov wrote: > On Thu, Dec 19, 2024 at 11:44:00AM +, Ajay Kaher wrote: >> For VMware hypervisor, SEV-SNP enabled VM's could boot without UEFI. >> In this case, mpparse_find_mptable() has to be called to parse MP >> tables which contains boot information. >> >> Fixes:

Re: [RFC PATCH 0/5] KVM: guest_memfd: support for uffd missing

2025-03-10 Thread Peter Xu
On Mon, Mar 10, 2025 at 06:12:22PM +, Nikita Kalyazin wrote: > > > On 05/03/2025 20:29, Peter Xu wrote: > > On Wed, Mar 05, 2025 at 11:35:27AM -0800, James Houghton wrote: > > > I think it might be useful to implement an fs-generic MINOR mode. The > > > fault handler is already easy enough to

Re: [PATCH net-next v6 0/4] virtio-net: Link queues to NAPIs

2025-03-10 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 7 Mar 2025 01:12:08 + you wrote: > Greetings: > > Welcome to v6. Only patch updated is patch 3. See changelog below. > > Jakub recently commented [1] that I should not hold this series on > virtio-net

Re: [PATCH v15 00/15] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-03-10 Thread Frank Li
On Sat, Mar 01, 2025 at 07:09:35PM +0100, Thomas Gleixner wrote: > On Sat, Mar 01 2025 at 12:02, Marc Zyngier wrote: > > - This IMMUTABLE thing serves no purpose, because you don't randomly > > plug this end-point block on any MSI controller. They come as part > > of an SoC. > > Yes and no. The

Re: [PATCH] module: Remove unnecessary size argument when calling strscpy()

2025-03-10 Thread Petr Pavlu
On 3/8/25 20:46, Thorsten Blum wrote: > The size parameter is optional and strscpy() automatically determines > the length of the destination buffer using sizeof() if the argument is > omitted. This makes the explicit sizeof() unnecessary. Remove it to > shorten and simplify the code. > > Signed-o

[PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-10 Thread Paul E. McKenney
This commit adds a new rcutorture.n_up_down kernel boot parameter that specifies the number of outstanding SRCU up/down readers, which begin in kthread context and end in an hrtimer handler. There is a new kthread ("rcu_torture_updown") that scans an per-reader array looking for elements whose rea

[PATCH v7 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Blaise Boscaccy
This test exercises the kernel flag added to security_bpf by effectively blocking light-skeletons from loading while allowing normal skeletons to function as-is. Since this should work with any arbitrary BPF program, an existing program from LSKELS_EXTRA was used as a test payload. Signed-off-by:

[PATCH v7 bpf-next 1/2] security: Propagate caller information in bpf hooks

2025-03-10 Thread Blaise Boscaccy
Certain bpf syscall subcommands are available for usage from both userspace and the kernel. LSM modules or eBPF gatekeeper programs may need to take a different course of action depending on whether or not a BPF syscall originated from the kernel or userspace. Additionally, some of the bpf_attr st

[PATCH 6/9] rcutorture: Pull rcu_torture_updown() loop body into new function

2025-03-10 Thread Paul E. McKenney
This is strictly a code-movement commit, pulling that part of the rcu_torture_updown() function's loop body that processes one rcu_torture_one_read_state_updown structure into a new rcu_torture_updown_one() function. The checks for the end of the torture test and the current structure being in use

Re: [PATCH net-next 4/4] tools/testing/selftests/cgroup: add test for SO_PEERCGROUPID

2025-03-10 Thread Willem de Bruijn
Alexander Mikhalitsyn wrote: > Cc: linux-kselft...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: net...@vger.kernel.org > Cc: cgro...@vger.kernel.org > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: Willem de Bruijn > Cc: Leon Romanovsky > Cc:

Re: [PATCH -v3] x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled

2025-03-10 Thread Huang, Kai
On Mon, 2025-03-10 at 09:42 +0100, Ingo Molnar wrote: > * Huang, Kai wrote: > > > On Sun, 2025-03-09 at 18:22 +0100, Vladis Dronov wrote: > > > A kernel requires X86_FEATURE_SGX_LC to be able to create SGX enclaves. > > > > The kernel requires ... > > > > > There is quite a number of hardware w

Re: [PATCH v7 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Song Liu
On Mon, Mar 10, 2025 at 3:18 PM Blaise Boscaccy wrote: > > This test exercises the kernel flag added to security_bpf by > effectively blocking light-skeletons from loading while allowing > normal skeletons to function as-is. Since this should work with any > arbitrary BPF program, an existing prog

Re: [PATCH] selftests/bpf: Convert comma to semicolon

2025-03-10 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Mon, 10 Mar 2025 11:20:45 +0800 you wrote: > Replace comma between expressions with semicolons. > > Using a ',' in place of a ';' can have unintended side effects. > Although that is not the case here, it is seems