Skip to contentSkip to conversation

cve/ghostlock: Skip the test in 32-bit compat mode

PATCH New Avinesh Kumar via ltp 1 participant 1 message Nov 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cve/ghostlock: Skip the test in 32-bit compat mode

From: Avinesh Kumar <[email protected]>

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.

---
 testcases/cve/ghostlock.c | 1 +
 1 file changed, 1 insertion(+)
testcases/cve/ghostlock.c +1 -0
index b37d6e9ca4e1..f0f84c8fbd90 100644
@@ -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",
Signature · 5 lines
2.56.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp