Skip to content
Commit 4bc4a912 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: hold mmap_sem for mm->locked_vm manipulation



The kernel doesn't seem to have clear rules around this, but various
spots are using the mmap_sem to serialize access to modifying the
locked_vm count. Play it safe and lock the mm for write when accounting
or unaccounting locked memory.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a146468d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment