Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Kees Cook fc525d62 ee4cf798

+1 -1
+1 -1
scripts/Makefile.kstack_erase
··· 16 16 17 17 KSTACK_ERASE_CFLAGS := $(kstack-erase-cflags-y) 18 18 19 - export STACKLEAK_CFLAGS DISABLE_KSTACK_ERASE 19 + export KSTACK_ERASE_CFLAGS DISABLE_KSTACK_ERASE 20 20 21 21 KBUILD_CFLAGS += $(KSTACK_ERASE_CFLAGS)