[PATCH] powerpc/64s: Disable stack variable initialisation for prom_init
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Jul 27 22:02:18 AEST 2022
On Mon, 18 Jul 2022 23:44:18 +1000, Michael Ellerman wrote:
> With GCC 12 allmodconfig prom_init fails to build:
>
> Error: External symbol 'memset' referenced from prom_init.c
> make[2]: *** [arch/powerpc/kernel/Makefile:204: arch/powerpc/kernel/prom_init_check] Error 1
>
> The allmodconfig build enables KASAN, so all calls to memset in
> prom_init should be converted to __memset by the #ifdefs in
> asm/string.h, because prom_init must use the non-KASAN instrumented
> versions.
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc/64s: Disable stack variable initialisation for prom_init
https://git.kernel.org/powerpc/c/be640317a1d0b9cf42fedb2debc2887a7cfa38de
cheers
More information about the Linuxppc-dev
mailing list