Re: [PATCH v2] [RFC] security: allow using Clang's zero initialization for stack variables

From: Maciej Åenczykowski
Date: Tue Jun 16 2020 - 08:21:09 EST


> We could make INIT_STACK_ALL_ZERO fall back to INIT_STACK_ALL_PATTERN
> if the compiler flag goes away - does this make sense?

No, I'm pretty sure failing to build, or at least not setting anything
is better.
AFAIK pattern actually introduces new bugs that aren't visible at all
with neither of these flags set.
(because in practice the default no flag behaviour seems to zero some
stuff [probably padding] that it doesn't with pattern)