Skip to content
Commit a2e91bdf authored by Christophe Leroy's avatar Christophe Leroy Committed by Paul Gortmaker
Browse files

powerpc/kasan: Fix boot failure with RELOCATABLE && FSL_BOOKE



commit 71eb40fc upstream.

When enabling CONFIG_RELOCATABLE and CONFIG_KASAN on FSL_BOOKE,
the kernel doesn't boot.

relocate_init() requires KASAN early shadow area to be set up because
it needs access to the device tree through generic functions.

Call kasan_early_init() before calling relocate_init()

Reported-by: default avatarLexi Shao <shaolexi@huawei.com>
Fixes: 2edb16ef ("powerpc/32: Add KASAN support")
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b58426f1664a4b344ff696d18cacf3b3e8962111.1575036985.git.christophe.leroy@c-s.fr


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 0188ff1c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment