Skip to content

Commit

Permalink
splice07: Whitelist /proc/self/maps on pipe write
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mdoucha authored and pevik committed Jan 29, 2024
1 parent c042185 commit e5970b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/splice/splice07.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static void check_splice(struct tst_fd *fd_in, struct tst_fd *fd_out)
/* While these combinations succeeed */
case TST_FD_DEV_ZERO:
case TST_FD_FILE:
case TST_FD_PROC_MAPS:
case TST_FD_MEMFD:
return;
/* And this complains about socket not being connected */
Expand Down

0 comments on commit e5970b2

Please sign in to comment.