summaryrefslogtreecommitdiff
path: root/fs/fscache
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-04-26 17:17:38 +0300
committerJens Axboe <axboe@kernel.dk>2021-04-26 18:03:57 +0300
commit0b8c0e7c9692cfcfa02c9052d4d53ae67901c400 (patch)
treeaecf19946187f5912d04a7156f16017b1b96f891 /fs/fscache
parent9f59a9d88d3bb2708d08e0e1d03899c469c27190 (diff)
downloadlinux-0b8c0e7c9692cfcfa02c9052d4d53ae67901c400.tar.xz
io_uring: fix NULL reg-buffer
io_import_fixed() doesn't expect a registered buffer slot to be NULL and would fail stumbling on it. We don't allow it, but if during __io_sqe_buffers_update() rsrc removal succeeds but following register fails, we'll get such a situation. Do it atomically and don't remove buffers until we sure that a new one can be set. Fixes: 634d00df5e1cf ("io_uring: add full-fledged dynamic buffers support") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/830020f9c387acddd51962a3123b5566571b8c6d.1619446608.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/fscache')
0 files changed, 0 insertions, 0 deletions