aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2025-06-11 20:53:43 +0000
committerJens Axboe <[email protected]>2025-06-12 14:17:09 +0000
commitc538f400fae22725580842deb2bef546701b64bd (patch)
tree99abc87d444307a7060fd281078a45746cd1f3d3 /lib/crypto/mpi/mpiutil.c
parentio_uring: fix use-after-free of sq->thread in __io_uring_show_fdinfo() (diff)
downloadkernel-c538f400fae22725580842deb2bef546701b64bd.tar.gz
kernel-c538f400fae22725580842deb2bef546701b64bd.zip
io_uring: consistently use rcu semantics with sqpoll thread
The sqpoll thread is dereferenced with rcu read protection in one place, so it needs to be annotated as an __rcu type, and should consistently use rcu helpers for access and assignment to make sparse happy. Since most of the accesses occur under the sqd->lock, we can use rcu_dereference_protected() without declaring an rcu read section. Provide a simple helper to get the thread from a locked context. Fixes: ac0b8b327a5677d ("io_uring: fix use-after-free of sq->thread in __io_uring_show_fdinfo()") Signed-off-by: Keith Busch <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: fold in fix for register.c] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions