Re: [RFC 1/6] vduse: add v1 API definition

2025-06-08 Thread Eugenio Perez Martin
On Mon, Jun 9, 2025 at 3:50 AM Jason Wang wrote: > > On Mon, Jun 9, 2025 at 9:41 AM Jason Wang wrote: > > > > On Fri, Jun 6, 2025 at 7:50 PM Eugenio Pérez wrote: > > > > > > This allows to define all functions checking the API version set by the > > > userland device. > > > > > > Signed-off-by:

Re: [RFC 2/6] vduse: add vq group support

2025-06-08 Thread Eugenio Perez Martin
On Mon, Jun 9, 2025 at 3:55 AM Jason Wang wrote: > > On Fri, Jun 6, 2025 at 7:50 PM Eugenio Pérez wrote: > > > > The virtqueue group is the minimal set of virtqueues that must share an > > address space. And the address space identifier could only be attached > > to a specific virtqueue group.

Re: [RFC 0/6] Add multiple address spaces support to VDUSE

2025-06-08 Thread Christoph Hellwig
Before you add new features to vduse, please remove the broken abuse of the DMA API first. Without that no new feature work should go into this code.

Re: [RFC PATCH v2 2/9] KVM: arm64: nv: selftests: Add simple test to run guest code in vEL2

2025-06-08 Thread Itaru Kitayama
On Mon, May 12, 2025 at 03:52:44AM -0700, Ganapatrao Kulkarni wrote: > Add simple test to run guest code with NV enabled. With NV enabled, > guest code runs in vEL2 context. > > Signed-off-by: Ganapatrao Kulkarni > --- > .../selftests/kvm/arm64/nv_guest_hypervisor.c | 68 +++ > 1

[PATCH bpf-next v2 2/2] selftests/bpf: Add test to cover ktls with bpf_msg_pop_data

2025-06-08 Thread Jiayuan Chen
The selftest can reproduce an issue where using bpf_msg_pop_data() in ktls causes errors on the receiving end. Signed-off-by: Jiayuan Chen --- .../selftests/bpf/prog_tests/sockmap_ktls.c | 91 +++ .../selftests/bpf/progs/test_sockmap_ktls.c | 4 + 2 files changed, 95 inserti

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

2025-06-08 Thread Jiayuan Chen
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 in transmitting buffers containing uninitialized data during ciphertext t

[PATCH bpf-next v2 0/2] bpf,ktls: Fix data corruption caused by using bpf_msg_pop_data() in ktls

2025-06-08 Thread Jiayuan Chen
Cong reported an issue where running 'test_sockmap' in the current bpf-next tree results in an error [1]. The specific test case that triggered the error is a combined test involving ktls and bpf_msg_pop_data(). Root Cause: When sending plaintext data, we initially calculated the corresponding

Re: [RFC 2/6] vduse: add vq group support

2025-06-08 Thread Jason Wang
On Fri, Jun 6, 2025 at 7:50 PM Eugenio Pérez wrote: > > The virtqueue group is the minimal set of virtqueues that must share an > address space. And the address space identifier could only be attached > to a specific virtqueue group. The virtqueue is attached to a > virtqueue group for all the l

Re: [RFC 1/6] vduse: add v1 API definition

2025-06-08 Thread Jason Wang
On Mon, Jun 9, 2025 at 9:41 AM Jason Wang wrote: > > On Fri, Jun 6, 2025 at 7:50 PM Eugenio Pérez wrote: > > > > This allows to define all functions checking the API version set by the > > userland device. > > > > Signed-off-by: Eugenio Pérez > > It might be worth clarifying how it works. > > Fo

Re: [RFC 1/6] vduse: add v1 API definition

2025-06-08 Thread Jason Wang
On Fri, Jun 6, 2025 at 7:50 PM Eugenio Pérez wrote: > > This allows to define all functions checking the API version set by the > userland device. > > Signed-off-by: Eugenio Pérez It might be worth clarifying how it works. For example, 1) would VDUSE behave differently or if it's just some new

[PATCH] selftests/bpf: fix signedness bug in redir_partial()

2025-06-08 Thread wangfushuai
When xsend() returns -1 (error), the check 'n < sizeof(buf)' incorrectly treats it as success due to unsigned promotion. Explicitly check for -1 first. Fixes: a4b7193d8efd ("selftests/bpf: Add sockmap test for redirecting partial skb data") Signed-off-by: wangfushuai --- tools/testing/selftests

Re: [PATCH 1/2] module: Fix memory deallocation on error path in move_module()

2025-06-08 Thread Petr Pavlu
On 6/7/25 6:16 PM, Petr Pavlu wrote: > The function move_module() uses the variable t to track how many memory > types it has allocated and consequently how many should be freed if an > error occurs. > > The variable is initially set to 0 and is updated when a call to > module_memory_alloc() fails