Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp686823pxp; Fri, 11 Mar 2022 12:24:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyix7xUOZH37KdTuR1z13ErUX5OesFWNQa4zSxg805aLqOM7mSRCgu8csUD1rPGb8PEvwlh X-Received: by 2002:a63:90c4:0:b0:37c:7f96:8cdb with SMTP id a187-20020a6390c4000000b0037c7f968cdbmr9779082pge.24.1647030296283; Fri, 11 Mar 2022 12:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647030296; cv=none; d=google.com; s=arc-20160816; b=k2d0WrTxgi3h6SeVOI2sV5fPmhBdVjOVcQKZx06Qxucf3vdCzo6wSwSqQUSwpR4DIc Ci3gPFFXcaSwzK5WKI0jE2slQOaZ89juLHr3gCkEPfINqpP78GKLdErVihkJtoapxUbl TOMota4Bvteeo2oyBpWHvbDHw+MpDYYSfhzc7ps2n6RyYGStWVx9S02hO8WhjY3jt5uJ NN4z2BLU4M/vbbj7MJ11BbPmYkDFVMyQAPGRgAWrD6ObxuGTp0vF09L+iU5WbOtrkdG6 uBZtnw4VsgMOml4zszTZ/tZ8LAsg8J8csSW2yxslflQUm1d343OqnvOA9c9slX5a1PLU l7rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fAl9Fpwe3hBpzZjYhYE3T3tApQIlsu2mrNCudRtI24A=; b=yYCj8Fq21aBfOkBgwQHPE0lsYV88qus6wm/zd0F1eZZ1GzAbY8Qsihm0aCWnzIjyA2 ZPmSVojmpNxjEUKilYW4dXm89H08NNS3Vg4DnFnykeETnSqUSjCB9bHLjqj+lEPLCGog 0l82b+CzUNpvoltv//LE9oCrpPdeli1+gHIkHzGuh12soA+1tKEIgdHtZxjrUJSdmYsF xPE2SkPDQ4FzT8UuH8qMBoJiE1xy8fZRXaA7pmb+lBilNL20MHX/nFrWbi1aGm34oaB8 yZIKuJgfl0TjoICz2FQN7EiZ1F9Q0Zz2h9Cuomvn67R9XN+bn7tVS9Dmx8xQXN8GK0vD yJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pbKdbcjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a170902dacc00b00151bff99231si9532909plx.226.2022.03.11.12.24.43; Fri, 11 Mar 2022 12:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pbKdbcjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348094AbiCKKia (ORCPT + 99 others); Fri, 11 Mar 2022 05:38:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348060AbiCKKiY (ORCPT ); Fri, 11 Mar 2022 05:38:24 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6036C1C1AF2 for ; Fri, 11 Mar 2022 02:37:21 -0800 (PST) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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!