On Mon, Jul 18, 2022 at 6:44 AM Michael Ellerman [off-list ref] 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