https://github.com/torvalds/linux
Revision 90da2e3f25c8b4d742b2687b8fed8fc4eb8851da authored by Pavel Begunkov on 04 May 2020, 19:39:35 UTC, committed by Jens Axboe on 07 May 2020, 15:45:07 UTC
do_splice() is used by io_uring, as will be do_tee(). Move f_mode
checks from sys_{splice,tee}() to do_{splice,tee}(), so they're
enforced for io_uring as well.

Fixes: 7d67af2c0134 ("io_uring: add splice(2) support")
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 7f13657
Raw File
Tip revision: 90da2e3f25c8b4d742b2687b8fed8fc4eb8851da authored by Pavel Begunkov on 04 May 2020, 19:39:35 UTC
splice: move f_mode checks to do_{splice,tee}()
Tip revision: 90da2e3
.get_maintainer.ignore
Christoph Hellwig <hch@lst.de>
Marc Gonzalez <marc.w.gonzalez@free.fr>
back to top