summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-09 08:34:35 +0100
committerPavel Begunkov <asml.silence@gmail.com>2022-06-13 09:53:41 +0100
commit05b538c1765f8d14a71ccf5f85258dcbeaf189f7 (patch)
treeb9ea721f301a58633b99cef2fd5da753e89729c1 /ipc
parentd11d31fc5d8a96f707facee0babdcffaafa38de2 (diff)
io_uring: fix not locked access to fixed buf table
We can look inside the fixed buffer table only while holding ->uring_lock, however in some cases we don't do the right async prep for IORING_OP_{WRITE,READ}_FIXED ending up with NULL req->imu forcing making an io-wq worker to try to resolve the fixed buffer without proper locking. Move req->imu setup into early req init paths, i.e. io_prep_rw(), which is called unconditionally for rw requests and under uring_lock. Fixes: 634d00df5e1cf ("io_uring: add full-fledged dynamic buffers support") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions