From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/4] sandbox: move CONFIG_ASAN to architecture Kconfig
Date: Mon, 16 Dec 2024 12:36:39 +0100 [thread overview]
Message-ID: <20241216113640.403845-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20241216113640.403845-1-a.fatoum@pengutronix.de>
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@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
next prev parent reply other threads:[~2024-12-16 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-16 11:36 [PATCH 1/4] sandbox: add support for --loglevel option Ahmad Fatoum
2024-12-16 11:36 ` [PATCH 2/4] sandbox: add support for architecture-specific debug options Ahmad Fatoum
2024-12-16 11:36 ` Ahmad Fatoum [this message]
2024-12-16 11:36 ` [PATCH 4/4] startup: set barebox_main in data section Ahmad Fatoum
2024-12-20 9:04 ` [PATCH 1/4] sandbox: add support for --loglevel option Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241216113640.403845-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox