diff options
author | 2025-07-29 16:50:48 -0700 | |
---|---|---|
committer | 2025-07-29 17:17:46 -0700 | |
commit | fc525d625a22c2179877955ee87e33f532b0674c (patch) | |
tree | cdf510ea2256144ecbd7cca0cc9de404ade3f112 | |
parent | staging: media: atomisp: Fix stack buffer overflow in gmin_get_var_int() (diff) | |
download | wireguard-linux-fc525d625a22c2179877955ee87e33f532b0674c.tar.xz wireguard-linux-fc525d625a22c2179877955ee87e33f532b0674c.zip |
kstack_erase: Fix missed export of renamed KSTACK_ERASE_CFLAGS
Certain targets disable kstack_erase by filtering out KSTACK_ERASE_CFLAGS
rather than adding DISABLE_KSTACK_ERASE. The renaming to kstack_erase
missed the CFLAGS export, which broke those build targets (e.g. x86
vdso32).
Fixes: 76261fc7d1be ("stackleak: Split KSTACK_ERASE_CFLAGS from GCC_PLUGINS_CFLAGS")
Signed-off-by: Kees Cook <kees@kernel.org>
-rw-r--r-- | scripts/Makefile.kstack_erase | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.kstack_erase b/scripts/Makefile.kstack_erase index c7bc2379e113..ee7e4ef7b892 100644 --- a/scripts/Makefile.kstack_erase +++ b/scripts/Makefile.kstack_erase @@ -16,6 +16,6 @@ endif KSTACK_ERASE_CFLAGS := $(kstack-erase-cflags-y) -export STACKLEAK_CFLAGS DISABLE_KSTACK_ERASE +export KSTACK_ERASE_CFLAGS DISABLE_KSTACK_ERASE KBUILD_CFLAGS += $(KSTACK_ERASE_CFLAGS) |