[PATCH 3/4] sandbox: move CONFIG_ASAN to architecture Kconfig
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Dec 16 03:36:39 PST 2024
KASAN is the bare-metal AddressSanitizer, which we currently only
support on ARM. The hosted variant ASAN will only be supported for
sandbox, so it makes sense to move it out of common/Kconfig.debug
into the sandbox-specific Kconfig.debug.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/sandbox/Kconfig.debug | 10 +++++++++-
common/Kconfig.debug | 10 ----------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/arch/sandbox/Kconfig.debug b/arch/sandbox/Kconfig.debug
index 295942fe3fd5..4a754e389964 100644
--- a/arch/sandbox/Kconfig.debug
+++ b/arch/sandbox/Kconfig.debug
@@ -1,2 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-only
-# dummy file, do not delete
+
+config ASAN
+ bool "ASAN: runtime memory debugger"
+ help
+ Enables ASAN (AddressSANitizer) - runtime memory debugger,
+ designed to find out-of-bounds accesses and use-after-free bugs.
+
+ This is the hosted implementation for sandbox as opposed to
+ KASAN, which is the bare-metal implementation.
diff --git a/common/Kconfig.debug b/common/Kconfig.debug
index c4d1313ef866..9c70555eb83c 100644
--- a/common/Kconfig.debug
+++ b/common/Kconfig.debug
@@ -124,16 +124,6 @@ config PRINTF_FULL
source "lib/Kconfig.ubsan"
source "lib/kasan/Kconfig"
-config ASAN
- bool "ASAN: runtime memory debugger"
- depends on SANDBOX
- help
- Enables ASAN (AddressSANitizer) - runtime memory debugger,
- designed to find out-of-bounds accesses and use-after-free bugs.
-
- This is the hosted implementation for sandbox as opposed to
- KASAN, which is the bare-metal implementation.
-
config COMPILE_TEST
bool "compile-test drivers of other platforms"
default n
--
2.39.5
More information about the barebox
mailing list