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>
Wed, 23 Aug 2023 15:52:27 +0000 (17:52 +0200)
commita1ceb871284fb14d687091537e63818842c83c01
tree9c1d11fa165552bba747baed82409bfa9d106310
parent6d06cf0f0238704531522bfae17fc3c8cacb2048
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