]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix races with buffer table unregister
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 05:30:06 +0000 (06:30 +0100)
committerPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 08:53:27 +0000 (09:53 +0100)
commit14c3e1b7ef26fcfd502a33f3e2a4c8e23fd241f1
treeec59fcf6033dbbd60c4856d5e49469fb52a8cc28
parentb04c5d69354bbb4f14f0a3ab3509468fad96e894
io_uring: fix races with buffer table unregister

Fixed buffer 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: b7c43781af261e ("io_uring: implement fixed buffers registration similar to fixed files")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
fs/io_uring.c