Message ID | dbd82cbb24bf5875b465e0d75568916edb8b92ea.1604534322.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3g0P=EL=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2E2AC00A89 for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 04:33:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 537EB20729 for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 04:33:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UoYo0zP/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="afuiVOrN"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="o1BHF1EV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 537EB20729 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nFJBxHZ6AZ0inMeGg/lLXNK4GcpIeZzQf69SqIpgfHQ=; b=UoYo0zP/gANBRiAjtY0+jou3z vUfkZf4JLRd31D5JyWOgjtHDyxdFVtfyzJo0GxNjhavrimvaWWoRO8b6+CKvqHVd5oLd7S2PsE4m8 TAPHOzrFA+Ehbie16HB9DkToELc7S56kRHxFBCBDnPzMzxuPJVtVJ6ScG3XJB0nyu7Yp+ROrfBnFh 8kAVAMbXQEv5Sn5qAB41KO1bdz/xeUjJ4uc4JZP9ntMsx6pCkl0RJ8/BgmLVUu8MVA+jxWqZgrcjW uGIiNcVSH6d6f4x0mzi8Qq2UMuPiATf0x4+fx7jpTcpeLDOWkM3a2A5HthFmaSKRukgp+J88O3e9m Xh04v4sQQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaWwk-0002N6-4T; Thu, 05 Nov 2020 04:32:26 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW3t-000145-QZ for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:35:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Cc:To:From:Subject: References:Mime-Version:Message-Id:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=z6j3WUTg8MpmEPLYdtLimxVBLIkxxjwsBk3bJk+FZ/c=; b=afuiVOrNuq65jGpeuaEORjQFo0 1kOk3Un/ePsC2ryGKday8wc1RFCOywDA/a3KJ9X2aaq8oXpI+Jw+S4wP+llFZNkeOK1lk+gjhayAX VpUM6tBKYj++pUL++xPSDAbw/bGDVcJFr1wE8/Y3mGoB8iSJhAjdEhQp2TQ1+EM9rTL1LrVhjizWM LczrbvQ4XqdMpzzfNUlphAhgWS/gZINXjLBVxq/6KCLN/IkymzeUBZeS3o4JOYTtsLix4N5KSJvAO /9wvKHJF/40estYC80+oBViLJAM8P7/mLwfdnhd0RPoz8FVImiiWcCv1ggP8IkzMs+uqXK3s9mxcl JO7mSHyw==; Received: from mail-wr1-x44a.google.com ([2a00:1450:4864:20::44a]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaSkm-0000oA-93 for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 00:03:52 +0000 Received: by mail-wr1-x44a.google.com with SMTP id m4so82487wrq.23 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Nov 2020 16:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=z6j3WUTg8MpmEPLYdtLimxVBLIkxxjwsBk3bJk+FZ/c=; b=o1BHF1EVbMTrooct4IuVuzwUadRydSkmLut5zGwLfIW86KeTj+T7+3qQd8RFCYYVk1 ZMQRhpeEUB0u7Y/NHq7fRwnmcx3ssRcGQXKNVGsCHvT9J0ec5Uo0HSkVZwIlNtxDiWBV 1AYf95vBSDu2mEJnYgYDgiUD2HOPIlRa801YsQlyBFlE4oaIsvs/R1fU90M1/78nGH31 rSpbf1mVkKGWUcgjBXgG/dZMJz3TUYg1+KwIJX3sm4kRmuAVkTFAYArvZdBWFDmDFy5c 75+gVsds4JozQ2HcmfCmLiO0RpdOJkKQTUuAkL7OUg7yjQY0LQHEif8Q02Q9qTWV0+Hq AH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=z6j3WUTg8MpmEPLYdtLimxVBLIkxxjwsBk3bJk+FZ/c=; b=swmnwJKjV9arYd+mEkzZa1asWRvzbkDGEOY+svrNeu2bT/F2DhJQ4qJFcXGscEDm+T Q5f7o/BXlOPq3LUj037Od4bV5KygU66NPS/oUzCwl6O1//skduv3EsEg4hl+rxBeiMS6 2imxqW05brv9gG6HlcqdWLzOQkdEM0BPsVEsUi89tjfBGDtvOm0xCxFuxoPSBfaFksRw Vpl54GEuTPg3Bze6rnsL9HZUbmVEUnZLcVxiZLH9qC2Bn3haFeAdPAkXs6KX7hIfMeB1 JJdpYP12RApVcoxnK8+TayA8ABFnHlh2XpEGHrMGpVtHwDPS/LrunEc+j8v2BhvilSDJ y09w== X-Gm-Message-State: AOAM531sXdBgCIWr2R+Bv3K2tmX8AuRC9o+VEyUNRk5rPifLtmlUhRI2 ibd7JHtBMmpjERuXuYeEaIan5szT6XJ0IBEE X-Google-Smtp-Source: ABdhPJyW9CVHpcZlYLIGEMvyGyz16yUK8Wds51tx5Sii32bcO3BS7futrB9CgRdyZWCAoRPp5flAxMpdXR2/WiKH X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:adf:a315:: with SMTP id c21mr514082wrb.272.1604534567466; Wed, 04 Nov 2020 16:02:47 -0800 (PST) Date: Thu, 5 Nov 2020 01:02:15 +0100 In-Reply-To: <cover.1604534322.git.andreyknvl@google.com> Message-Id: <dbd82cbb24bf5875b465e0d75568916edb8b92ea.1604534322.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1604534322.git.andreyknvl@google.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH 05/20] kasan: allow VMAP_STACK for HW_TAGS mode From: Andrey Konovalov <andreyknvl@google.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Dmitry Vyukov <dvyukov@google.com>, Alexander Potapenko <glider@google.com>, Marco Elver <elver@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_000348_524058_99A806AD X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Branislav Rankov <Branislav.Rankov@arm.com>, Andrey Konovalov <andreyknvl@google.com>, Kevin Brodsky <kevin.brodsky@arm.com>, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Andrey Ryabinin <aryabinin@virtuozzo.com>, Andrew Morton <akpm@linux-foundation.org>, Evgenii Stepanov <eugenis@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
kasan: boot parameters for hardware tag-based mode
|
expand
|
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 help Enable this if you want the use virtually-mapped kernel stacks with guard pages. This causes kernel stack overflows to be caught immediately rather than causing difficult-to-diagnose corruption. - To use this with KASAN, the architecture must support backing - virtual mappings with real shadow memory, and KASAN_VMALLOC must - be enabled. + To use this with software KASAN modes, the architecture must support + backing virtual mappings with real shadow memory, and KASAN_VMALLOC + must be enabled. config ARCH_OPTIONAL_KERNEL_RWX def_bool n
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 <andreyknvl@google.com> Link: https://linux-review.googlesource.com/id/I3552cbc12321dec82cd7372676e9372a2eb452ac --- arch/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)