]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/kasan: Disable KCOV in KASAN code
authorBenjamin Gray <bgray@linux.ibm.com>
Mon, 10 Jul 2023 04:41:43 +0000 (14:41 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:26 +0000 (14:23 +0200)
commit6657ecbcc39cccf51a843538006b5eefcad927d8
tree572508a746bf53654e559e6f27926fe55ab7aae3
parent8703b26387e1fa4f8749db98d24c67617b873acb
powerpc/kasan: Disable KCOV in KASAN code

[ Upstream commit ccb381e1af1ace292153c88eb1fffa5683d16a20 ]

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>
arch/powerpc/mm/kasan/Makefile