mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
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. [[email protected]: combined a few work-in-progress commits of Daniel's and wrote the commit message.] Signed-off-by: Daniel Axtens <[email protected]> Signed-off-by: Paul Mackerras <[email protected]> [mpe: Move pseries_machine_kexec() into kexec.c so setup.c can be instrumented] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/YoTFSQ2TUSEaDdVC@cleo
18 lines
462 B
Makefile
18 lines
462 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the linux kernel.
|
|
#
|
|
|
|
obj-y += core.o crash.o core_$(BITS).o
|
|
|
|
obj-$(CONFIG_PPC32) += relocate_32.o
|
|
|
|
obj-$(CONFIG_KEXEC_FILE) += file_load.o ranges.o file_load_$(BITS).o elf_$(BITS).o
|
|
|
|
# Disable GCOV, KCOV & sanitizers in odd or sensitive code
|
|
GCOV_PROFILE_core_$(BITS).o := n
|
|
KCOV_INSTRUMENT_core_$(BITS).o := n
|
|
UBSAN_SANITIZE_core_$(BITS).o := n
|
|
KASAN_SANITIZE_core.o := n
|
|
KASAN_SANITIZE_core_$(BITS) := n
|