All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
@ 2026-04-30  6:33 Avinesh Kumar via ltp
  2026-04-30  8:26 ` Li Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Avinesh Kumar via ltp @ 2026-04-30  6:33 UTC (permalink / raw)
  To: ltp

Upstream Linux commit 5e8969bd1927 ("mount: add FSMOUNT_NAMESPACE") [1]
introduced the `FSMOUNT_NAMESPACE` flag, which maps to `0x02`.
This causes fsmount02 test failure as `0x02` value is no longer invalid.

fsmount02.c:56: TFAIL: invalid-flags: fsmount() succeeded unexpectedly (index: 1)

Use `0x80000000` as invalid flag value to adapt test for this upstream change.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5e8969bd1927
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 testcases/kernel/syscalls/fsmount/fsmount02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/fsmount/fsmount02.c b/testcases/kernel/syscalls/fsmount/fsmount02.c
index 55f0e2f28..934d775ab 100644
--- a/testcases/kernel/syscalls/fsmount/fsmount02.c
+++ b/testcases/kernel/syscalls/fsmount/fsmount02.c
@@ -19,7 +19,7 @@ static struct tcase {
 	int exp_errno;
 } tcases[] = {
 	{"invalid-fd", &invalid_fd, FSMOUNT_CLOEXEC, 0, EBADF},
-	{"invalid-flags", &fd, 0x02, 0, EINVAL},
+	{"invalid-flags", &fd, 0x80000000, 0, EINVAL},
 	{"invalid-attrs", &fd, FSMOUNT_CLOEXEC, 0x100, EINVAL},
 };
 
-- 
2.54.0


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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-06 15:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  6:33 [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+ Avinesh Kumar via ltp
2026-04-30  8:26 ` Li Wang
2026-04-30  9:14 ` [LTP] " linuxtestproject.agent
2026-05-06 15:49 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-05-06 15:49 ` Andrea Cervesato via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.