Re: [PATCH] arm64: hugetlb: Prevent write fault livelocks on stale TLB entries
From: Catalin Marinas
Date: Thu Nov 12 2026 - 15:39:55 EST
On Tue, 10 Nov 2026 20:39:02 -0800, Chris Down wrote:
> In Meta production, we have had tasks get stuck in a fault loop while
> using hugetlb on arm64. During my investigations I found that affected
> tasks share a private hugetlb page.
>
> Looking at the stuck task states, I found the following ordering:
>
> CPU0 CPU1
> ---- ----
> read page
> [read only entry cached in TLB]
> write page
> hugetlb_fault()
> hugetlb_wp()
> [reuse folio]
> set_huge_ptep_maybe_writable()
> set_huge_ptep_writable()
> [flush local TLB only]
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: hugetlb: Prevent write fault livelocks on stale TLB entries
https://git.kernel.org/arm64/c/3c47ec82540c