Re: [PATCH bpf-next 1/2] bpf: Add bpf_task_cwd_from_pid() kfunc

2025-05-29 Thread Rong Tao
On 5/30/25 09:55, Yonghong Song wrote: On 5/29/25 6:28 PM, Rong Tao wrote: On 5/29/25 13:44, Alexei Starovoitov wrote: On Wed, May 28, 2025 at 8:37 PM Rong Tao wrote: From: Rong Tao It is a bit troublesome to get cwd based on pid in bpf program, such as bpftrace example [1]. This pa

Re: [PATCH bpf-next 1/2] bpf: Add bpf_task_cwd_from_pid() kfunc

2025-05-29 Thread Yonghong Song
On 5/29/25 6:28 PM, Rong Tao wrote: On 5/29/25 13:44, Alexei Starovoitov wrote: On Wed, May 28, 2025 at 8:37 PM Rong Tao wrote: From: Rong Tao It is a bit troublesome to get cwd based on pid in bpf program, such as bpftrace example [1]. This patch therefore adds a new bpf_task_cwd_from_

Re: [QUESTION] problems report: rcu_read_unlock_special() called in irq_exit() causes dead loop

2025-05-29 Thread Xiongfeng Wang
Hi Joel, On 2025/5/29 0:30, Joel Fernandes wrote: > On Wed, May 21, 2025 at 5:43 AM Xiongfeng Wang > wrote: >> >> Hi RCU experts, >> >> When I ran syskaller in Linux 6.6 with CONFIG_PREEMPT_RCU enabled, I got >> the following soft lockup. The Calltrace is too long. I put it in the end. >> The iss

Re: [PATCH bpf-next 1/2] bpf: Add bpf_task_cwd_from_pid() kfunc

2025-05-29 Thread Rong Tao
On 5/29/25 13:44, Alexei Starovoitov wrote: On Wed, May 28, 2025 at 8:37 PM Rong Tao wrote: From: Rong Tao It is a bit troublesome to get cwd based on pid in bpf program, such as bpftrace example [1]. This patch therefore adds a new bpf_task_cwd_from_pid() kfunc which allows BPF programs t

Re: [PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Jakub Kicinski
On Thu, 29 May 2025 14:05:36 +0700 Bui Quang Minh wrote: > Currently, we only build net/lib dependency in install target. This > commit moves that to all target so that net/lib is included in in-tree > build and run_tests. With Simon's comments addressed, feel free to add to v2: Reviewed-by: Jaku

[PATCH v3] selftests/seccomp: Fix indentation and rebase error logging patch

2025-05-29 Thread Sameeksha Sankpal
Rebase the error logging enhancement for get_proc_stat() against the upstream seccomp tree with proper indentation formatting. Suggested-by: Kees Cook Signed-off-by: Sameeksha Sankpal --- v1 -> v2: - Used TH_LOG instead of printf for error logging - Moved variable declaration to the top of th

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-29 Thread Hiago De Franco
On Thu, May 29, 2025 at 03:54:47AM +, Peng Fan wrote: [...] > > We are making progress ;-) > > > > With the patches you shared Ulf (I added them on top of the current > > master branch), it works as expected, dev_pm_genpd_is_on() returns 0 > > when I boot the kernel without M4 running and it

Re: [PATCH bpf-next v1 1/2] bpf,ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

2025-05-29 Thread Cong Wang
On Fri, May 23, 2025 at 09:18:58PM +0800, Jiayuan Chen wrote: > When sending plaintext data, we initially calculated the corresponding > ciphertext length. However, if we later reduced the plaintext data length > via socket policy, we failed to recalculate the ciphertext length. > > This results i

Re: [PATCH bpf-next v1 1/2] bpf: Restrict usage scope of bpf_get_cgroup_classid

2025-05-29 Thread Alexei Starovoitov
On Wed, May 28, 2025 at 9:17 AM Jiayuan Chen wrote: > > A previous commit expanded the usage scope of bpf_get_cgroup_classid() to > all contexts (see Fixes tag), but this was inappropriate. > > First, syzkaller reported a bug [1]. > Second, it uses skb as an argument, but its implementation varies

Re: [GIT PULL] virtio, vhost: features, fixes

2025-05-29 Thread pr-tracker-bot
The pull request you sent on Wed, 28 May 2025 03:27:24 -0400: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8ca154e4910efff1b04e7750e007d75732c68323 Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH v2 2/2] rust: emit path candidates in panic message

2025-05-29 Thread Miguel Ojeda
On Thu, May 29, 2025 at 4:38 PM Tamir Duberstein wrote: > > Sure, that would be: > > Include all information in the panic message rather than emit fragments > to stderr to avoid possible interleaving with other output. > > Let me know if I should send another spin for this, or if this is ok > to d

Re: [PATCH] kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests

2025-05-29 Thread Jakub Kicinski
On Fri, 11 Apr 2025 10:59:04 +0100 Richard Fitzgerald wrote: > Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests.config. This helps > to detect use of uninitialized local variables. > > This option found an uninitialized data bug in the cs_dsp test. > > Signed-off-by: Richard Fitzgerald > --- >

Re: [PATCH v2 2/2] rust: emit path candidates in panic message

2025-05-29 Thread Tamir Duberstein
On Thu, May 29, 2025 at 9:21 AM Miguel Ojeda wrote: > > On Thu, May 29, 2025 at 3:15 PM Tamir Duberstein wrote: > > > > Include all information in the panic message rather than emit fragments > > to stderr. > > Could we explain the "why" as well in the message? (i.e. not just the "what") Sure, t

Re: [RFC PATCH net-next v2 2/2] selftests: net: add XDP socket tests for virtio-net

2025-05-29 Thread Bui Quang Minh
On 5/29/25 18:18, Maciej Fijalkowski wrote: On Tue, May 27, 2025 at 11:19:04PM +0700, Bui Quang Minh wrote: This adds a test to test the virtio-net rx when there is a XDP socket bound to it. There are tests for both copy mode and zerocopy mode, both cases when XDP program returns XDP_PASS and XD

Re: [PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Bui Quang Minh
On 5/29/25 20:34, Simon Horman wrote: On Thu, May 29, 2025 at 06:04:17PM +0700, Bui Quang Minh wrote: On 5/29/25 17:32, Simon Horman wrote: On Thu, May 29, 2025 at 02:05:36PM +0700, Bui Quang Minh wrote: Currently, we only build net/lib dependency in install target. This commit moves that to a

RE: [PATCH v6 4/5] x86/sgx: Implement ENCLS[EUPDATESVN]

2025-05-29 Thread Reshetova, Elena
> > > > +/** > > + * sgx_updatesvn() - Attempt to call ENCLS[EUPDATESVN]. > > sgx_updatesvn() -> sgx_update_svn(): > > arch/x86/kernel/cpu/sgx/main.c:941: warning: expecting prototype for > sgx_updatesvn(). Prototype was for sgx_update_svn() instead > > > > + * This instruction attempts to upd

Re: [PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Simon Horman
On Thu, May 29, 2025 at 06:04:17PM +0700, Bui Quang Minh wrote: > On 5/29/25 17:32, Simon Horman wrote: > > On Thu, May 29, 2025 at 02:05:36PM +0700, Bui Quang Minh wrote: > > > Currently, we only build net/lib dependency in install target. This > > > commit moves that to all target so that net/lib

Re: [PATCH v2 2/2] rust: emit path candidates in panic message

2025-05-29 Thread Miguel Ojeda
On Thu, May 29, 2025 at 3:15 PM Tamir Duberstein wrote: > > Include all information in the panic message rather than emit fragments > to stderr. Could we explain the "why" as well in the message? (i.e. not just the "what") Thanks! Cheers, Miguel

[PATCH v2 2/2] rust: emit path candidates in panic message

2025-05-29 Thread Tamir Duberstein
Include all information in the panic message rather than emit fragments to stderr. Signed-off-by: Tamir Duberstein --- scripts/rustdoc_test_gen.rs | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/rustdoc_test_gen.rs b/scripts/rustdoc_test_gen.rs index d796481f4

[PATCH v2 1/2] rust: replace length checks with match

2025-05-29 Thread Tamir Duberstein
Use a match expression with slice patterns instead of length checks and indexing. The result is more idiomatic, which is a better example for future Rust code authors. Reviewed-by: Alice Ryhl Signed-off-by: Tamir Duberstein --- scripts/rustdoc_test_gen.rs | 31 +++ 1

[PATCH v2 0/2] rust: minor idiomatic fixes to doctest generator

2025-05-29 Thread Tamir Duberstein
Please see individual commit messages. Signed-off-by: Tamir Duberstein --- Changes in v2: - rustfmt. - Alice's RB. - Add second patch to emit information in panic rather than separately to stderr. - Link to v1: https://lore.kernel.org/r/20250527-idiomatic-match-slice-v1-1-34b0b1d1d...@gmail.co

Re: [PATCH v3] rust: kunit: use crate-level mapping for `c_void`

2025-05-29 Thread Miguel Ojeda
On Wed, May 28, 2025 at 7:51 PM Jesung Yang wrote: > > Remove `use core::ffi::c_void`, which shadows `kernel::ffi::c_void` > brought in via `use crate::prelude::*`, to maintain consistency and > centralize the abstraction. > > Since `kernel::ffi::c_void` is a straightforward re-export of > `core::

Re: [RFC PATCH net-next v2 1/2] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-05-29 Thread Bui Quang Minh
On 5/29/25 12:59, Jason Wang wrote: On Wed, May 28, 2025 at 12:19 AM Bui Quang Minh wrote: Currently, in zerocopy mode with mergeable receive buffer, virtio-net does not support multi buffer but a single buffer only. This commit adds support for multi mergeable receive buffer in the zerocopy XD

Re: [RFC PATCH v2 1/9] KVM: arm64: nv: selftests: Add support to run guest code in vEL2.

2025-05-29 Thread Marc Zyngier
On Mon, 12 May 2025 11:52:43 +0100, Ganapatrao Kulkarni wrote: > > This patch adds required changes to vcpu init to run a guest code > in vEL2 context and also adds NV specific helper functions. > > Signed-off-by: Ganapatrao Kulkarni > --- > tools/testing/selftests/kvm/Makefile.kvm | 2 +

Re: [RFC PATCH v2 0/9] KVM: Enable Nested Virt selftests

2025-05-29 Thread Marc Zyngier
On Thu, 29 May 2025 11:29:58 +0100, Ganapatrao Kulkarni wrote: > > > Hi Eric, > > On 5/28/2025 6:58 PM, Eric Auger wrote: > > Hi Ganapatrao, > > > > On 5/12/25 12:52 PM, Ganapatrao Kulkarni wrote: > >> This patch series makes the selftest work with NV enabled. The guest code > >> is run in vEL

Re: [RFC PATCH net-next v2 2/2] selftests: net: add XDP socket tests for virtio-net

2025-05-29 Thread Maciej Fijalkowski
On Tue, May 27, 2025 at 11:19:04PM +0700, Bui Quang Minh wrote: > This adds a test to test the virtio-net rx when there is a XDP socket > bound to it. There are tests for both copy mode and zerocopy mode, both > cases when XDP program returns XDP_PASS and XDP_REDIRECT to a XDP socket. > > Signed-o

Re: [PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Bui Quang Minh
On 5/29/25 17:32, Simon Horman wrote: On Thu, May 29, 2025 at 02:05:36PM +0700, Bui Quang Minh wrote: Currently, we only build net/lib dependency in install target. This commit moves that to all target so that net/lib is included in in-tree build and run_tests. Hi, The above describes what is

Re: [PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Simon Horman
On Thu, May 29, 2025 at 02:05:36PM +0700, Bui Quang Minh wrote: > Currently, we only build net/lib dependency in install target. This > commit moves that to all target so that net/lib is included in in-tree > build and run_tests. Hi, The above describes what is being done. I think it would be goo

Re: [RFC PATCH v2 0/9] KVM: Enable Nested Virt selftests

2025-05-29 Thread Ganapatrao Kulkarni
Hi Eric, On 5/28/2025 6:58 PM, Eric Auger wrote: Hi Ganapatrao, On 5/12/25 12:52 PM, Ganapatrao Kulkarni wrote: This patch series makes the selftest work with NV enabled. The guest code is run in vEL2 instead of EL1. We add a command line option to enable testing of NV. The NV tests are disa

Re: [PATCH RFC v2 1/9] KVM: arm64: nv: selftests: Add support to run guest code in vEL2.

2025-05-29 Thread Eric Auger
Hi Itaru, On 5/29/25 1:39 AM, Itaru Kitayama wrote: > Hi Ganapatrao > On Mon, May 12, 2025 at 03:52:43AM -0700, Ganapatrao Kulkarni wrote: >> This patch adds required changes to vcpu init to run a guest code >> in vEL2 context and also adds NV specific helper functions. >> >> Signed-off-by: Ganapa

[PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation

2025-05-29 Thread Alok Tiwari
Corrected several typos in virtio_ring.c for improved clarity and consistency. Fixes include: - "dind't" -> "didn't" - "use" -> "uses" in DMA mapping context - "can been used" -> "can be used" - "buf size for sync" -> "buffer size to synchronize" No functional changes. Signed-off-by: Alok Tiwari

[PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs

2025-05-29 Thread Alok Tiwari
Corrected several spelling mistakes in code comments, including: - "bock" -> "block" - "valued" -> "value" - "actipn" -> "action" - "accidentially" -> "accidentally" - Improved grammar in a few places for clarity. These changes are purely cosmetic and do not affect functionality. Signed-off-by: A

[PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment

2025-05-29 Thread Alok Tiwari
Corrected "suceess" to "success" in the function documentation for clarity. Signed-off-by: Alok Tiwari Acked-by: Jason Wang --- v1 -> v2 No changes; only added Acked-by: Jason Wang. --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/vi

Re: [PATCH] virtio-mmio: Remove virtqueue list from mmio device

2025-05-29 Thread Viresh Kumar
On 29-05-25, 14:05, Jason Wang wrote: > On Wed, May 21, 2025 at 7:34 PM Viresh Kumar wrote: > > > > The MMIO transport implementation creates a list of virtqueues for a > > virtio device, while the same is already available in the struct > > virtio_device. > > > > Don't create a duplicate list, an

[PATCH] virtio-vdpa: Remove virtqueue list

2025-05-29 Thread Viresh Kumar
The virtio vdpa implementation creates a list of virtqueues, while the same is already available in the struct virtio_device. This list is never traversed though, and only the pointer to the struct virtio_vdpa_vq_info is used in the callback, where the virtqueue pointer could be directly used. Re

[PATCH net] selftests: net: build net/lib dependency in all target

2025-05-29 Thread Bui Quang Minh
Currently, we only build net/lib dependency in install target. This commit moves that to all target so that net/lib is included in in-tree build and run_tests. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git