From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D106C433EF for ; Tue, 18 Jan 2022 09:45:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233186AbiARJpN (ORCPT ); Tue, 18 Jan 2022 04:45:13 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:35964 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229620AbiARJpM (ORCPT ); Tue, 18 Jan 2022 04:45:12 -0500 X-UUID: 173ced852dfb4436b434d8522dc5dc95-20220118 X-UUID: 173ced852dfb4436b434d8522dc5dc95-20220118 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2103710147; Tue, 18 Jan 2022 17:45:09 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Tue, 18 Jan 2022 17:45:08 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Jan 2022 17:45:07 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 18 Jan 2022 17:45:07 +0800 From: Lecopzer Chen To: CC: Russell King , Andrey Ryabinin , Alexander Potapenko , "Andrey Konovalov" , Dmitry Vyukov , Matthias Brugger , Arnd Bergmann , Linus Walleij , , "Geert Uytterhoeven" , Ard Biesheuvel , Mark Rutland , Anshuman Khandual , Lukas Bulwahn , Masahiro Yamada , , , , Lecopzer Chen Subject: [PATCH 0/2] arm: kasan: support CONFIG_KASAN_VMALLOC Date: Tue, 18 Jan 2022 17:44:48 +0800 Message-ID: <20220118094450.7730-1-lecopzer.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lecopzer Chen Since the framework of KASAN_VMALLOC is well-developed, It's easy to support for ARM that simply not to map shadow of VMALLOC area on kasan_init. This can fix ARM_MODULE_PLTS with KASAN and provide first step to support CONFIG_VMAP_STACK in ARM. Patch base on v5.16 Test on 1. Qemu with memory 2G and vmalloc=500M for 3G/1G mapping. 2. Qemu with memory 2G and vmalloc=500M for 3G/1G mapping + LPAE. 3. Qemu with memory 2G and vmalloc=500M for 2G/2G mapping. Lecopzer Chen (2): arm: kasan: support CONFIG_KASAN_VMALLOC arm: kconfig: fix MODULE_PLTS for KASAN with KASAN_VMALLOC arch/arm/Kconfig | 2 ++ arch/arm/mm/kasan_init.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.25.1