]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: use WRITE_ONCE for user shared memory
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 6 Nov 2025 12:58:19 +0000 (12:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:52 +0000 (14:02 +0100)
commite2a1f510e5990d0cc507ffc3d15f981b753ff7df
tree3034a269ef65fd3576ac1b6b8425e4d065a35277
parentb9422f46d9c54d0b67ea650ae083f766e6e58e9f
io_uring: use WRITE_ONCE for user shared memory

[ Upstream commit 93e197e524b14d185d011813b72773a1a49d932d ]

IORING_SETUP_NO_MMAP rings remain user accessible even before the ctx
setup is finalised, so use WRITE_ONCE consistently when initialising
rings.

Fixes: 03d89a2de25bb ("io_uring: support for user allocated memory for rings/sqes")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c