diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-07-10 07:41:43 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-07-17 15:49:44 +0300 |
commit | ccb381e1af1ace292153c88eb1fffa5683d16a20 (patch) | |
tree | 44664e17eac5e0e070b7249c7f791499afe9435c /arch/powerpc/mm | |
parent | 8739312ed2faa79df61d157ac44fda840646d444 (diff) | |
download | linux-ccb381e1af1ace292153c88eb1fffa5683d16a20.tar.xz |
powerpc/kasan: Disable KCOV in KASAN code
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
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/kasan/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/kasan/Makefile b/arch/powerpc/mm/kasan/Makefile index 699eeffd9f55..f9522fd70b2f 100644 --- a/arch/powerpc/mm/kasan/Makefile +++ b/arch/powerpc/mm/kasan/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 KASAN_SANITIZE := n +KCOV_INSTRUMENT := n obj-$(CONFIG_PPC32) += init_32.o obj-$(CONFIG_PPC_8xx) += 8xx.o |