]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: page_table_check: use new iteration API
authorLuiz Capitulino <luizcap@redhat.com>
Thu, 6 Mar 2025 22:44:51 +0000 (17:44 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:57 +0000 (22:06 -0700)
commit4e30b94cdad659d8ec5d32b61159138ce8d4ad1b
tree1ec9d1178521412be6d2806579da0237285e7e30
parent9039b9096ea27a20f0349d1537537663c935c8ed
mm: page_table_check: use new iteration API

The page_ext_next() function assumes that page extension objects for a
page order allocation always reside in the same memory section, which may
not be true and could lead to crashes.  Use the new page_ext iteration API
instead.

Link: https://lkml.kernel.org/r/ca2d53a020fe1cd65c442627ff6c0c40d591cbd8.1741301089.git.luizcap@redhat.com
Fixes: cf54f310d0d3 ("mm/hugetlb: use __GFP_COMP for gigantic folios")
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_table_check.c