* [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* Re: [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
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
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Li Wang @ 2026-04-30 8:26 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Avinesh Kumar via ltp wrote:
> 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>
Good catch.
Reviewed-by: Li Wang <li.wang@linux.dev>
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [LTP] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
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 ` linuxtestproject.agent
2026-05-06 15:49 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-05-06 15:49 ` Andrea Cervesato via ltp
3 siblings, 0 replies; 5+ messages in thread
From: linuxtestproject.agent @ 2026-04-30 9:14 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp, LTP AI Reviewer
Hi Avinesh,
On Thu, 30 Apr 2026 08:33:23 +0200, Avinesh Kumar wrote:
> syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
> - {"invalid-flags", &fd, 0x02, 0, EINVAL},
> + {"invalid-flags", &fd, 0x80000000, 0, EINVAL},
Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>
---
Note:
Our agent completed the review of the patch.
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
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 ` Andrea Cervesato via ltp
2026-05-06 15:49 ` Andrea Cervesato via ltp
3 siblings, 0 replies; 5+ messages in thread
From: Andrea Cervesato via ltp @ 2026-05-06 15:49 UTC (permalink / raw)
To: Avinesh Kumar via ltp; +Cc: ltp
Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+
2026-04-30 6:33 [LTP] [PATCH] syscalls/fsmount02: fix invalid-flags test failure on Linux 7.1+ Avinesh Kumar via ltp
` (2 preceding siblings ...)
2026-05-06 15:49 ` [LTP] [PATCH] " Andrea Cervesato via ltp
@ 2026-05-06 15:49 ` Andrea Cervesato via ltp
3 siblings, 0 replies; 5+ messages in thread
From: Andrea Cervesato via ltp @ 2026-05-06 15:49 UTC (permalink / raw)
To: Avinesh Kumar via ltp; +Cc: ltp
Merged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox