[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210324040522.15548-4-lecopzer.chen@mediatek.com>
Date: Wed, 24 Mar 2021 12:05:20 +0800
From: Lecopzer Chen <lecopzer.chen@...iatek.com>
To: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <kasan-dev@...glegroups.com>,
<catalin.marinas@....com>, <will@...nel.org>
CC: <ryabinin.a.a@...il.com>, <glider@...gle.com>,
<andreyknvl@...il.com>, <dvyukov@...gle.com>,
<akpm@...ux-foundation.org>, <tyhicks@...ux.microsoft.com>,
<maz@...nel.org>, <rppt@...nel.org>, <linux@...ck-us.net>,
<gustavoars@...nel.org>, <yj.chiang@...iatek.com>,
Lecopzer Chen <lecopzer.chen@...iatek.com>
Subject: [PATCH v4 3/5] arm64: Kconfig: support CONFIG_KASAN_VMALLOC
We can backed shadow memory in vmalloc area after vmalloc area
isn't populated at kasan_init(), thus make KASAN_VMALLOC selectable.
Signed-off-by: Lecopzer Chen <lecopzer.chen@...iatek.com>
Acked-by: Andrey Konovalov <andreyknvl@...il.com>
Tested-by: Andrey Konovalov <andreyknvl@...il.com>
Tested-by: Ard Biesheuvel <ardb@...nel.org>
---
arch/arm64/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 5656e7aacd69..3e54fa938234 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -138,6 +138,7 @@ config ARM64
select HAVE_ARCH_JUMP_LABEL
select HAVE_ARCH_JUMP_LABEL_RELATIVE
select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
+ select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
select HAVE_ARCH_KFENCE
--
2.25.1
Powered by blists - more mailing lists