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
--
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
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
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
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
* 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
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
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
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
(
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
---
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
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
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
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
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
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
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
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
== 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
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/
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
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 +---
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
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
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
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
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
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
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.
> > >
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
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
: 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
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
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
>
> +/**
> + * 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
>
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
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
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
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
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
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
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
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
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
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
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
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
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,
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.
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
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",
+
> 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
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
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
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:
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
> -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;
72 matches
Mail list logo