summaryrefslogtreecommitdiffstats
path: root/fs/userfaultfd.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2023-08-04 17:27:21 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 22:37:45 +0200
commite727bfd5e73a35ecbc4a01a15c659b9fafaa97c0 (patch)
treea49471600cde73c8b5114b24231d5a6619c8d640 /fs/userfaultfd.c
parentmm: for !CONFIG_PER_VMA_LOCK equate write lock assertion for vma and mmap (diff)
downloadlinux-e727bfd5e73a35ecbc4a01a15c659b9fafaa97c0.tar.xz
linux-e727bfd5e73a35ecbc4a01a15c659b9fafaa97c0.zip
mm: replace mmap with vma write lock assertions when operating on a vma
Vma write lock assertion always includes mmap write lock assertion and additional vma lock checks when per-VMA locks are enabled. Replace weaker mmap_assert_write_locked() assertions with stronger vma_assert_write_locked() ones when we are operating on a vma which is expected to be locked. Link: https://lkml.kernel.org/r/20230804152724.3090321-4-surenb@google.com Suggested-by: Jann Horn <jannh@google.com> Signed-off-by: Suren Baghdasaryan <surenb@google.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Linus Torvalds <torvalds@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions