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

From: Linus Torvalds
Date: Mon Jul 18 2022 - 14:35:14 EST


On Mon, Jul 18, 2022 at 6:44 AM Michael Ellerman <mpe@xxxxxxxxxxxxxx> 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 very odd.

Thanks for figuring it out,

Linus