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

From: Will Deacon

Date: Tue Jul 21 2026 - 13:34:26 EST


On Fri, 03 Jul 2026 11:41:53 +0000, Dev Jain 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
> to huge_ptep_get() - that is wider churn and we can do that later.
>
> [...]

Applied first patch to arm64 (for-next/fixes), thanks!

[1/6] arm64: make huge_ptep_get handled unaligned addresses
https://git.kernel.org/arm64/c/9175a8c7cfe88

I'm hoping Andrew can drop this from the mm tree to avoid a duplicate,
but I didn't hear back yet and I'd like to land the fix.

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev