Skip to content

Commit e5970b2

Browse files
mdouchapevik
authored andcommitted
splice07: Whitelist /proc/self/maps on pipe write
Just like with /dev/zero, splicing /proc/self/maps to writable pipe is expected to pass. After generic splice() read emulation was removed, it was reimplemented in commit b0072734ffaa ("tty, proc, kernfs, random: Use copy_splice_read()") Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]> Signed-off-by: Martin Doucha <[email protected]>
1 parent c042185 commit e5970b2

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
@@ -40,6 +40,7 @@ static void check_splice(struct tst_fd *fd_in, struct tst_fd *fd_out)
4040
/* While these combinations succeeed */
4141
case TST_FD_DEV_ZERO:
4242
case TST_FD_FILE:
43+
case TST_FD_PROC_MAPS:
4344
case TST_FD_MEMFD:
4445
return;
4546
/* And this complains about socket not being connected */

0 commit comments

Comments
 (0)