Re: [PATCH] arm64: mm: Fix CFI failure due to kpti_ng_pgd_alloc function signature

From: Kees Cook
Date: Fri Aug 29 2025 - 12:42:52 EST




On August 29, 2025 12:06:17 PM EDT, Mark Rutland <mark.rutland@xxxxxxx> wrote:
>On Fri, Aug 29, 2025 at 08:49:21AM -0700, Kees Cook wrote:
>> Fixes: 47546a1912fc ("arm64: mm: install KPTI nG mappings with MMU enabled")
>
>That doesn't look right; that commit is from June 2022, and we only
>introduced enum pgtable_type in May 2025 in commit:
>
> c64f46ee13779616 ("arm64: mm: use enum to identify pgtable level instead of *_SHIFT")
>
>... which landed in v6.16.
>
>AFAICT, that's the commit which broke things.

Oops, yes, I didn't look close enough. Want a v2 with that fixed up?


--
Kees Cook