]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix races with file table unregister
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 05:32:44 +0000 (06:32 +0100)
committerPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 08:53:07 +0000 (09:53 +0100)
commitb04c5d69354bbb4f14f0a3ab3509468fad96e894
treee13709f00bfd244cca8707cd9475d8be2f697e23
parent50b5945e49b4b4aa5d6583a0ca352c064f128750
io_uring: fix races with file table unregister

Fixed file table quiesce might unlock ->uring_lock, potentially letting
new requests to be submitted, don't allow those requests to use the
table as they will race with unregistration.

Reported-and-tested-by: van fantasy <g1042620637@gmail.com>
Fixes: 617803dc1ab8d ("io_uring: avoid ring quiesce for fixed file set unregister and update")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
fs/io_uring.c