From 28c524fc00ee2d4f69736877af9c8a9b4204242c Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 27 Oct 2020 16:13:43 +0800 Subject: [PATCH] kernel/config: Enable kernel configs for Android Enterprise From Igor's review with Google, Google requires us to add the following kernel configs for customer build to enhance the security: CONFIG_SLUB_DEBUG=y # CONFIG_SLUB_DEBUG_ON is not set # CONFIG_SLUB_DEBUG_PANIC_ON is not set CONFIG_BUG_ON_DATA_CORRUPTION=y CONFIG_SCHED_STACK_END_CHECK=y Change-Id: Ibccec957ebc66f31c77fddff1419b5bcb6c8f635 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1785753 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- arch/arm64/configs/vendor/ext_config/moto-holi.config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/configs/vendor/ext_config/moto-holi.config b/arch/arm64/configs/vendor/ext_config/moto-holi.config index bed080a111f2..31820bead232 100644 --- a/arch/arm64/configs/vendor/ext_config/moto-holi.config +++ b/arch/arm64/configs/vendor/ext_config/moto-holi.config @@ -22,3 +22,8 @@ CONFIG_PSTORE_PMSG=y CONFIG_SERIAL_MSM_GENI_CONSOLE=y # CONFIG_SMB1398_CHARGER is not set # CONFIG_SMB1355_SLAVE_CHARGER is not set +CONFIG_SLUB_DEBUG=y +# CONFIG_SLUB_DEBUG_ON is not set +# CONFIG_SLUB_DEBUG_PANIC_ON is not set +CONFIG_BUG_ON_DATA_CORRUPTION=y +CONFIG_SCHED_STACK_END_CHECK=y