[openwrt/openwrt] kernel: Set some options to default shown with CONFIG_KERNEL_UBSAN=y

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 19 11:54:48 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/85661be9df381bacd1f9d09d4045efa04e6ad3c4

commit 85661be9df381bacd1f9d09d4045efa04e6ad3c4
Author: Hauke Mehrtens <hmehrtens at maxlinear.com>
AuthorDate: Wed Mar 8 21:31:17 2023 +0100

    kernel: Set some options to default shown with CONFIG_KERNEL_UBSAN=y
    
    This sets some kernel configuration options to their default values. I saw
    these as warnings when I set CONFIG_KERNEL_UBSAN=y is set in the OpenWrt
    configuration on x86/64.
    
    Signed-off-by: Hauke Mehrtens <hmehrtens at maxlinear.com>
---
 target/linux/generic/config-5.15 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index 09d9ce9356..d6c44e801e 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -6765,7 +6765,12 @@ CONFIG_UBIFS_FS_ZLIB=y
 CONFIG_UBIFS_FS_ZSTD=y
 # CONFIG_UBSAN is not set
 CONFIG_UBSAN_ALIGNMENT=y
+CONFIG_UBSAN_BOOL=y
+# CONFIG_UBSAN_DIV_ZERO is not set
+CONFIG_UBSAN_ENUM=y
 # CONFIG_UBSAN_MISC is not set
+CONFIG_UBSAN_SHIFT=y
+# CONFIG_UBSAN_UNREACHABLE is not set
 # CONFIG_UCB1400_CORE is not set
 # CONFIG_UCSI is not set
 # CONFIG_UDF_FS is not set




More information about the lede-commits mailing list