Skip to content

Commit 9a8c878

Browse files
authored
Revert "Enabled hardening configs default to build. (#1223)" (#1904)
This reverts commit de6bff8, reversing changes made to 22261fd. Reverting as this broke boot tests on qcs8300-ride-sx (from the cambridge lab).
2 parents 40af8f5 + 51f767d commit 9a8c878

4 files changed

Lines changed: 2 additions & 6 deletions

File tree

recipes-kernel/linux/linux-qcom-6.18/configs/bsp-additions.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,5 +314,3 @@ CONFIG_NFT_TPROXY=m
314314
CONFIG_NFT_TUNNEL=m
315315
CONFIG_PACKET_DIAG=y
316316
CONFIG_VETH=m
317-
# Disable stack erase plugin to avoid buildpath leakage in out-of-tree modules
318-
CONFIG_KSTACK_ERASE=n

recipes-kernel/linux/linux-qcom-next/configs/bsp-additions.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,5 +314,3 @@ CONFIG_NFT_TPROXY=m
314314
CONFIG_NFT_TUNNEL=m
315315
CONFIG_PACKET_DIAG=y
316316
CONFIG_VETH=m
317-
# Disable stack erase plugin to avoid buildpath leakage in out-of-tree modules
318-
CONFIG_KSTACK_ERASE=n

recipes-kernel/linux/linux-qcom-next_git.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ S = "${UNPACKDIR}/${BP}"
3636
KBUILD_DEFCONFIG ?= "defconfig"
3737
KBUILD_DEFCONFIG:qcom-armv7a = "qcom_defconfig"
3838

39-
KBUILD_CONFIG_EXTRA = "${S}/kernel/configs/hardening.config"
39+
KBUILD_CONFIG_EXTRA = "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}/kernel/configs/hardening.config', '', d)}"
4040
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/prune.config"
4141
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/qcom.config"
4242
KBUILD_CONFIG_EXTRA:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/kernel/configs/debug.config', '', d)}"

recipes-kernel/linux/linux-qcom_6.18.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ S = "${UNPACKDIR}/${BP}"
3939
KBUILD_DEFCONFIG ?= "defconfig"
4040
KBUILD_DEFCONFIG:qcom-armv7a = "qcom_defconfig"
4141

42-
KBUILD_CONFIG_EXTRA = "${S}/kernel/configs/hardening.config"
42+
KBUILD_CONFIG_EXTRA = "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}/kernel/configs/hardening.config', '', d)}"
4343
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/prune.config"
4444
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/qcom.config"
4545
KBUILD_CONFIG_EXTRA:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/kernel/configs/debug.config', '', d)}"

0 commit comments

Comments
 (0)