diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 8aad5baecd..cafaadb3d4 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1295,6 +1295,15 @@ config PBL_BREAK If this enabled, barebox will be compiled with BKPT instruction on early pbl init. This option should be used only with JTAG debugger! +source "lib/Kconfig.ubsan" + +config KASAN + bool "KASAN: runtime memory debugger" + depends on HAVE_ARCH_KASAN + help + Enables KASAN (KernelAddressSANitizer) - runtime memory debugger, + designed to find out-of-bounds accesses and use-after-free bugs. + endmenu config HAS_DEBUG_LL @@ -1303,3 +1312,6 @@ config HAS_DEBUG_LL config DDR_SPD bool select CRC_ITU_T + +config HAVE_ARCH_KASAN + bool |