commit | 90da2e3f25c8b4d742b2687b8fed8fc4eb8851da | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Mon May 04 22:39:35 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Thu May 07 09:45:07 2020 -0600 |
tree | 6937c8d00b23be9016972d3000838338f9a09a6d | |
parent | 7f13657d141346125f4d0bb93eab4777f40c406e [diff] |
splice: move f_mode checks to do_{splice,tee}() 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>