]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1bd5ce28a029e54992c7dbb3482051de3559e6b
tree5ce76780dc590555230bbd461f0f486c641fc1be
parent90c30d48ca21a834a9888f899dea2aed7ae99914
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: 00a5fe8ecaef ("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