On Tue, 07 Apr 2026 18:13:44 +0530, Sourabh Jain wrote:
> KASAN instrumentation is intended to be disabled for the kexec core
> code, but the existing Makefile entry misses the object suffix. As a
> result, the flag is not applied correctly to core_$(BITS).o.
> 
> So when KASAN is enabled, kexec_copy_flush and copy_segments in
> kexec/core_64.c are instrumented, which can result in accesses to
> shadow memory via normal address translation paths. Since these run
> with the MMU disabled, such accesses may trigger page faults
> (bad_page_fault) that cannot be handled in the kdump path, ultimately
> causing a hang and preventing the kdump kernel from booting. The same
> is true for kexec as well, since the same functions are used there.
> 
> [...]

Applied to powerpc/fixes.

[1/2] powerpc/kdump: fix KASAN sanitization flag for core_$(BITS).o
      https://git.kernel.org/powerpc/c/b3a97f9484080c6e71db9e803e3cc1bb372a9bc7
[2/2] powerpc/vmx: avoid KASAN instrumentation in enter_vmx_ops() for kexec
      https://git.kernel.org/powerpc/c/38e989d504fc52900a3786b7144fb53cd67e0389

cheers

Reply via email to