From ecf7ccd5034816dc14ebdea2974b513428801a19 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Fri, 13 Jun 2025 20:39:30 +0200 Subject: [PATCH] pygoscelis: Disable GCC plugins for 6.15.y This disables also RANDSTRUCT. For context, see: - https://bugs.gentoo.org/956726 - https://patchwork.kernel.org/project/linux-security-module/patch/20250407-kbuild-disable-gcc-plugins-v1-1-5d46ae583f5e@kernel.org --- pygoscelis-config | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pygoscelis-config b/pygoscelis-config index 454e44a..74c9ac4 100644 --- a/pygoscelis-config +++ b/pygoscelis-config @@ -890,8 +890,7 @@ CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y # end of GCOV-based kernel profiling CONFIG_HAVE_GCC_PLUGINS=y -CONFIG_GCC_PLUGINS=y -CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y +# CONFIG_GCC_PLUGINS is not set CONFIG_FUNCTION_ALIGNMENT_4B=y CONFIG_FUNCTION_ALIGNMENT_16B=y CONFIG_FUNCTION_ALIGNMENT=16 @@ -6718,10 +6717,6 @@ CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y # CONFIG_INIT_STACK_NONE is not set # CONFIG_INIT_STACK_ALL_PATTERN is not set CONFIG_INIT_STACK_ALL_ZERO=y -CONFIG_GCC_PLUGIN_STACKLEAK=y -CONFIG_STACKLEAK_TRACK_MIN_SIZE=100 -CONFIG_STACKLEAK_METRICS=y -# CONFIG_STACKLEAK_RUNTIME_DISABLE is not set CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y CONFIG_INIT_ON_FREE_DEFAULT_ON=y CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y @@ -6743,11 +6738,7 @@ CONFIG_LIST_HARDENED=y CONFIG_BUG_ON_DATA_CORRUPTION=y # end of Hardening of kernel data structures -# CONFIG_RANDSTRUCT_NONE is not set -# CONFIG_RANDSTRUCT_FULL is not set -CONFIG_RANDSTRUCT_PERFORMANCE=y -CONFIG_RANDSTRUCT=y -CONFIG_GCC_PLUGIN_RANDSTRUCT=y +CONFIG_RANDSTRUCT_NONE=y # end of Kernel hardening options # end of Security options