The unknown_flags_rejected test uses 0x800000000ULL (1ULL << 35) to test
that clone3() rejects unknown 64-bit flags with -EINVAL.
However, bit 35 has been allocated to CLONE_NNP, causing clone3() to
succeed and the assertion expecting failure to fail.
Switch to (1ULL << 63) which is an unused high bit so the test
consistently expects -EINVAL.
Fixes: 5b8ffd63fbd9 ("selftests/filesystems: add clone3 tests for empty mount
namespaces")
Signed-off-by: Disha Goel <[email protected]>
---
.../selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
b/tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
index de0cbd1a5ee0..b271fed3ae70 100644
--- a/tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
+++ b/tools/testing/selftests/filesystems/empty_mntns/clone3_empty_mntns_test.c
@@ -868,7 +868,7 @@ TEST(unknown_flags_rejected)
if (pid == 0) {
struct __clone_args args = {
- .flags = 0x800000000ULL,
+ .flags = (1ULL << 63),
.exit_signal = SIGCHLD,
};
pid_t ret;
--
2.45.1