cve/ghostlock: Skip the test in 32-bit compat mode
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.
Signed-off-by Avinesh Kumar <[email protected]>
--- testcases/cve/ghostlock.c | 1 + 1 file changed, 1 insertion(+)
testcases/cve/ghostlock.c +1 -0
@@ -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