Skip to content

Commit c042185

Browse files
committed
splice07: Whitelist /dev/zero on pipe write
/dev/zero on pipe write started to succeeded on kernel 6.7 due commit 1b057bd800c3 ("drivers/char/mem: implement splice() for /dev/zero, /dev/full"). This is just a quick fix before upcoming LTP release, we should write a separate test to test 1b057bd800c3 after the release Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Martin Doucha <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
1 parent 03efa6c commit c042185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testcases/kernel/syscalls/splice/splice07.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static void check_splice(struct tst_fd *fd_in, struct tst_fd *fd_out)
3838
if (fd_out->type == TST_FD_PIPE_WRITE) {
3939
switch (fd_in->type) {
4040
/* While these combinations succeeed */
41+
case TST_FD_DEV_ZERO:
4142
case TST_FD_FILE:
4243
case TST_FD_MEMFD:
4344
return;

0 commit comments

Comments
 (0)