mm: mark VMA as being written when changing vm_flags
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:12 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 03:02:57 +0000 (20:02 -0700)
commitc732293331a22187d59cd485879276a1da398387
tree3fe8f69f3c3a556054e0cbd5cf3ef54ba8516639
parent5e31275cc997f8ec5d9e8d65fe9840ebed89db19
mm: mark VMA as being written when changing vm_flags

Updates to vm_flags have to be done with VMA marked as being written for
preventing concurrent page faults or other modifications.

Link: https://lkml.kernel.org/r/20230227173632.3292573-14-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h