summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2025-01-15 23:26:03 +0300
committerJens Axboe <axboe@kernel.dk>2025-01-21 17:07:10 +0300
commit5719e2823565a304a2afb752d4792c622a693e22 (patch)
tree4d9c69ab6d63a765bd70f8201d3fccc847e7741a /lib/crypto/mpi/mpiutil.c
parent95ec54a420b8f445e04a7ca0ea8deb72c51fe1d3 (diff)
downloadlinux-5719e2823565a304a2afb752d4792c622a693e22.tar.xz
io_uring/rsrc: Simplify buffer cloning by locking both rings
The locking in the buffer cloning code is somewhat complex because it goes back and forth between locking the source ring and the destination ring. Make it easier to reason about by locking both rings at the same time. To avoid ABBA deadlocks, lock the rings in ascending kernel address order, just like in lock_two_nondirectories(). Signed-off-by: Jann Horn <jannh@google.com> Link: https://lore.kernel.org/r/20250115-uring-clone-refactor-v2-1-7289ba50776d@google.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions