io_uring: add ->splice_fd_in checks
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 20 Aug 2021 09:36:37 +0000 (10:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:13:00 +0000 (13:13 -0600)
commit26578cda3db983b17cabe4e577af26306beb9987
treee66c686649ae4b6597757a03700902ec57e57462
parent2c5d763c1939fbd130452ee0d4d1a44b5dd97bb7
io_uring: add ->splice_fd_in checks

->splice_fd_in is used only by splice/tee, but no other request checks
it for validity. Add the check for most of request types excluding
reads/writes/sends/recvs, we don't want overhead for them and can leave
them be as is until the field is actually used.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f44bc2acd6777d932de3d71a5692235b5b2b7397.1629451684.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c