[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251211081117.1126521-1-samuel.holland@sifive.com>
Date: Thu, 11 Dec 2025 00:11:10 -0800
From: Samuel Holland <samuel.holland@...ive.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
"Liam R . Howlett" <Liam.Howlett@...cle.com>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
David Hildenbrand <david@...nel.org>,
Vlastimil Babka <vbabka@...e.cz>,
Jann Horn <jannh@...gle.com>
Cc: linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
Ryan Roberts <ryan.roberts@....com>,
Anshuman Khandual <anshuman.khandual@....com>,
Gavin Shan <gshan@...hat.com>,
Zi Yan <ziy@...dia.com>,
Samuel Holland <samuel.holland@...ive.com>
Subject: [PATCH 0/2] mm: Always use set_pXX() helpers to write page tables
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
Powered by blists - more mailing lists