summaryrefslogtreecommitdiffstats
path: root/kernel/kcmp.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-01 15:28:44 +0100
committerJens Axboe <axboe@kernel.dk>2022-06-01 10:12:41 -0600
commit61c1b44a21d70d4783db02198fbf68b132f4953c (patch)
tree6641f4cc04ffc4d1b6482f99880638f7e976577b /kernel/kcmp.c
parenta7c41b4687f5902af70cd559806990930c8a307b (diff)
downloadlinux-stable-61c1b44a21d70d4783db02198fbf68b132f4953c.tar.gz
linux-stable-61c1b44a21d70d4783db02198fbf68b132f4953c.tar.bz2
linux-stable-61c1b44a21d70d4783db02198fbf68b132f4953c.zip
io_uring: fix deadlock on iowq file slot alloc
io_fixed_fd_install() can grab uring_lock in the slot allocation path when called from io-wq, and then call into io_install_fixed_file(), which will lock it again. Pull all locking out of io_install_fixed_file() into io_fixed_fd_install(). Fixes: 1339f24b336db ("io_uring: allow allocated fixed files for openat/openat2") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/64116172a9d0b85b85300346bb280f3657aafc26.1654087283.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/kcmp.c')
0 files changed, 0 insertions, 0 deletions