Re: [PATCH] powerpc/kasan: fix boot failure with RELOCATABLE && FSL_BOOKE

2019-12-04 Thread Michael Ellerman
On Fri, 2019-11-29 at 14:26:41 UTC, Christophe Leroy wrote: > 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. > >

[PATCH] powerpc/kasan: fix boot failure with RELOCATABLE && FSL_BOOKE

2019-11-29 Thread Christophe Leroy
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: Lexi