summaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-09-17 14:05:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-22 20:40:12 +0200
commit932ef7a02e2fff7fd7d6ee1cb3558593987c5b3e (patch)
tree41f8e03d75641587c706663b69d22b50211ca445 /arch/arm/Kconfig
parent6cd9d2d600f3764a4c51d1a735e36397d91334f3 (diff)
downloadbarebox-932ef7a02e2fff7fd7d6ee1cb3558593987c5b3e.tar.gz
barebox-932ef7a02e2fff7fd7d6ee1cb3558593987c5b3e.tar.xz
ARM: Add KASan support
This adds KASan support to the ARM architecture. What we are doing is: * Add __no_sanitize_address attribute to various lowlevel functions which do not run in a proper C environment * Add non-instrumented variants of memset/memcpy (prefixed with '__') * make original memcpy/memset weak symbols so strong definitions in lib/kasan/common.c can replace them * Use non-instrumented memcpy in early functions * call kasan_init() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 95fd8ecfe7..ea6d459dfe 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -4,6 +4,8 @@ config ARM
select HAS_CACHE
select HAVE_CONFIGURABLE_TEXT_BASE if !RELOCATABLE
select HAVE_IMAGE_COMPRESSION
+ select HAVE_ARCH_KASAN
+ select ARM_OPTIMZED_STRING_FUNCTIONS if KASAN
default y
config ARM_LINUX