linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] mm: introduce snapshot_page()
@ 2025-07-07 18:50 Luiz Capitulino
  2025-07-07 18:50 ` [PATCH v2 1/4] mm/memory: introduce is_huge_zero_pfn() and use it in vm_normal_page_pmd() Luiz Capitulino
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Luiz Capitulino @ 2025-07-07 18:50 UTC (permalink / raw)
  To: david, willy, akpm; +Cc: linux-kernel, linux-mm, shivankg, sj

Hi,

The series introduction will follow the changelog. This is against v6.16-rc5.

Changelog
=========

v1 -> v2
  - Include is_huge_zero_pfn() patch and use it (David)
  - Move free page detection to snapshot_page() (David)
  - Changelog improvements (Shivank)
  - Added Acked-bys

RFC -> v1
  - Include <linux/page_idle.h> to avoid build error on sh arch

Introduction
============

This series introduces snapshot_page(), a helper function that can be used
to create a snapshot of a struct page and its associated struct folio.

This function is intended to help callers with a consistent view of a
a folio while reducing the chance of encountering partially updated or
inconsistent state, such as during folio splitting which could lead to
crashes and BUG_ON()s being triggered.

David Hildenbrand (1):
  mm/memory: introduce is_huge_zero_pfn() and use it in
    vm_normal_page_pmd()

Luiz Capitulino (3):
  mm/util: introduce snapshot_page()
  proc: kpagecount: use snapshot_page()
  fs: stable_page_flags(): use snapshot_page()

 fs/proc/page.c          | 50 +++++++++++++++-----------
 include/linux/huge_mm.h | 12 ++++++-
 include/linux/mm.h      | 19 ++++++++++
 mm/debug.c              | 42 +++-------------------
 mm/memory.c             |  2 +-
 mm/util.c               | 77 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 142 insertions(+), 60 deletions(-)

-- 
2.50.0


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

end of thread, other threads:[~2025-07-14 13:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 18:50 [PATCH v2 0/4] mm: introduce snapshot_page() Luiz Capitulino
2025-07-07 18:50 ` [PATCH v2 1/4] mm/memory: introduce is_huge_zero_pfn() and use it in vm_normal_page_pmd() Luiz Capitulino
2025-07-07 19:37   ` Shivank Garg
2025-07-07 18:50 ` [PATCH v2 2/4] mm/util: introduce snapshot_page() Luiz Capitulino
2025-07-08  5:49   ` Shivank Garg
2025-07-08 16:59     ` Luiz Capitulino
2025-07-14 13:16       ` Luiz Capitulino
2025-07-14 13:43         ` Shivank Garg
2025-07-11 11:56   ` David Hildenbrand
2025-07-11 12:59     ` Luiz Capitulino
2025-07-07 18:50 ` [PATCH v2 3/4] proc: kpagecount: use snapshot_page() Luiz Capitulino
2025-07-08  5:51   ` Shivank Garg
2025-07-07 18:50 ` [PATCH v2 4/4] fs: stable_page_flags(): " Luiz Capitulino
2025-07-08  5:55   ` Shivank Garg
2025-07-09  8:14 ` BUG: KASAN: stack-out-of-bounds in snapshot_page during gup_test test case Harry Yoo
2025-07-09 12:51   ` Luiz Capitulino
2025-07-10  3:32     ` Luiz Capitulino

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).