]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/cmd_net: use READ_ONCE() for ->addr3 read
authorJens Axboe <axboe@kernel.dk>
Tue, 24 Feb 2026 18:36:09 +0000 (11:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Feb 2026 18:38:34 +0000 (11:38 -0700)
commita46435537a844d0f7b4b620baf962cad136422de
tree455cb77ab633a911b025c8d34b4927140445d9c8
parentea129e55c9e06a51a93c3f5ef3e32a6cfa3f8ec7
io_uring/cmd_net: use READ_ONCE() for ->addr3 read

Any SQE read should use READ_ONCE(), to ensure the result is read once
and only once. Doesn't really matter for this case, but it's better to
keep these 100% consistent and always use READ_ONCE() for the prep side
of SQE handling.

Fixes: 5d24321e4c15 ("io_uring: Introduce getsockname io_uring cmd")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cmd_net.c