]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kasan: fix early boot failure on PPC32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 31 Jul 2019 06:01:42 +0000 (06:01 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 31 Jul 2019 12:02:52 +0000 (22:02 +1000)
commit0cf1ab9bfdbfb5c31e313a448a16620f624afacc
treea79f299b178efa35799876153bb0b0744fbe9ad9
parentc5fb70e711a2d8ad136f4f8527cc2cddc0612e16
powerpc/kasan: fix early boot failure on PPC32

Due to commit 6eec7b3e933e ("powerpc/mm: don't use pte_alloc_kernel()
until slab is available on PPC32"), pte_alloc_kernel() cannot be used
during early KASAN init.

Fix it by using memblock_alloc() instead.

Fixes: 7708d0f90a64 ("powerpc/32: Add KASAN support")
Cc: stable@vger.kernel.org # v5.2+
Reported-by: Erhard F. <erhard_f@mailbox.org>
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/da89670093651437f27d2975224712e0a130b055.1564552796.git.christophe.leroy@c-s.fr
arch/powerpc/mm/kasan/kasan_init_32.c