[PATCH v2] arm64: efi: Fix KASAN false positive for EFI runtime stack

Will Deacon will at kernel.org
Fri Jul 4 10:44:15 PDT 2025


On Fri, 04 Jul 2025 05:47:07 -0700, Breno Leitao wrote:
> KASAN reports invalid accesses during arch_stack_walk() for EFI runtime
> services due to vmalloc tagging[1]. The EFI runtime stack must be allocated
> with KASAN tags reset to avoid false positives.
> 
> This patch uses arch_alloc_vmap_stack() instead of __vmalloc_node() for
> EFI stack allocation, which internally calls kasan_reset_tag()
> 
> [...]

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

[1/1] arm64: efi: Fix KASAN false positive for EFI runtime stack
      https://git.kernel.org/arm64/c/ef8923e6c051

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list