Merge tag '5.10-rc6-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[linux-2.6-microblaze.git] / lib / Kconfig.ubsan
index 774315d..58f8d03 100644 (file)
@@ -47,6 +47,20 @@ config UBSAN_BOUNDS
          to the {str,mem}*cpy() family of functions (that is addressed
          by CONFIG_FORTIFY_SOURCE).
 
+config UBSAN_LOCAL_BOUNDS
+       bool "Perform array local bounds checking"
+       depends on UBSAN_TRAP
+       depends on CC_IS_CLANG
+       depends on !UBSAN_KCOV_BROKEN
+       help
+         This option enables -fsanitize=local-bounds which traps when an
+         exception/error is detected. Therefore, it should be enabled only
+         if trapping is expected.
+         Enabling this option detects errors due to accesses through a
+         pointer that is derived from an object of a statically-known size,
+         where an added offset (which may not be known statically) is
+         out-of-bounds.
+
 config UBSAN_MISC
        bool "Enable all other Undefined Behavior sanity checks"
        default UBSAN