diff options
author | Kees Cook <keescook@chromium.org> | 2019-06-04 22:13:59 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-06-05 07:36:43 -0700 |
commit | 8c30d32b1a326bb120635a8b4836ec61cba454fa (patch) | |
tree | b438b50b70a974396862fa57d5e5bd938296c70b /lib/Kconfig.kasan | |
parent | f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a (diff) | |
download | linux-stable-8c30d32b1a326bb120635a8b4836ec61cba454fa.tar.gz linux-stable-8c30d32b1a326bb120635a8b4836ec61cba454fa.tar.bz2 linux-stable-8c30d32b1a326bb120635a8b4836ec61cba454fa.zip |
lib/test_stackinit: Handle Clang auto-initialization pattern
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. Therefore the stackinit selftest has been fixed to check
that bytes are no longer the test fill pattern of 0xFF (instead of looking
for bytes that have become 0x00). This retains the test coverage for the
0x00 pattern of the gcc plugin while adding coverage for the mostly 0xAA
pattern of Clang.
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'lib/Kconfig.kasan')
0 files changed, 0 insertions, 0 deletions