io_uring: drop file refs after task cancel
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 4 Jan 2021 20:43:29 +0000 (20:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:27:25 +0000 (18:27 +0100)
commit94dbb87fc0b25285a0eba2350f77316063151be5
tree194f56a27e4d7041faa20b670c01c66753166f57
parent501e1875da3237a876f8d09e1a286ec2ff83d4fe
io_uring: drop file refs after task cancel

[ Upstream commit de7f1d9e99d8b99e4e494ad8fcd91f0c4c5c9357 ]

io_uring fds marked O_CLOEXEC and we explicitly cancel all requests
before going through exec, so we don't want to leave task's file
references to not our anymore io_uring instances.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c