io_uring: dont remove file from msg_ring reqs
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Dec 2022 03:53:26 +0000 (03:53 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Dec 2022 13:47:13 +0000 (06:47 -0700)
commitef0ec1ad03119b8b46b035dad42bca7d6da7c2e5
tree27b3091d86ca96a78743410bc66d0af25329288e
parent7500194a630b11236761df35fef300009d7d3f6f
io_uring: dont remove file from msg_ring reqs

We should not be messing with req->file outside of core paths. Clearing
it makes msg_ring non reentrant, i.e. luckily io_msg_send_fd() fails the
request on failed io_double_lock_ctx() but clearly was originally
intended to do retries instead.

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