Re: [PATCH v3 0/6] Fix incorrect access of hugetlb pte entries

From: Andrew Morton

Date: Sun Jul 05 2026 - 03:45:33 EST


On Fri, 3 Jul 2026 11:41:53 +0000 Dev Jain <dev.jain@xxxxxxx> wrote:

> There are various places which use ptep_get() to get the pte entry
> corresponding to a hugetlb folio. Some arches (like s390) have special
> handling to compute the pteval, so they provide huge_ptep_get(). Use this
> helper consistently.
>
> Additionally, some code paths may provide huge_ptep_get with an unaligned
> address. This is a problem on arm64 (I checked other arches and it looks
> fine for them), which is fixed in patch 1. The fix is made to be
> backport-friendly: the cleaner fix would be to perhaps pass the hstate
> to huge_ptep_get() - that is wider churn and we can do that later.

Thanks, I added this series to mm-new.

That means 7.2 will be released with these bugs unfixed, which may be a
mistake. But without knowing the userspace impact of these bugs, I
cannot make this call :(


Sashiko is worried about [6/6]:
https://sashiko.dev/#/patchset/20260703114202.365553-1-dev.jain@xxxxxxx