summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-03-25 14:00:43 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-25 14:43:53 +0100
commit8197b053a83335dd1b7eb7581a933924e25c1025 (patch)
tree3844abb6d83a181ff588b15861ad7589a0da2702 /drivers
parentio_uring: fix invalid flags for io_put_kbuf() (diff)
downloadlinux-8197b053a83335dd1b7eb7581a933924e25c1025.tar.xz
linux-8197b053a83335dd1b7eb7581a933924e25c1025.zip
io_uring: fix put_kbuf without proper locking
io_put_kbuf_comp() should only be called while holding ->completion_lock, however there is no such assumption in io_clean_op() and thus it can corrupt ->io_buffer_comp. Take the lock there, and workaround the only user of io_clean_op() calling it with locks. Not the prettiest solution, but it's easier to refactor it for-next. Fixes: cc3cec8367cba ("io_uring: speedup provided buffer handling") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/743e2130b73ec6d48c4c5dd15db896c433431e6d.1648212967.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions