]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kasan: Disable address sanitization in kexec paths
authorDaniel Axtens <dja@axtens.net>
Wed, 18 May 2022 10:07:05 +0000 (20:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:29 +0000 (15:58 +1000)
commita8e9787c08d5511d54085ecf4d4cfc2effdd5c52
treebb031beb53e4a333737ff46270946af6c5e67751
parent6a5d1dfd34d07303d9454061975e27a355f95314
powerpc/kasan: Disable address sanitization in kexec paths

The kexec code paths involve code that necessarily run in real mode, as
CPUs are disabled and control is transferred to the new kernel. Disable
address sanitization for the kexec code and the functions called in real
mode on CPUs being disabled.

[paulus@ozlabs.org: combined a few work-in-progress commits of
 Daniel's and wrote the commit message.]

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
[mpe: Move pseries_machine_kexec() into kexec.c so setup.c can be instrumented]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/YoTFSQ2TUSEaDdVC@cleo
arch/powerpc/kexec/Makefile
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/kexec.c
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/setup.c
arch/powerpc/sysdev/xics/xics-common.c
arch/powerpc/sysdev/xive/common.c