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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D038BC433F5 for ; Tue, 18 Jan 2022 09:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Szjfx7+NqPEBaN3SSMJCCdU3ZVWbhrJNAe30sNEwiS0=; b=NBOCJYo6PzHnZ8 TSU6nkFfVWZu2wFjWp8FsxR7SF+kSNttCH9Ks22l4ZE92vEqkAISpPOGaxnq0w8WVN1jUR2g5EW4k 0XLpGSFGGyfNS6lkrAb9nyqWC+iaSMoAHD6U1XGXYJIy4/T0qCU6a0jAWbZARslYwsy0iJktj+7Vf j0RC65un4UoUAmkYdoY3iTpXEQmE44yl4HCYZEv4AApFr3vztJUb8XKO3QvZ3Gs0QZJguDzn/Yy+E zWkS9JlVFaOeJAA7AN+r0vE7BAZhkDUbl0CJ8+bT/VyQtyJ/ayvNBPMPkqPjZl7+9kqDaIZV/Nx7X /tqDLgsIQq/dySzP46+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9l3E-000xuO-FU; Tue, 18 Jan 2022 09:45:16 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9l3B-000xtM-LE for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 09:45:15 +0000 X-UUID: de9c909ae5dc4f9bb9a6db50ded805cf-20220118 X-UUID: de9c909ae5dc4f9bb9a6db50ded805cf-20220118 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 401803113; Tue, 18 Jan 2022 02:45:10 -0700 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Jan 2022 01:45:09 -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 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_014513_727685_D4A9CC6D X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel