]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/proc/task_mmu: execute PROCMAP_QUERY ioctl under per-vma locks 20250709_suren
authorSuren Baghdasaryan <surenb@google.com>
Fri, 4 Jul 2025 06:07:26 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 9 Jul 2025 15:10:29 +0000 (11:10 -0400)
commitcae165fe23d8792fa1c53ece8659ec9151083b4a
treeae0cefef04008f8807faf499ad16113c5d397455
parent96345c95c3c2e9a6fc693d3e3aac844425a61d20
fs/proc/task_mmu: execute PROCMAP_QUERY ioctl under per-vma locks

Utilize per-vma locks to stabilize vma after lookup without taking
mmap_lock during PROCMAP_QUERY ioctl execution. While we might take
mmap_lock for reading during contention, we do that momentarily only
to lock the vma.
This change is designed to reduce mmap_lock contention and prevent
PROCMAP_QUERY ioctl calls from blocking address space updates.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
fs/proc/task_mmu.c