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

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2022-07-18 18:35:14
Also in
linux-hardening, lkml
Reply to
Michael Ellerman, 2022-07-18
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
Thread (24 messages) 24 messages, 6 authors, 2022-07-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help