linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] make VM_SOFTDIRTY a sticky VMA flag
@ 2025-11-14 17:53 Lorenzo Stoakes
  2025-11-14 17:53 ` [PATCH 1/2] mm: propagate VM_SOFTDIRTY on merge Lorenzo Stoakes
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Lorenzo Stoakes @ 2025-11-14 17:53 UTC (permalink / raw)
  To: Andrew Morton
  Cc: David Hildenbrand, Liam R . Howlett, Vlastimil Babka,
	Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Jann Horn,
	Pedro Falcato, linux-mm, linux-kernel

Currently we set VM_SOFTDIRTY when a new mapping is set up (whether by
establishing a new VMA, or via merge) as implemented in __mmap_complete()
and do_brk_flags().

However, when performing a merge of existing mappings such as when
performing mprotect(), we may lose the VM_SOFTDIRTY flag.


Lorenzo Stoakes (2):
  mm: propagate VM_SOFTDIRTY on merge
  testing/selftests/mm: add soft-dirty merge self-test

 include/linux/mm.h                      | 23 ++++++-----
 tools/testing/selftests/mm/soft-dirty.c | 51 ++++++++++++++++++++++++-
 tools/testing/vma/vma_internal.h        | 23 ++++++-----
 3 files changed, 72 insertions(+), 25 deletions(-)

--
2.51.0


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2025-11-19 17:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-14 17:53 [PATCH 0/2] make VM_SOFTDIRTY a sticky VMA flag Lorenzo Stoakes
2025-11-14 17:53 ` [PATCH 1/2] mm: propagate VM_SOFTDIRTY on merge Lorenzo Stoakes
2025-11-17  4:39   ` Anshuman Khandual
2025-11-17 11:34     ` Lorenzo Stoakes
2025-11-17 14:25   ` David Hildenbrand (Red Hat)
2025-11-17 15:35     ` Lorenzo Stoakes
2025-11-17 15:47   ` Pedro Falcato
2025-11-17 15:53     ` Lorenzo Stoakes
2025-11-17 16:05   ` Liam R. Howlett
2025-11-14 17:53 ` [PATCH 2/2] testing/selftests/mm: add soft-dirty merge self-test Lorenzo Stoakes
2025-11-17 14:44   ` David Hildenbrand (Red Hat)
2025-11-17 15:15     ` Lorenzo Stoakes
2025-11-14 21:53 ` [PATCH 0/2] make VM_SOFTDIRTY a sticky VMA flag Andrew Morton
2025-11-17 11:41   ` Lorenzo Stoakes
2025-11-17  0:53 ` Andrei Vagin
2025-11-17  4:37   ` Anshuman Khandual
2025-11-17 11:32   ` Lorenzo Stoakes
2025-11-17 18:26     ` Andrei Vagin
2025-11-17 19:57       ` Lorenzo Stoakes
2025-11-19 13:09         ` Cyrill Gorcunov
2025-11-19 17:21           ` Lorenzo Stoakes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox