[LTP] [PATCH v2] dirtyc0w_shmem: Add minimum kernel version 6.0 check
Madhu Ananthula (Temp)
mananthu@qti.qualcomm.com
Thu Dec 4 08:22:21 CET 2025
Hi Team,
Gentle Reminder
Can you help to merge this PR https://github.com/linux-test-project/ltp/pull/1274
Updated the V2 Patch with Review comments.
Thanks,
Madhu
-----Original Message-----
From: Madhu Ananthula (Temp) <mananthu@qti.qualcomm.com>
Sent: Friday, November 28, 2025 12:18 PM
To: ltp@lists.linux.it
Cc: Wake Liu <wakel@google.com>; Kodanda Rami Reddy V (Temp) (QUIC) <quic_kreddyv@quicinc.com>; Prasanna Kumar <kprasan@qti.qualcomm.com>; Madhu Ananthula (Temp) <mananthu@qti.qualcomm.com>
Subject: [PATCH v2] dirtyc0w_shmem: Add minimum kernel version 6.0 check
The CVE 2022-2590 vulnerability applicable only on kernels 6.0 and above.
Add min_kver = "6.0" to skip the test on older kernels.
Test Module: vts_ltp_test_arm_64
Test Case: cve.cve-2022-2590_64bit#cve.cve-2022-2590_64bit
GBUG: 418679607
Signed-off-by: Madhu Ananthula <mananthu@qti.qualcomm.com>
---
testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c b/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c
index 2c7ad00f2..9cf495704 100644
--- a/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c
+++ b/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c
@@ -103,6 +103,7 @@ static void cleanup(void) }
static struct tst_test test = {
+ .min_kver = "6.0",
.needs_checkpoints = 1,
.child_needs_reinit =1,
.forks_child = 1,
--
2.25.1
More information about the ltp
mailing list