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

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

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

@Jan could you please check the problem is a kernel 6.7 bug
or just wanted change and we should whitelist /dev/zero on pipe write?

Thanks!

Kind regards,
Petr

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

diff --git a/testcases/kernel/syscalls/splice/splice07.c b/testcases/kernel/syscalls/splice/splice07.c
index 135c42e47..1fa13b3e6 100644
--- a/testcases/kernel/syscalls/splice/splice07.c
+++ b/testcases/kernel/syscalls/splice/splice07.c
@@ -38,6 +38,7 @@ static void check_splice(struct tst_fd *fd_in, struct tst_fd *fd_out)
 	if (fd_out->type == TST_FD_PIPE_WRITE) {
 		switch (fd_in->type) {
 		/* While these combinations succeeed */
+		case TST_FD_DEV_ZERO:
 		case TST_FD_FILE:
 		case TST_FD_MEMFD:
 			return;
-- 
2.43.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:[~2024-01-29 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-25 15:51 [LTP] [PATCH 1/1] splice07: Whitelist /dev/zero on pipe write Petr Vorel
2024-01-26 12:00 ` Cyril Hrubis
2024-01-29  9:58 ` Martin Doucha
2024-01-29 10:07   ` Cyril Hrubis
2024-01-29 10:08   ` Petr Vorel

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