splice07: Whitelist /proc/self/maps on pipe write
PATCH 1/1 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()")
Signed-off-by Martin Doucha <[email protected]>
--- testcases/kernel/syscalls/splice/splice07.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/splice/splice07.c +1 -0
@@ -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 */
Signature · 5 lines
2.42.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Martin,
Quoted 4 lines
Just like with
/dev/zero, splicing/proc/self/mapsto writable pipe is expected to pass. After genericsplice()read emulation was removed, it was reimplemented in commitb0072734ffaa("tty, proc, kernfs, random:
Usecopy_splice_read()")
Ah, very good catch, thank you. Kernel 6.5.
Reviewed-by Petr Vorel <[email protected]>
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Hopefully this is a last one...
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Martin, Cyril,
Quoted 2 lines
Hi!
Hopefully this is a last one...
Great, merged.
Thank you both!
Kind regards,
Petr
Quoted 1 line
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp