public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [RFC PATCH 1/1] readahead01: Pass also on memfd secret
@ 2024-01-18 19:13 Petr Vorel
  2024-01-19  6:57 ` Li Wang
  2024-01-19 15:33 ` Jan Kara
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2024-01-18 19:13 UTC (permalink / raw)
  To: ltp; +Cc: Dominique Leuenberger

It fixes failure on 6.6 kernels:

TFAIL: readahead() on memfd secret succeeded

Fixes: ecf81d729 ("syscalls: readahead01: Make use of tst_fd")
Reported-by: Dominique Leuenberger <dimstar@opensuse.org>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

I wonder if this is a bug or just changed functionality.

I also tested on 5.14 SLES and 5.10 Debian and both TCONF due ENOSYS:

tst_fd.c:260: TCONF: Skipping memfd secret: ENOSYS (38)

Kind regards,
Petr

 testcases/kernel/syscalls/readahead/readahead01.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
index e86a73e3e..a1f313605 100644
--- a/testcases/kernel/syscalls/readahead/readahead01.c
+++ b/testcases/kernel/syscalls/readahead/readahead01.c
@@ -51,6 +51,7 @@ static void test_invalid_fd(struct tst_fd *fd)
 	/* These succeed */
 	case TST_FD_FILE:
 	case TST_FD_MEMFD:
+	case TST_FD_MEMFD_SECRET:
 	case TST_FD_PROC_MAPS:
 		return;
 	default:
-- 
2.43.0


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

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

end of thread, other threads:[~2024-01-21 19:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 19:13 [LTP] [RFC PATCH 1/1] readahead01: Pass also on memfd secret Petr Vorel
2024-01-19  6:57 ` Li Wang
2024-01-19 15:33 ` Jan Kara
2024-01-21 19:35   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox