[LTP] [PATCH] cve/ghostlock: Skip the test in 32-bit compat mode
Avinesh Kumar
avinesh.kumar@suse.com
Thu Nov 12 20:34:57 CET 2026
From: Avinesh Kumar <avinesh.kumar@suse.com>
struct prctl_mm_map has a pointer member (auxv) and PR_SET_MM_MAP has no
compat handling, so a 64-bit kernel rejects the 32-bit layout with EINVAL:
ghostlock.c:202: TBROK: PR_SET_MM_MAP failed for all auxv sizes: EINVAL (22)
native 64-bit run covers the generic rtmutex/futex PI code, hence skip on
compat mode.
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
testcases/cve/ghostlock.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/cve/ghostlock.c b/testcases/cve/ghostlock.c
index b37d6e9ca4e1..f0f84c8fbd90 100644
--- a/testcases/cve/ghostlock.c
+++ b/testcases/cve/ghostlock.c
@@ -265,6 +265,7 @@ static struct tst_test test = {
.test_all = run,
.runtime = 180,
.needs_checkpoints = 1,
+ .skip_in_compat = 1,
.needs_kconfigs = (const char *[]) {
"CONFIG_CHECKPOINT_RESTORE=y",
"CONFIG_FUTEX_PI=y",
--
2.56.0
More information about the ltp
mailing list