io_uring: fix double io_uring free
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 21 Dec 2020 18:34:05 +0000 (18:34 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Dec 2020 00:14:50 +0000 (17:14 -0700)
commit9faadcc8abe4b83d0263216dc3a6321d5bbd616b
tree4e076d5ad9128f9ec2434ca8f79c283d913e5460
parenta528b04ea40690ff40501f50d618a62a02b19620
io_uring: fix double io_uring free

Once we created a file for current context during setup, we should not
call io_ring_ctx_wait_and_kill() directly as it'll be done by fput(file)

Cc: stable@vger.kernel.org # 5.10
Reported-by: syzbot+c9937dfb2303a5f18640@syzkaller.appspotmail.com
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
[axboe: fix unused 'ret' for !CONFIG_UNIX]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c