Re: [PATCH v3] selftests: riscv: add misaligned access testing

2025-05-22 Thread Alexandre Ghiti
Hi Clément, On 5/22/25 14:51, Clément Léger wrote: This selftest tests all the currently emulated instructions (except for the RV32 compressed ones which are left as a future exercise for a RV32 user). For the FPU instructions, all the FPU registers are tested. Signed-off-by: Clément Léger --

[PATCH v3] selftests: riscv: add misaligned access testing

2025-05-22 Thread Clément Léger
This selftest tests all the currently emulated instructions (except for the RV32 compressed ones which are left as a future exercise for a RV32 user). For the FPU instructions, all the FPU registers are tested. Signed-off-by: Clément Léger --- Note: This test can be executed with the FWFT serie

Re: [PATCH] remoteproc: mediatek: Add SCP watchdog handler in IRQ processing

2025-05-22 Thread Mathieu Poirier
Good day, On Wed, May 21, 2025 at 10:24:03PM +0800, Wentao Liang wrote: > In mt8195_scp_c1_irq_handler(), only the IPC interrupt bit > (MT8192_SCP_IPC_INT_BIT) was checked., but does not handle > when this bit is not set. This could lead to unhandled watchdog > events. This could lead to unhandled

[PATCH] selftests/mm: Deduplicate test names in madv_populate

2025-05-22 Thread Mark Brown
The madv_populate selftest has some repetitive code for several different cases that it covers, included repeated test names used in ksft_test_result() reports. This causes problems for automation, the test name is used to both track the test between runs and distinguish between multiple tests with

[PATCH v3 0/2] livepatch, arm64/module: Enable late module relocations.

2025-05-22 Thread Dylan Hatch
Late relocations (after the module is initially loaded) are needed when livepatches change module code. This is supported by x86, ppc, and s390. This series borrows the x86 methodology to reach the same level of support on arm64, and moves the text-poke locking into the core livepatch code to reduc

Re: [PATCH] selftests/mm: Deduplicate test names in madv_populate

2025-05-22 Thread Liam R. Howlett
* Mark Brown [250522 12:30]: > The madv_populate selftest has some repetitive code for several different > cases that it covers, included repeated test names used in ksft_test_result() > reports. This causes problems for automation, the test name is used to both > track the test between runs and d

[PATCH v3 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-22 Thread Dylan Hatch
Late module relocations are an issue on any arch that supports livepatch, so move the text_mutex locking to the livepatch core code. Signed-off-by: Dylan Hatch --- arch/x86/kernel/module.c | 8 ++-- kernel/livepatch/core.c | 18 +- 2 files changed, 15 insertions(+), 11 dele

Re: [PATCH v3 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-22 Thread Song Liu
On Thu, May 22, 2025 at 11:43 AM Dylan Hatch wrote: > > Late module relocations are an issue on any arch that supports > livepatch, so move the text_mutex locking to the livepatch core code. > > Signed-off-by: Dylan Hatch Acked-by: Song Liu

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Shuah Khan
On 5/19/25 01:58, Viresh Kumar wrote: On 30-04-25, 17:14, Swapnil Sapkal wrote: In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have read permissions. However certain cpufreq sysfs files (

[PATCH 1/4] selftests/mm: Use standard ksft_finished() in cow and gup_longterm

2025-05-22 Thread Mark Brown
The cow and gup_longterm test programs open code something that looks a lot like the standard ksft_finished() helper to summarise the test results and provide an exit code, convert to use ksft_finished(). Signed-off-by: Mark Brown --- tools/testing/selftests/mm/cow.c | 7 +-- tools/

[PATCH 3/4] selftests/mm: Report unique test names for each cow test

2025-05-22 Thread Mark Brown
The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The cow test completely fails to follow this pattern, it runs test functions repeatedly with various parameters with each result report fro

[PATCH 2/4] selftest/mm: Add helper for logging test start and results

2025-05-22 Thread Mark Brown
Several of the MM tests have a pattern of printing a description of the test to be run then reporting the actual TAP result using a generic string not connected to the specific test, often in a shared function used by many tests. The name reported typically varies depending on the specific result r

[PATCH 0/4] selftests/mm: cow and gup_longterm cleanups

2025-05-22 Thread Mark Brown
The bulk of these changes modify the cow and gup_longterm tests to report unique and stable names for each test, bringing them into line with the expectations of tooling that works with kselftest. The string reported as a test result is used by tooling to both deduplicate tests and track tests bet

[PATCH 4/4] selftests/mm: Fix test result reporting in gup_longterm

2025-05-22 Thread Mark Brown
The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The gup_longterm test fails to follow this pattern, it runs a single test function repeatedly with various parameters but each result repor

[PATCH v3 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
To enable late module patching, livepatch modules need to be able to apply some of their relocations well after being loaded. In this scenario, use the text-poking API to allow this, even with STRICT_MODULE_RWX. This patch is partially based off commit 88fc078a7a8f6 ("x86/module: Use text_poke() f

Re: [PATCH v3 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
On Thu, May 22, 2025 at 11:43 AM Dylan Hatch wrote: > -static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int > len) > +static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int > len, > + struct module *me) > { > s64 sval = do_relo

[PATCH v4 0/2] livepatch, arm64/module: Enable late module relocations.

2025-05-22 Thread Dylan Hatch
Late relocations (after the module is initially loaded) are needed when livepatches change module code. This is supported by x86, ppc, and s390. This series borrows the x86 methodology to reach the same level of support on arm64, and moves the text-poke locking into the core livepatch code to reduc

[PATCH v4 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-22 Thread Dylan Hatch
Late module relocations are an issue on any arch that supports livepatch, so move the text_mutex locking to the livepatch core code. Signed-off-by: Dylan Hatch Acked-by: Song Liu --- arch/x86/kernel/module.c | 8 ++-- kernel/livepatch/core.c | 18 +- 2 files changed, 15 in

[PATCH v4 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
To enable late module patching, livepatch modules need to be able to apply some of their relocations well after being loaded. In this scenario, use the text-poking API to allow this, even with STRICT_MODULE_RWX. This patch is partially based off commit 88fc078a7a8f6 ("x86/module: Use text_poke() f

Re: [PATCH] selftests: acct: fix grammar and clarify output messages

2025-05-22 Thread Shuah Khan
On 5/13/25 16:14, Abdelrahman Fekry wrote: This patch improves the clarity and grammar of output messages in the acct() selftest. Minor changes were made to user-facing strings and comments to make them easier to understand and more consistent with the kselftest style. Changes include: - Fixing

Re: [PATCH] selftests: size: fix grammar and align output formatting

2025-05-22 Thread Shuah Khan
On 5/13/25 15:44, Abdelrahman Fekry wrote: Improve the grammar in the test name by changing "get runtime memory use" to "get runtime memory usage". Also adjust spacing in output lines ("Total:", "Free:", etc.) to ensure consistent alignment and readability. Signed-off-by: Abdelrahman Fekry Di

Re: [PATCH] selftests: ir_decoder: Convert header comment to proper multi-line block

2025-05-22 Thread Shuah Khan
On 5/13/25 16:32, Abdelrahman Fekry wrote: The test file for the IR decoder used single-line comments at the top to document its purpose and licensing, which is inconsistent with the style used throughout the Linux kernel. in this patch i converted the file header to a proper multi-line comment

Re: [PATCH] selftests: fix "memebers" typo in filesystems/mount-notify

2025-05-22 Thread Shuah Khan
On 5/13/25 08:48, Hendrik Hamerlinck wrote: Corrects a spelling mistake "memebers" instead of "members" in tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c Change the shortlog to indicate test clearly. Check a few logs for this file for examples. Here is how the correct form

Re: [PATCH] selftests/eventfd: correct test name and improve messages

2025-05-22 Thread Shuah Khan
On 5/13/25 01:44, Ryan Chung wrote: - Rename test from to ?? missing description of the change. Looks like the patch renames the test to fix spelling error in the test name? - Make the RDWR‐flag comment declarative: “The kernel automatically adds the O_RDWR flag.” - Update semaphore‐flag

[PATCH v6 1/5] x86/sgx: Introduce a counter to count the sgx_(vepc_)open()

2025-05-22 Thread Elena Reshetova
Currently SGX does not have a global counter to count the active users from userspace or hypervisor. Implement such a counter, sgx_usage_count. It will be used by the driver when attempting to call EUPDATESVN SGX instruction. Suggested-by: Sean Christopherson Signed-off-by: Elena Reshetova ---

[PATCH v6 0/5] Enable automatic SVN updates for SGX enclaves

2025-05-22 Thread Elena Reshetova
Changes since v5 following reviews by Ingo, Kai, Jarkko and Dave: - rebase on x86 tip - patch 1 is fixed to do correct unwinding in case of errors - patch 2: add feature flag to cpuid-deps.c - patch 3: remove unused SGX_EPC_NOT_READY error code - patch 4: fix x86 feature check, return -EAGAI

[PATCH v6 3/5] x86/sgx: Define error codes for use by ENCLS[EUPDATESVN]

2025-05-22 Thread Elena Reshetova
Add error codes for ENCLS[EUPDATESVN], then SGX CPUSVN update process can know the execution state of EUPDATESVN and notify userspace. Signed-off-by: Elena Reshetova --- arch/x86/include/asm/sgx.h | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff

[PATCH v6 2/5] x86/cpufeatures: Add X86_FEATURE_SGX_EUPDATESVN feature flag

2025-05-22 Thread Elena Reshetova
Add a flag indicating whenever ENCLS[EUPDATESVN] SGX instruction is supported. This will be used by SGX driver to perform CPU SVN updates. Signed-off-by: Elena Reshetova --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/kernel/cpu/cpuid-deps.c | 1 + arch/x86/kernel/cpu/scatte

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

2025-05-22 Thread Elena Reshetova
All running enclaves and cryptographic assets (such as internal SGX encryption keys) are assumed to be compromised whenever an SGX-related microcode update occurs. To mitigate this assumed compromise the new supervisor SGX instruction ENCLS[EUPDATESVN] can generate fresh cryptographic assets. Befo

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-22 Thread Mark Brown
On Thu, May 22, 2025 at 10:42:50AM +0200, David Hildenbrand wrote: > Probably, one might be able to revert the logic: instead of running each > test for each size, run each size for each test: then, the tests are fixed > and would be covering all available sizes in a single logical test. Yeah, th

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Viresh Kumar
On 22-05-25, 14:07, Sapkal, Swapnil wrote: > Initially I tried the same, but it does not work properly with the root user. Hmm, Tried chatgpt now and it says this should work: if ! cat "$1/$file" 2>/dev/null; then printf "$file is not readable\n" fi - This attempts to read the file. - If it

[PATCH bpf-next v2 0/2] bpf, arm64: support up to 12 arguments

2025-05-22 Thread Alexis Lothoré
Hello, this is the v2 of the many args series for arm64, being itself a revival of Xu Kuhoai's work to enable larger arguments count for BPF programs on ARM64 ([1]). The discussions in v1 shed some light on some issues around specific cases, for example with functions passing struct on stack with

[PATCH bpf-next v2 2/2] selftests/bpf: enable many-args tests for arm64

2025-05-22 Thread eBPF Foundation
Now that support for up to 12 args is enabled for tracing programs on ARM64, enable the existing tests for this feature on this architecture. Signed-off-by: Alexis Lothoré (eBPF Foundation) --- Changes in v2: - keep tracing struct tests disabled, as structs passed on stack are not handled by th

[PATCH v6 5/5] x86/sgx: Enable automatic SVN updates for SGX enclaves

2025-05-22 Thread Elena Reshetova
== Background == ENCLS[EUPDATESVN] is a new SGX instruction [1] which allows enclave attestation to include information about updated microcode SVN without a reboot. Before an EUPDATESVN operation can be successful, all SGX memory (aka. EPC) must be marked as “unused” in the SGX hardware metadata

[PATCH][next] selftests/futex: Fix spelling mistake "manaul" -> "manual"

2025-05-22 Thread Colin Ian King
There is a spelling mistake in a ksft_test_result message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/futex/functional/futex_priv_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_priv_hash.c b/tools/

Re: [PATCH net-next v6 3/5] vsock/test: Introduce vsock_wait_sent() helper

2025-05-22 Thread Stefano Garzarella
On Thu, May 22, 2025 at 01:18:23AM +0200, Michal Luczaj wrote: Distill the virtio_vsock_sock::bytes_unsent checking loop (ioctl SIOCOUTQ) and move it to utils. Tweak the comment. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 25 + tools/testing/vsock

Re: [PATCH net-next v6 4/5] vsock/test: Introduce enable_so_linger() helper

2025-05-22 Thread Stefano Garzarella
On Thu, May 22, 2025 at 01:18:24AM +0200, Michal Luczaj wrote: Add a helper function that sets SO_LINGER. Adapt the caller. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 13 + tools/testing/vsock/util.h | 1 + tools/testing/vsock/vsock_test.c | 10 +---

Re: [PATCH net-next v6 5/5] vsock/test: Add test for an unexpectedly lingering close()

2025-05-22 Thread Stefano Garzarella
On Thu, May 22, 2025 at 01:18:25AM +0200, Michal Luczaj wrote: There was an issue with SO_LINGER: instead of blocking until all queued messages for the socket have been successfully sent (or the linger timeout has been reached), close() would block until packets were handled by the peer. Add a t

Re: [PATCH] [next] selftests/ptrace: Fix spelling mistake "multible" -> "multiple"

2025-05-22 Thread Brigham Campbell
On Thu May 1, 2025 at 12:03 AM MDT, Ankit Chauhan wrote: > Fix the spelling error from "multible" to "multiple". > > Signed-off-by: Ankit Chauhan > --- > tools/testing/selftests/ptrace/peeksiginfo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/p

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Sapkal, Swapnil
Hi Viresh, On 5/19/2025 1:28 PM, Viresh Kumar wrote: On 30-04-25, 17:14, Swapnil Sapkal wrote: In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have read permissions. However certain cpufr

Re: [PATCH net-next 1/3] net: devmem: support single IOV with sendmsg

2025-05-22 Thread Pavel Begunkov
On 5/21/25 18:33, Stanislav Fomichev wrote: On 05/21, Mina Almasry wrote: On Tue, May 20, 2025 at 1:30 PM Stanislav Fomichev wrote: sendmsg() with a single iov becomes ITER_UBUF, sendmsg() with multiple iovs becomes ITER_IOVEC. iter_iov_len does not return correct value for UBUF, so teach to

Re: [PATCH net-next v6 0/5] vsock: SOCK_LINGER rework

2025-05-22 Thread Stefano Garzarella
On Thu, May 22, 2025 at 01:18:20AM +0200, Michal Luczaj wrote: Change vsock's lingerning to wait on close() until all data is sent, i.e. until workers picked all the packets for processing. Thanks for the series and the patience :-) LGTM! There should be my R-b for all patches. Thanks, Stefan

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-22 Thread David Hildenbrand
On 21.05.25 20:48, Mark Brown wrote: On Mon, May 19, 2025 at 03:28:47PM +0200, David Hildenbrand wrote: On 16.05.25 20:07, Mark Brown wrote: On Fri, May 16, 2025 at 04:12:08PM +0200, David Hildenbrand wrote: [Converting to kselftet_harness] That'd certainly work, though doing that is more s

Re: [PATCH 00/19] virtio_ring in order support

2025-05-22 Thread Lei Yang
On Mon, May 19, 2025 at 5:35 AM Michael S. Tsirkin wrote: > > On Wed, Mar 26, 2025 at 07:39:47AM +0100, Eugenio Perez Martin wrote: > > On Mon, Mar 24, 2025 at 3:44 PM Lei Yang wrote: > > > > > > QE tested this series of patches with virtio-net regression tests, > > > everything works fine. > > >

[PATCH 2/3] modpost: allow "make nsdeps" to skip module-specific symbol namespace

2025-05-22 Thread Masahiro Yamada
When MODULE_IMPORT_NS() is missing, "make nsdeps" runs the Coccinelle script to automatically add MODULE_IMPORT_NS() to each module. This should not occur for users of EXPORT_SYMBOL_GPL_FOR_MODULES(), which is intended to export a symbol to a specific module only. In such cases, explicitly adding

[PATCH bpf-next v2 1/2] bpf, arm64: Support up to 12 function arguments

2025-05-22 Thread Alexis Lothoré
From: Xu Kuohai Currently ARM64 bpf trampoline supports up to 8 function arguments. According to the statistics from commit 473e3150e30a ("bpf, x86: allow function arguments up to 12 for TRACING"), there are about 200 functions accept 9 to 12 arguments, so adding support for up to 12 function arg

Re: [PATCH v4 4/7] futex: Create set_robust_list2

2025-05-22 Thread kernel test robot
: 3ee84e3dd88e39b55b534e17a7b9a181f1d46809 patch link: https://lore.kernel.org/r/20250520-tonyk-robust_futex-v4-4-1123093e59de%40igalia.com patch subject: [PATCH v4 4/7] futex: Create set_robust_list2 config: arm-randconfig-r122-20250522 (https://download.01.org/0day-ci/archive/20250522/202505221953.jkgfsa3u-...@intel.com

[PATCH net-next v8] selftests/vsock: add initial vmtest.sh for vsock

2025-05-22 Thread Bobby Eshleman
This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, H2G, and loopback. The testing tools from tools/testing/vsock/ are reused. Currently, only vsock_test is used. VMCI and hyperv support is included in the config file to be

RE: [PATCH v4 0/2] livepatch, arm64/module: Enable late module relocations.

2025-05-22 Thread Toshiyuki Sato (Fujitsu)
Hi Dylan, > Late relocations (after the module is initially loaded) are needed when > livepatches change module code. This is supported by x86, ppc, and s390. > This series borrows the x86 methodology to reach the same level of support on > arm64, and moves the text-poke locking into the core live

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

2025-05-22 Thread Huang, Kai
> > +/** > + * 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 update CPUSVN to the >

Re: [PATCH v6 2/5] x86/cpufeatures: Add X86_FEATURE_SGX_EUPDATESVN feature flag

2025-05-22 Thread Huang, Kai
On Thu, 2025-05-22 at 12:21 +0300, Elena Reshetova wrote: > --- a/tools/arch/x86/include/asm/cpufeatures.h > +++ b/tools/arch/x86/include/asm/cpufeatures.h > @@ -481,6 +481,7 @@ >  #define X86_FEATURE_AMD_HTR_CORES(21*32+ 6) /* Heterogeneous Core > Topology */ >  #define X86_FEATURE_AMD_WORKLO

Re: vmlinux BTF as a module (was Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux)

2025-05-22 Thread Alexei Starovoitov
On Wed, May 21, 2025 at 8:00 AM Alan Maguire wrote: > > > Hi Alan, > > > > Thanks for taking a look at this. I've been following your related effort > > to allow /sys/kernel/btf/vmlinux as a module in support of small systems > > with kernel-size constraints, and wondered how this series might aff

[PATCH v2] selftests: ir_decoder: Convert header comment to proper multi-line block

2025-05-22 Thread Abdelrahman Fekry
v2- fixed multiple trailing whitespace errors and the Signed-off-by mismatch The test file for the IR decoder used single-line comments at the top to document its purpose and licensing, which is inconsistent with the style used throughout the Linux kernel. In this patch i converted the file heade

Re: [PATCH 1/1] Fix typo in cpu-on-off-test selftest script:

2025-05-22 Thread Shuah Khan
On 5/16/25 19:19, Jihed Chaibi wrote: Fix typo in hotplaggable_offline_cpus function name: "hotplaggable" is replaced by "hotpluggable" Signed-off-by: Jihed Chaibi --- Change looks good to me. Change log should specify the subsusystem. Check submitting patches document and refer to a few cha

Re: [PATCH v2] selftests: Add functional test for the abort file in fusectl

2025-05-22 Thread Shuah Khan
On 5/16/25 19:23, Chen Linxuan wrote: This patch add a simple functional test for the "abort" file in fusectlfs (/sys/fs/fuse/connections/ID/about). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxP

Re: [PATCH] selftests: net: fix spelling and grammar mistakes

2025-05-22 Thread Shuah Khan
On 5/16/25 19:59, Praveen Balakrishnan wrote: Fix several spelling and grammatical mistakes in output messages from the net selftests to improve readability. Only the message strings for the test output have been modified. No changes to the functional logic of the tests have been made. Signed-o

Re: [PATCH v2] selftests: Improve test output grammar, code style

2025-05-22 Thread Shuah Khan
On 5/16/25 02:42, Hanne-Lotta Mäenpää wrote: Add small grammar fixes in perf events and Real Time Clock tests' output messages. Include braces around a single if statement, when there are multiple statements in the else branch, to align with the kernel coding style. This patch combines several

Re: [PATCH] [PATCH] Change pidns to pid namespace

2025-05-22 Thread Shuah Khan
On 5/16/25 10:49, rodgeprit...@gmail.com wrote: From: Pritesh Rodge Changed a comment in memfd_test.c , Unabbreviated pidns to pid namespace for better understanding . Signed-off-by: Pritesh Rodge --- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH net-next] vsock/test: Cover more CIDs in transport_uaf test

2025-05-22 Thread Michal Luczaj
Increase the coverage of test for UAF due to socket unbinding, and losing transport in general. It's a follow up to commit 301a62dfb0d0 ("vsock/test: Add test for UAF due to socket unbinding") and discussion in [1]. The idea remains the same: take an unconnected stream socket with a transport assi

Re: [PATCH net-next v6 0/5] vsock: SOCK_LINGER rework

2025-05-22 Thread Michal Luczaj
On 5/22/25 10:08, Stefano Garzarella wrote: > On Thu, May 22, 2025 at 01:18:20AM +0200, Michal Luczaj wrote: >> Change vsock's lingerning to wait on close() until all data is sent, i.e. >> until workers picked all the packets for processing. > > Thanks for the series and the patience :-) > > LGTM

Re: [PATCH bpf-next v5 1/3] btf: allow mmap of vmlinux btf

2025-05-22 Thread Shakeel Butt
On Tue, May 20, 2025 at 02:01:17PM +0100, Lorenz Bauer wrote: > User space needs access to kernel BTF for many modern features of BPF. > Right now each process needs to read the BTF blob either in pieces or > as a whole. Allow mmaping the sysfs file so that processes can directly > access the memor

[PATCH v2] selftests: timers: valid-adjtimex: fix coding style issues

2025-05-22 Thread Rujra Bhatt
This patch corrects minor coding style issues to comply with the Linux kernel coding style: - Align closing parentheses to match opening ones in printf statements. - Break long lines to keep them within the 100-column limit. These changes address warnings reported by checkpatch.pl and do not a

Re: [PATCH] selftests: firmware: Add details in error logging

2025-05-22 Thread Shuah Khan
On 5/16/25 09:39, Harshal wrote: Specify details in logs of failed cases Use die() instead of exit() when write to sys_path fails Please explain why this change is needed? Signed-off-by: Harshal --- tools/testing/selftests/firmware/fw_namespace.c | 17 + 1 file changed,

Re: [PATCH bpf-next v3 0/8] selftests/bpf: Test sockmap/sockhash redirection

2025-05-22 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Martin KaFai Lau : On Thu, 15 May 2025 00:15:23 +0200 you wrote: > John, this revision introduces one more patch: "selftests/bpf: Introduce > verdict programs for sockmap_redir". I've kept you cross-series Acked-by. I > hope it's ok.

Re: [PATCH] selftests: timers: Fix grammar and clarify comments in nanosleep.c

2025-05-22 Thread Shuah Khan
On 5/14/25 16:21, Rahul Kumar wrote: Improved the clarity and grammar in the header comment of nanosleep.c for better readability and consistency with kernel documentation style. This patch isn't really fixing anything. I won't be taking this one. Sorry. thanks, -- Shuah

Re: Fwd: [PATCH] selftests : timers : valid-adjtimex.c : Fixed style checks

2025-05-22 Thread Shuah Khan
On 5/15/25 19:44, rujra wrote: fixed style checks according to Linux Kernel Coding Style standards. Fixes 1 : fixed alignment of parenthesis. LOG : CHECK: Alignment should match open parenthesis + printf("ERROR: out of range value %ld actually set!\n", +

RE: [PATCH v2 8/8] irqbypass: Require producers to pass in Linux IRQ number during registration

2025-05-22 Thread Tian, Kevin
> From: Sean Christopherson > Sent: Saturday, May 17, 2025 7:08 AM > > Pass in the Linux IRQ associated with an IRQ bypass producer instead of > relying on the caller to set the field prior to registration, as there's > no benefit to relying on callers to do the right thing. > > Take care to set

[PATCH v2] selftests: acct: fix grammar and clarify output messages - Fixed email case mismatch in Signed-off-by

2025-05-22 Thread Abdelrahman Fekry
This patch improves the clarity and grammar of output messages in the acct() selftest. Minor changes were made to user-facing strings and comments to make them easier to understand and more consistent with the kselftest style. Changes include: - Fixing grammar in printed messages and comments. - R

[PATCH v2] selftests: size: fix grammar and align output formatting

2025-05-22 Thread Abdelrahman Fekry
This is v2 of the patch. The Signed-off-by line mismatch reported by checkpatch has been fixed. Improve the grammar in the test name by changing "get runtime memory use" to "get runtime memory usage". Also adjust spacing in output lines ("Total:", "Free:", etc.) to ensure consistent alignment and

[PATCH v2] selftests: net: fix spelling and grammar mistakes

2025-05-22 Thread Praveen Balakrishnan
Fix several spelling and grammatical mistakes in output messages from the net selftests to improve readability. Only the message strings for the test output have been modified. No changes to the functional logic of the tests have been made. Signed-off-by: Praveen Balakrishnan --- Changes in v2:

[PATCH] fs/dax: Fix "don't skip locked entries when scanning entries"

2025-05-22 Thread Alistair Popple
Commit 6be3e21d25ca ("fs/dax: don't skip locked entries when scanning entries") introduced a new function, wait_entry_unlocked_exclusive(), which waits for the current entry to become unlocked without advancing the XArray iterator state. Waiting for the entry to become unlocked requires dropping t

RE: [PATCH v6 2/5] x86/cpufeatures: Add X86_FEATURE_SGX_EUPDATESVN feature flag

2025-05-22 Thread Reshetova, Elena
> -Original Message- > From: Huang, Kai > Sent: Friday, May 23, 2025 3:18 AM > To: Reshetova, Elena ; Hansen, Dave > > Cc: Raynor, Scott ; sea...@google.com; > mi...@kernel.org; Scarlata, Vincent R ; > x...@kernel.org; jar...@kernel.org; Annapurve, Vishal > ; linux-kernel@vger.kernel.org;