mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 23:46:45 +00:00

As per the generic KASAN code in mm/kasan, disable KCOV with KCOV_INSTRUMENT := n in the makefile. This fixes a ppc64 boot hang when KCOV and KASAN are enabled. kasan_early_init() gets called before a PACA is initialised, but the KCOV hook expects a valid PACA. Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230710044143.146840-1-bgray@linux.ibm.com
11 lines
283 B
Makefile
11 lines
283 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
KASAN_SANITIZE := n
|
|
KCOV_INSTRUMENT := n
|
|
|
|
obj-$(CONFIG_PPC32) += init_32.o
|
|
obj-$(CONFIG_PPC_8xx) += 8xx.o
|
|
obj-$(CONFIG_PPC_BOOK3S_32) += book3s_32.o
|
|
obj-$(CONFIG_PPC_BOOK3S_64) += init_book3s_64.o
|
|
obj-$(CONFIG_PPC_BOOK3E_64) += init_book3e_64.o
|