X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=lib%2FKconfig.ubsan;h=bc6e651df68c31e413552356fd5d67ad32cc11c0;hb=6afd563d4bbc1924b7de9e053324c007e0d36476;hp=39494af9a84ac89e6fbbc1f25d9407c70d19e66f;hpb=89a82a9218fabd753979847f494565f1fa91d7a8;p=cascardo%2Flinux.git diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 39494af9a84a..bc6e651df68c 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -1,6 +1,9 @@ config ARCH_HAS_UBSAN_SANITIZE_ALL bool +config ARCH_WANTS_UBSAN_NO_NULL + def_bool n + config UBSAN bool "Undefined behaviour sanity checker" help @@ -34,3 +37,11 @@ config UBSAN_ALIGNMENT This option enables detection of unaligned memory accesses. Enabling this option on architectures that support unaligned accesses may produce a lot of false positives. + +config UBSAN_NULL + bool "Enable checking of null pointers" + depends on UBSAN + default y if !ARCH_WANTS_UBSAN_NO_NULL + help + This option enables detection of memory accesses via a + null pointer.