[PATCH] arm64: mm: Simplify check in arch_kfence_init_pool()

Catalin Marinas catalin.marinas at arm.com
Mon Dec 15 10:17:16 PST 2025


On Wed, 19 Nov 2025 13:00:16 +0000, Kevin Brodsky wrote:
> TL;DR: checking force_pte_mapping() in arch_kfence_init_pool() is
> sufficient
> 
> Commit ce2b3a50ad92 ("arm64: mm: Don't sleep in
> split_kernel_leaf_mapping() when in atomic context") recently added
> an arm64 implementation of arch_kfence_init_pool() to ensure that
> the KFENCE pool is PTE-mapped. Assuming that the pool was not
> initialised early, block splitting is necessary if the linear
> mapping is not fully PTE-mapped, in other words if
> force_pte_mapping() is false.
> 
> [...]

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

[1/1] arm64: mm: Simplify check in arch_kfence_init_pool()
      https://git.kernel.org/arm64/c/b7737c38e7cb

-- 
Catalin



More information about the linux-arm-kernel mailing list