On Wed, 15 Jan 2025 21:26:03 +0100, Jann Horn wrote: > 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(). > > [...] Applied, thanks! [1/1] io_uring/rsrc: Simplify buffer cloning by locking both rings commit: 8865af703c087b8bcc2fdd04b6a93d3cc0fb0e9f Best regards, -- Jens Axboe