selftests-proc-proc-empty-vm-handle-cpus-without-protection-keys.patch removed from -mm tree
The quilt patch titled
Subject: selftests/proc: proc-empty-vm: handle CPUs without protection keys
has been removed from the -mm tree. Its filename was
selftests-proc-proc-empty-vm-handle-cpus-without-protection-keys.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Kurt Lin <[email protected]>
Subject: selftests/proc: proc-empty-vm: handle CPUs without protection keys
Date: Mon, 9 Nov 2026 23:19:12 +0800
On x86 CPUs without protection keys, pkey_alloc() fails with ENOSPC, as documented in pkey_alloc(2). protection_key_support() only expects ENOSYS or EINVAL, so the test fails on such machines, e.g. an Intel Core i5-7200U:
protection_key_support: error: rv -1, errno 28
Treat ENOSPC as "no protection key support" as well.
An AI coding assistant (Claude) was used to analyze the failure and to draft the fix and this changelog. Tested on v7.4-rc1 on the machine above; the test now passes.
tools/testing/selftests/proc/proc-empty-vm.c | 3 +++ 1 file changed, 3 insertions(+)
tools/testing/selftests/proc/proc-empty-vm.c renamed from tools/testing/selftests/proc/proc-empty-vm.c~selftests-proc-proc-empty-vm-handle-cpus-without-protection-keys +3 -0
@@ -78,6 +78,9 @@ static int protection_key_support(void) }else if (rv ==-1 && errno ==EINVAL ) {// ospke=n return 0 ; + }else if (rv ==-1 && errno ==ENOSPC ) { +// CPU without protection keys +return 0 ; }else {fprintf (stderr,"%s: error: rv %ld, errno %d\n" , __func__, rv, errno);exit (EXIT_FAILURE );
_
Patches currently in -mm which might be from [email protected] are