CONFIG_UBSAN_LOCAL_BOUNDS (not configurable)
configname: CONFIG_UBSAN_LOCAL_BOUNDS
Linux Kernel Configuration
└─>Kernel hacking
└─>Generic Kernel Debugging Instruments
└─>Undefined behaviour sanity checker
└─>UBSAN_LOCAL_BOUNDS
In linux kernel since version 4.14.326 (release Date: 2023-09-23)
This option enables Clang's -fsanitize=local-bounds which traps
when an access 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. Since this option is
trap-only, it depends on CONFIG_UBSAN_TRAP.
when an access 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. Since this option is
trap-only, it depends on CONFIG_UBSAN_TRAP.