Re: [PATCH] powerpc/64s: Disable stack variable initialisation for prom_init

2022-07-27 Thread Michael Ellerman
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 allmodconf

Re: [PATCH] powerpc/64s: Disable stack variable initialisation for prom_init

2022-07-18 Thread Linus Torvalds
On Mon, Jul 18, 2022 at 6:44 AM Michael Ellerman wrote: > > With GCC 12, allmodconfig enables CONFIG_INIT_STACK_ALL_PATTERN, which > causes the compiler to emit memset calls to initialise on-stack > variables with a pattern. Ahh, and that explains why "volatile" made no difference. That did seem

Re: [PATCH] powerpc/64s: Disable stack variable initialisation for prom_init

2022-07-18 Thread Sudip Mukherjee
On Mon, Jul 18, 2022 at 2:44 PM 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 > > > Reported-by:

[PATCH] powerpc/64s: Disable stack variable initialisation for prom_init

2022-07-18 Thread Michael Ellerman
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 conv