diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-12-17 15:53:33 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-17 15:53:33 +0100 |
commit | 4bc4a912534a72f1c96f483448f0be16e5a48063 (patch) | |
tree | 9db2abd90af8c6c3c3c9ec9d94fbf649ba7d7b34 /fs/file.c | |
parent | io_uring: break links on shutdown failure (diff) | |
download | linux-4bc4a912534a72f1c96f483448f0be16e5a48063.tar.xz linux-4bc4a912534a72f1c96f483448f0be16e5a48063.zip |
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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions