Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp241124pxb; Thu, 12 Nov 2020 02:34:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqxxsjgRTY5TFZD38Siub7jMvJu261XHCYYz1fNxdEqK8txbtoaRsxwFkTHd+3p7scs24C X-Received: by 2002:aa7:ce8c:: with SMTP id y12mr4508965edv.185.1605177297953; Thu, 12 Nov 2020 02:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605177297; cv=none; d=google.com; s=arc-20160816; b=n2H7br8flgs81rxNQlNSZftKhSm/mficNHklfUSuN99wCH++h/IoxObv1ERweJpD7w DQu2hXIOEsh4Zuubf8c8zfYpQaq+XxDRBH6wECaPgJ6xFo16gyQYxbJDVIrZwzW8tNHv YIQg24Q+BLf3TThr2Vpc9k8IOsf37XBbwJFxf0yfJzILBpD1kTz8WE1iG+yY+mePKyeI Xu3/9ov3RM79Y1DRRqwrG2YEtBRJ0WHvB5i3o8ivuvKcPZg3kVcYJXbm89cegNapT8ac 4Q8QfdPRPitqouyape8trBaqbHPio5XyxgY8fY6AQ1mVlSpdvb8hMyL1yvqCwEjlpHPz 6KPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ve9pymIDbJL8QvWmyE730dyF1Zz5dlq43815YKdTq7M=; b=jhxPTjYg8XXXjuUP7oAnGs9UI8T6fdT6UzdS/lsqXZyMGUVXY9V6aNoPcvtI67d69q rT+IG2Itz8KzNzdsxS+hGwQ28ABQFKw21oz5KtPVdzi9P+zMdBWYRLGmD4cNawWnpEIl axGsfdrD6jqkACd8WJlizjRianIHg75bujMeGinqaQjlV2HLXw4ZEN/B5ILNYTeABTNV VBfXK2qq247j3tmTsV//ZPkcXAX/YmylSjXT0nF/OEmplOxF/SmZid+9AuWuIZBr4mm2 TdCo87Wg3RuDx65IIcSOVRUV9AhklsmSu6R6In5xr6yH1ykS9tBfgFt6WqJuM8i5VXjm Zzyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si3368852ejy.140.2020.11.12.02.34.35; Thu, 12 Nov 2020 02:34:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727869AbgKLKbH (ORCPT + 99 others); Thu, 12 Nov 2020 05:31:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:49930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgKLKbH (ORCPT ); Thu, 12 Nov 2020 05:31:07 -0500 Received: from gaia (unknown [2.26.170.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10BF622203; Thu, 12 Nov 2020 10:31:03 +0000 (UTC) Date: Thu, 12 Nov 2020 10:31:01 +0000 From: Catalin Marinas To: Andrey Konovalov Cc: Dmitry Vyukov , Alexander Potapenko , Marco Elver , Will Deacon , Vincenzo Frascino , Evgenii Stepanov , Andrey Ryabinin , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 05/20] kasan: allow VMAP_STACK for HW_TAGS mode Message-ID: <20201112103100.GJ29613@gaia> References: <3443e106c40799e5dc3981dec2011379f3cbbb0c.1605046662.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3443e106c40799e5dc3981dec2011379f3cbbb0c.1605046662.git.andreyknvl@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 11:20:09PM +0100, Andrey Konovalov wrote: > Even though hardware tag-based mode currently doesn't support checking > vmalloc allocations, it doesn't use shadow memory and works with > VMAP_STACK as is. Change VMAP_STACK definition accordingly. > > Signed-off-by: Andrey Konovalov > Link: https://linux-review.googlesource.com/id/I3552cbc12321dec82cd7372676e9372a2eb452ac > --- > arch/Kconfig | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index 56b6ccc0e32d..7e7d14fae568 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -914,16 +914,16 @@ config VMAP_STACK > default y > bool "Use a virtually-mapped stack" > depends on HAVE_ARCH_VMAP_STACK > - depends on !KASAN || KASAN_VMALLOC > + depends on !KASAN || KASAN_HW_TAGS || KASAN_VMALLOC From the arm64 perspective: Acked-by: Catalin Marinas