Skip to content

Commit 00dfc04

Browse files
BenjaminGrayNp1smb49
authored andcommitted
powerpc/kasan: Disable KCOV in KASAN code
BugLink: https://bugs.launchpad.net/bugs/2038486 [ Upstream commit ccb381e ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 5f9e685 commit 00dfc04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/mm/kasan/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
KASAN_SANITIZE := n
4+
KCOV_INSTRUMENT := n
45

56
obj-$(CONFIG_PPC32) += kasan_init_32.o
67
obj-$(CONFIG_PPC_8xx) += 8xx.o

0 commit comments

Comments
 (0)