Re: [PATCH] lib/test_stackinit: Handle Clang auto-initialization pattern

2019-06-04 Thread Ard Biesheuvel
On Wed, 5 Jun 2019 at 07:25, Kees Cook wrote: > > While the gcc plugin for automatic stack variable initialization (i.e. > CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) performs initialization with > 0x00 bytes, the Clang automatic stack variable initialization (i.e. > CONFIG_INIT_STACK_ALL) uses variou

[PATCH] lib/test_stackinit: Handle Clang auto-initialization pattern

2019-06-04 Thread Kees Cook
While the gcc plugin for automatic stack variable initialization (i.e. CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) performs initialization with 0x00 bytes, the Clang automatic stack variable initialization (i.e. CONFIG_INIT_STACK_ALL) uses various type-specific patterns that are typically 0xAA. Therefo