Message ID | 42f25c11d97aa8497ee3851ee3531b379d6a922e.1600204505.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=2pn3=CY=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2538E6CA for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 15 Sep 2020 21:17:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DD4A020770 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 15 Sep 2020 21:17:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="ETreXfWq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD4A020770 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A4D6B900087; Tue, 15 Sep 2020 17:17:10 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9DCE7900012; Tue, 15 Sep 2020 17:17:10 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 80A34900087; Tue, 15 Sep 2020 17:17:10 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0072.hostedemail.com [216.40.44.72]) by kanga.kvack.org (Postfix) with ESMTP id 65572900012 for <linux-mm@kvack.org>; Tue, 15 Sep 2020 17:17:10 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2772C3489 for <linux-mm@kvack.org>; Tue, 15 Sep 2020 21:17:10 +0000 (UTC) X-FDA: 77266556220.14.basin88_35134cd27114 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id DC88C18229835 for <linux-mm@kvack.org>; Tue, 15 Sep 2020 21:17:09 +0000 (UTC) X-Spam-Summary: 1,0,0,0a2f6637d3e77f1b,d41d8cd98f00b204,3vc9hxwokcdkviymztfiqgbjjbgz.xjhgdips-hhfqvxf.jmb@flex--andreyknvl.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1042:1260:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1541:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3152:3351:3871:3874:3876:4250:4321:5007:6261:6653:6742:9969:10004:10400:11026:11232:11473:11658:11914:12043:12048:12297:12438:12555:12895:13069:13311:13357:14096:14097:14181:14394:14659:14721:21080:21365:21444:21451:21627:21772:30054:30070,0,RBL:209.85.222.201:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8ymgsc1x6gpznh5u1irb7ua39aop7ryrqmwrzup1kx6iapsqgqkbifnq5nh3.d7o3um9me6ybtdf9npp9ppsf4qiosg68dctfgt3yxidbjdqqp1ti7gmtynsnida.4-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY :none X-HE-Tag: basin88_35134cd27114 X-Filterd-Recvd-Size: 4390 Received: from mail-qk1-f201.google.com (mail-qk1-f201.google.com [209.85.222.201]) by imf30.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 15 Sep 2020 21:17:09 +0000 (UTC) Received: by mail-qk1-f201.google.com with SMTP id x191so4117694qkb.3 for <linux-mm@kvack.org>; Tue, 15 Sep 2020 14:17:09 -0700 (PDT) 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=mh8O150eeMuxxMH0jStzmqkyZ8vLujB12mmwVNwjeBw=; b=ETreXfWqm2ORqdMXEMxCL+KWztT+SunXDBq3Z8Y5/Ta9DUNYpbGEq+rfeJBjq3TwOi bDvSLCjukG2rPbXHHVN5lgj+ngjup+3ad42VnPwe0Wbs1Kd861h1wkjrCAFCKMeLiJd6 f83l8FT2dSaGmHBbiVpnJXzd1AyYGbBMVhJkngqxDMtOP50ghNzSQkovTErdD50IYAYL ize0dUMXPLYQkEezeC4pjaFj8IIAua6feAl1B4mMmYaE+AguzMo11v21qwJ3LE/KV/ZR xoAphSZl10RGs5gC4IhwNE/WKHefh12mj/++rdP85rI3078p9dLncrqeXcd6owNyoBaM eD4Q== 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=mh8O150eeMuxxMH0jStzmqkyZ8vLujB12mmwVNwjeBw=; b=omaH0CaC4KUKDa20GxXQCdrrExSaGXz70n6nA6ehvpW19AkO0T4qspmiIIdN6WVvlZ GF1bEyB7HfE787GKRR7bry7U5Jt2Lv7g1d6tvVjweYI8afyzgjvsJt/Vs09jSipT4bI9 FwhpuuXPE5Ykuov7Kmzdbua5RU6VK8Fe9nkzdlZTXbviyteCFLRnzV84b50MmIR7QPex CEaV16QGpqSKiq/E73p7PeJssZD0xvB5P2ZX5YCqvzgvZ7HHbz1G6otX3kekEyX7KKrO wXGFH1KBefrNWdJqSXGex4fNpUTZzl3nh8/YXK5/Rs+7wOWFco9A06M5fSNiLG96Q9ma fWBw== X-Gm-Message-State: AOAM5308CZHVZIUPfxcrv20QuuxOkOZiVhGQs8gWujUhXrSC1wPUUhVj 2CwQstjBxDqTq5ggJp6jKZNeenSMi5DRwKPo X-Google-Smtp-Source: ABdhPJw8kuypKDjq36m+5MWDEBM2m2sdKvtM6e8W1eHE1KXnLuswMPPxAtQrR0GbHR2xbkTzUQB3mGa+9I5iKj5Y X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a0c:f2c1:: with SMTP id c1mr11709701qvm.30.1600204628690; Tue, 15 Sep 2020 14:17:08 -0700 (PDT) Date: Tue, 15 Sep 2020 23:16:01 +0200 In-Reply-To: <cover.1600204505.git.andreyknvl@google.com> Message-Id: <42f25c11d97aa8497ee3851ee3531b379d6a922e.1600204505.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1600204505.git.andreyknvl@google.com> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog Subject: [PATCH v2 19/37] kasan: don't allow SW_TAGS with ARM64_MTE From: Andrey Konovalov <andreyknvl@google.com> To: Dmitry Vyukov <dvyukov@google.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, kasan-dev@googlegroups.com Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>, Alexander Potapenko <glider@google.com>, Marco Elver <elver@google.com>, Evgenii Stepanov <eugenis@google.com>, Elena Petrova <lenaptr@google.com>, Branislav Rankov <Branislav.Rankov@arm.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Will Deacon <will.deacon@arm.com>, Andrew Morton <akpm@linux-foundation.org>, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: DC88C18229835 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
kasan: add hardware tag-based mode for arm64
|
expand
|
On Tue, Sep 15, 2020 at 11:16:01PM +0200, Andrey Konovalov wrote: > Software tag-based KASAN provides its own tag checking machinery that > can conflict with MTE. Don't allow enabling software tag-based KASAN > when MTE is enabled. > > Signed-off-by: Andrey Konovalov <andreyknvl@google.com> > Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e7450fbd0aa7..e875db8e1c86 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -131,7 +131,7 @@ config ARM64 select HAVE_ARCH_JUMP_LABEL select HAVE_ARCH_JUMP_LABEL_RELATIVE select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48) - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN + select HAVE_ARCH_KASAN_SW_TAGS if (HAVE_ARCH_KASAN && !ARM64_MTE) select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT