public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/1] splice07: Whitelist /dev/zero on pipe write
@ 2024-01-26 12:16 Petr Vorel
  2024-01-26 13:11 ` Martin Doucha
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Petr Vorel @ 2024-01-26 12:16 UTC (permalink / raw)
  To: ltp; +Cc: Jan Kara

/dev/zero on pipe write started to succeeded on kernel 6.7.

This is due commit 1b057bd800c3 ("drivers/char/mem: implement splice()
for /dev/zero, /dev/full") from kernel 6.7.

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v1->v2:
* Skip only for kernel >= 6.7

 testcases/kernel/syscalls/splice/splice07.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/syscalls/splice/splice07.c b/testcases/kernel/syscalls/splice/splice07.c
index 135c42e47..c7b1c9ee5 100644
--- a/testcases/kernel/syscalls/splice/splice07.c
+++ b/testcases/kernel/syscalls/splice/splice07.c
@@ -44,6 +44,10 @@ static void check_splice(struct tst_fd *fd_in, struct tst_fd *fd_out)
 		/* And this complains about socket not being connected */
 		case TST_FD_INET_SOCK:
 			return;
+		/* 1b057bd800c3 implemented splice() for /dev/zero, /dev/full */
+		case TST_FD_DEV_ZERO:
+			if (tst_kvercmp(6, 7, 0) >= 0)
+				return;
 		default:
 		break;
 		}
-- 
2.43.0


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

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

end of thread, other threads:[~2024-01-29 10:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 12:16 [LTP] [PATCH v2 1/1] splice07: Whitelist /dev/zero on pipe write Petr Vorel
2024-01-26 13:11 ` Martin Doucha
2024-01-26 13:20   ` Petr Vorel
2024-01-26 14:14   ` Cyril Hrubis
2024-01-26 14:19     ` Martin Doucha
2024-01-26 14:26       ` Cyril Hrubis
2024-01-26 14:35         ` Martin Doucha
2024-01-26 14:13 ` Jan Kara
2024-01-29 10:11 ` Petr Vorel

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