summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Hildenbrand (Arm) <david@kernel.org>2026-11-11 23:00:01 +0100
committerDavid Hildenbrand (Arm) <david@kernel.org>2026-11-13 11:14:48 +0100
commit2d9b9352ef885837f246225e9b814a05e9ed2a4a (patch)
tree5f4d23bfde05fbb7be29af6fd800b8e84d83af28 /tools/perf/scripts/python
parentd8bbf585893c7868234b71d7e7f32484ed0d8458 (diff)
mm/rmap: fix PTE table overruns during batched reference checks
With a folded PMD, pmd_addr_end() simply returns the supplied end. folio_referenced_one() can therefore walk past the PTE table when checking references to a large folio. Folded PMDs are uncommon, but can occur even on arm64, for example with 64K pages and a 42-bit virtual address space. Use pte_table_clamped_end() to clamp the range to the PTE table and VMA boundaries. Fixes: 52e054f71840 ("mm: rmap: support batched checks of the references for large folios") Cc: stable@vger.kernel.org Reported-by: Chris Mason <mason@kernel.org> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Link: https://patch.msgid.link/20261111-pte_table_clamped_end-v1-3-2dbe339c487a@kernel.org Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions