powerpc/32s: Fix boot failure with DEBUG_PAGEALLOC without KASAN.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 14 Aug 2019 10:02:20 +0000 (10:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:13 +0000 (21:22 +1000)
commit9d6d712fbf7766f21c838940eebcd7b4d476c5e6
tree5ce76780dc590555230bbd461f0f486c641fc1be
parent38a0d0cdb46d3f91534e5b9839ec2d67be14c59d
powerpc/32s: Fix boot failure with DEBUG_PAGEALLOC without KASAN.

When KASAN is selected, the definitive hash table has to be
set up later, but there is already an early temporary one.

When KASAN is not selected, there is no early hash table,
so the setup of the definitive hash table cannot be delayed.

Fixes: 72f208c6a8f7 ("powerpc/32s: move hash code patching out of MMU_init_hw()")
Cc: stable@vger.kernel.org # v5.2+
Reported-by: Jonathan Neuschafer <j.neuschaefer@gmx.net>
Tested-by: Jonathan Neuschafer <j.neuschaefer@gmx.net>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b7860c5e1e784d6b96ba67edf47dd6cbc2e78ab6.1565776892.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/head_32.S
arch/powerpc/mm/book3s32/mmu.c