From 067ce58e1a242c57389f42b0ad85a6dd1c848928 Mon Sep 17 00:00:00 2001 From: Ramji Jiyani Date: Tue, 3 Dec 2024 03:58:11 +0000 Subject: [PATCH] ANDROID: GKI: Disable CONFIG_KALLSYMS_ALL Disables CONFIG_KALLSYMS_ALL from gki_defconfig. Normally kallsyms only contains the symbols of functions for nicer OOPS messages and backtraces (i.e., symbols from the text and inittext sections). This is sufficient for most cases. And only if you want to enable kernel live patching, or other less common use cases (e.g., when a debugger is used) all symbols are required (i.e., names of variables from the data sections, etc). CONFIG_KALLSYMS_ALL makes sure that all symbols are loaded into the kernel image (i.e., symbols from all sections) in cost of increased kernel size. Bloatbuster previously did not kick in when it was enabled but it is bloating the kernel image size, and this should not be part of the production kernel config. Bug: 381946221 Test: TH Change-Id: I8ada2df110ca40aa7484e1010b9ca662345221f3 Signed-off-by: Ramji Jiyani --- arch/arm64/configs/gki_defconfig | 1 - arch/x86/configs/gki_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index 8c70cbb869a0..ff2e83444d2e 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -48,7 +48,6 @@ CONFIG_EXPERT=y # CONFIG_SYSFS_SYSCALL is not set # CONFIG_FHANDLE is not set # CONFIG_RSEQ is not set -CONFIG_KALLSYMS_ALL=y CONFIG_PROFILING=y CONFIG_RUST=y CONFIG_ARCH_SUNXI=y diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index 5427198dc6b3..b9d1125fd90d 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -51,7 +51,6 @@ CONFIG_EXPERT=y # CONFIG_FHANDLE is not set # CONFIG_PCSPKR_PLATFORM is not set # CONFIG_RSEQ is not set -CONFIG_KALLSYMS_ALL=y CONFIG_PROFILING=y CONFIG_RUST=y CONFIG_SMP=y