]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: don't disable stack validation in cross builds 23612/head
authorMark Mentovai <mark@mentovai.com>
Mon, 1 Jun 2026 14:30:17 +0000 (10:30 -0400)
committerRobert Marko <robimarko@gmail.com>
Thu, 4 Jun 2026 18:00:36 +0000 (20:00 +0200)
c3e31b6a9b04 (2019-07-03), 5f8e5872406d (2019-10-02), and 802bfe080678
(2022-10-20) disabled kernel stack validation when the build host was
not running Linux, as the objtool kernel build tool required for stack
validation was not portable to other build host environments. This is no
longer true, and it is not necessary to attempt to disable kernel stack
validation any longer.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
Link: https://github.com/openwrt/openwrt/pull/23612
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/kernel.mk

index 5b590cf3ff52a9a26bbb0caaf2f68c1bf9d9e7c1..1f5104966203f69a22797b14d71a57c312af1957 100644 (file)
@@ -129,11 +129,6 @@ ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL
        KERNELRELEASE=$(LINUX_VERSION)
 endif
 
-ifneq ($(HOST_OS),Linux)
-  KERNEL_MAKE_FLAGS += CONFIG_STACK_VALIDATION=
-  export SKIP_STACK_VALIDATION:=1
-endif
-
 KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS)
 
 ifdef CONFIG_USE_SPARSE