linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: Always use set_pXX() helpers to write page tables
@ 2025-12-11  8:11 Samuel Holland
  2025-12-11  8:11 ` [PATCH 1/2] mm/debug_vm_pgtable: Use set_pXd() " Samuel Holland
  2025-12-11  8:11 ` [PATCH 2/2] mm/madvise: Use set_pte() " Samuel Holland
  0 siblings, 2 replies; 8+ messages in thread
From: Samuel Holland @ 2025-12-11  8:11 UTC (permalink / raw)
  To: Andrew Morton, Liam R . Howlett, Lorenzo Stoakes,
	David Hildenbrand, Vlastimil Babka, Jann Horn
  Cc: linux-kernel, linux-mm, Ryan Roberts, Anshuman Khandual,
	Gavin Shan, Zi Yan, Samuel Holland

As Ryan Roberts points out[1], when writing page tables, generic mm code
should already be using the architecture-provided helper functions.
This series includes fixes for the few instances where we didn't do
that, as found by my coccinelle script[2].

[1]: https://lore.kernel.org/linux-mm/02e3b3bd-ae6a-4db4-b4a1-8cbc1bc0a1c8@arm.com/
[2]: https://lore.kernel.org/linux-mm/20251113014656.2605447-7-samuel.holland@sifive.com/


Samuel Holland (2):
  mm/debug_vm_pgtable: Use set_pXd() to write page tables
  mm/madvise: Use set_pte() to write page tables

 mm/debug_vm_pgtable.c | 4 ++--
 mm/madvise.c          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.47.2

base-commit: d358e5254674b70f34c847715ca509e46eb81e6f
branch: up/fix-pte-madvise


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

end of thread, other threads:[~2025-12-12 12:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11  8:11 [PATCH 0/2] mm: Always use set_pXX() helpers to write page tables Samuel Holland
2025-12-11  8:11 ` [PATCH 1/2] mm/debug_vm_pgtable: Use set_pXd() " Samuel Holland
2025-12-11  9:36   ` Ryan Roberts
2025-12-12  0:48   ` kernel test robot
2025-12-12 12:11   ` kernel test robot
2025-12-11  8:11 ` [PATCH 2/2] mm/madvise: Use set_pte() " Samuel Holland
2025-12-11  9:43   ` Ryan Roberts
2025-12-11 23:40   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).