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 CE075C433EF for ; Fri, 11 Mar 2022 10:40:41 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=finpS/uIvTt04si8Mc0f+VanuGz7xAnPb4Rou8GKfNE=; b=MQA/7B6Wn+0JvS 4OWI7viL8K9ak6lC+0/UHng8fpPp5ob+v2Z0eUZiyw1OHNN6H94TfuBPPh7AM4FT1YeOWhjEKeg5M gVwE+BmX1yUsyDVwJ/MA/JThQLMPhwI9a36eWLbp4a95sgzIanU7ZyYMq7eeuqW5imQvE4Id234bz kiI+i+4IV39rZJO14Q3jbHZAXIvPehsH5HEw/+Z+0HKMtKGxhVd39HnJ7+orGsDyoc/ZPc4/7EYe7 JKdycrfasR/5oc3kK7GlEthSlXTUuArhLphYWKEGFGjNMk7vPfUbaLbHXU/UUCebTZX6blbxgSsV5 0Dqe+tXENiz1TtiQjoZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nScfx-00G3MB-Cg; Fri, 11 Mar 2022 10:39:14 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSceG-00G2Yz-RQ for linux-arm-kernel@lists.infradead.org; Fri, 11 Mar 2022 10:37:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fAl9Fpwe3hBpzZjYhYE3T3tApQIlsu2mrNCudRtI24A=; b=pbKdbcjp6Rv6g/ODfY6BaNs3sv 6xJ8Jec6a5G/6IUuibQApJj8uJUk+tpJ7LaZ/lD55lGi/bOnv7f+a51Q2NcjDGNm4MheQfwTOyqPe MyCP2ksPra8jQA3znEiATfoIGOP50QMYv9ONS61XXP/EMGyVFhd6KkYHPvoOCLX0pMtOoseBGvY92 7GJ6eRmd7HR2OfD+HrM6lMrlzEYFVZCZCKF74os6/GekIiRvM7YmMgQnDZnWcq7350Ig4GQ0YGdPZ Vw6mv+k9AjfMXmUdFPu1Ldk97IBIxcpREhi918ibPX9GWLiGk/IJ3efenia0uSlUENHuZLfhi8nIf hx+Rf3+g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57788) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nSce6-0002RB-51; Fri, 11 Mar 2022 10:37:18 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nSce4-0001Wp-LD; Fri, 11 Mar 2022 10:37:16 +0000 Date: Fri, 11 Mar 2022 10:37:16 +0000 From: "Russell King (Oracle)" To: Linus Walleij Cc: Lecopzer Chen , Arnd Bergmann , linux-kernel@vger.kernel.org, andreyknvl@gmail.com, anshuman.khandual@arm.com, ardb@kernel.org, dvyukov@google.com, geert+renesas@glider.be, glider@google.com, kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, lukas.bulwahn@gmail.com, mark.rutland@arm.com, masahiroy@kernel.org, matthias.bgg@gmail.com, ryabinin.a.a@gmail.com, yj.chiang@mediatek.com Subject: Re: [PATCH v3 0/2] arm: kasan: support CONFIG_KASAN_VMALLOC Message-ID: References: <20220227134726.27584-1-lecopzer.chen@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220311_023728_946295_EBEEC2B4 X-CRM114-Status: GOOD ( 25.79 ) 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 On Fri, Mar 11, 2022 at 12:08:52AM +0100, Linus Walleij wrote: > On Sun, Feb 27, 2022 at 2:48 PM Lecopzer Chen > wrote: > > > 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. > > > > Since the virtual address of vmalloc for Arm is also between > > MODULE_VADDR and 0x100000000 (ZONE_HIGHMEM), which means the shadow > > address has already included between KASAN_SHADOW_START and > > KASAN_SHADOW_END. > > Thus we need to change nothing for memory map of Arm. > > > > This can fix ARM_MODULE_PLTS with KASan, support KASan for higmem > > and provide the first step to support CONFIG_VMAP_STACK with Arm. > > > > > > 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. > > > > v3: > > rebase on 5.17-rc5. > > Add simple doc for "arm: kasan: support CONFIG_KASAN_VMALLOC" > > Tweak commit message. > > Ater testing this with my kernel-in-vmalloc patches and some hacks, I got > the kernel booting in the VMALLOC area with KASan enabled! > See: > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/log/?h=kernel-in-vmalloc-v5.17-rc1 > > That's a pretty serious stress test. So: > Tested-by: Linus Walleij > Reviewed-by: Linus Walleij > for the series. > > I suppose you could put this into Russell's patch tracker, it's gonna be > for kernel v5.19 by now but why stress. It seems I can fix up > kernel-in-vmalloc on top and submit that for v5.19 as well. Ard's series already adds vmap stack support (which we've been doing some last minute panic-debugging on to get it ready for this merge window), but the above description makes it sound like this series is a pre-requisit for that. Is it? Will Ard's work cause further regressions because this series isn't merged. Please clarify - and urgently, there is not much time left before the merge window opens. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel