From a56472627739e5ea2f842bcbe5ac2ca0ab4e9ea9 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 3 Sep 2020 09:16:26 +0200 Subject: [PATCH] ANDROID: gki_defconfig: initialize locals with zeroes This patch switches compiler-based stack initialization from 0xAA to zero pattern, resulting in much more efficient code and saner defaults for uninitialized local variables. Bug: 154198143 Test: run cuttlefish and observe the following lines in dmesg: test_stackinit: all tests passed! test_meminit: all 130 tests passed! Signed-off-by: Alexander Potapenko Change-Id: If9f2047fcbee58b90dbd8ad45707c5b40a654e2d --- arch/arm64/configs/gki_defconfig | 2 +- arch/x86/configs/gki_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index cb7c9a5cb859..9f2bdcdae163 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -543,7 +543,7 @@ CONFIG_FORTIFY_SOURCE=y CONFIG_STATIC_USERMODEHELPER=y CONFIG_STATIC_USERMODEHELPER_PATH="" CONFIG_SECURITY_SELINUX=y -CONFIG_INIT_STACK_ALL=y +CONFIG_INIT_STACK_ALL_ZERO=y CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y CONFIG_CRYPTO_ADIANTUM=y CONFIG_CRYPTO_LZ4=y diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index edca2f2a24e5..96140818bf38 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -469,7 +469,7 @@ CONFIG_FORTIFY_SOURCE=y CONFIG_STATIC_USERMODEHELPER=y CONFIG_STATIC_USERMODEHELPER_PATH="" CONFIG_SECURITY_SELINUX=y -CONFIG_INIT_STACK_ALL=y +CONFIG_INIT_STACK_ALL_ZERO=y CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y CONFIG_CRYPTO_ADIANTUM=y CONFIG_CRYPTO_SHA256_SSSE3=y