From patchwork Tue Nov 10 22:10:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11895553 Return-Path: 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 7B7C515E6 for ; Tue, 10 Nov 2020 22:12:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 38F7E20637 for ; Tue, 10 Nov 2020 22:12:08 +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="N+EE4tAa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38F7E20637 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 EA5366B00AB; Tue, 10 Nov 2020 17:12:06 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E7B896B00AC; Tue, 10 Nov 2020 17:12:06 -0500 (EST) 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 D6E0D6B00AD; Tue, 10 Nov 2020 17:12:06 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0250.hostedemail.com [216.40.44.250]) by kanga.kvack.org (Postfix) with ESMTP id 9D7DB6B00AB for ; Tue, 10 Nov 2020 17:12:06 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 4CB768249980 for ; Tue, 10 Nov 2020 22:12:06 +0000 (UTC) X-FDA: 77469907452.13.metal66_421741b272f8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 2E03418140B69 for ; Tue, 10 Nov 2020 22:12:06 +0000 (UTC) X-Spam-Summary: 1,0,0,4c0da14457aebbde,d41d8cd98f00b204,3nbcrxwokcaufsiwj3ps0qlttlqj.htrqnsz2-rrp0fhp.twl@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:5007:6261:6653:6742:9969:10004:10400:11026:11232:11473:11658:11914:12043: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.208.73:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-66.100.201.100 62.18.84.100;04ygekwe4taa9wrj1onh16afuc71ayp7ryrqmwrzup1kx6iapsqgqkbifnq5nh3.d7o3umhephpn1ndfnpp9ppsf4qiosg68dct66wqb9g8wfdqqp1ti7gn69j3i447.y-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:70,LUA_SUMMARY:none X-HE-Tag: metal66_421741b272f8 X-Filterd-Recvd-Size: 4420 Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 22:12:05 +0000 (UTC) Received: by mail-ed1-f73.google.com with SMTP id d1so4836960edz.14 for ; Tue, 10 Nov 2020 14:12:05 -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=Pg6PJaVDUkAITFjkMU6ng0d8HxlghasMrqy2nxiQARg=; b=N+EE4tAaZWyBdZ5DiXHWZpSJp8Nle0s95seQ+AN71cupw7jOVnCpnB+57fO5p11qQw NOqjGDLxKaMUNUrdnzVgdtKXagIpv3kt8kv8FmZDaBMzNAuU30Es9QMLoZSckPmlLOIZ n9wFGp9vfEkKNf2+PxPbECtpMTuDbXZR9A3SoUI5K79S+nnRQItz63jv4+1uuNsQhGfl Gmpw4s5LnA5xBF28wa28kmwMLpz9kMLagixOYxWiZIWOTvP/o/WwswbMC5JfQ1ilJ67j iy/GvPrll7ccA0ltjQWNiFbghcjwYHY7u29dx6CXcgWKABoOI9igHKUM78lLvnXARjav uz3w== 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=Pg6PJaVDUkAITFjkMU6ng0d8HxlghasMrqy2nxiQARg=; b=ZPPdbwkQiqzQZy6heKk9ePS+zDrffq2VG9Cf7Yx/9As76eCnq05HDiyRMM8qJglzhH tSPBTL/oDUW7SLC6IlsZ4pTIWb5fHE9+3NEZO7F0W2FEv2VuBVWk4BFY+m3XzK+4kmRW 7FwJWl04pTFOl+0ukTkxECVnSzZrXH8xvKIu3mr7TpT8d5ZJ+FdOtCkPzVQYGARU5QTR aBOQX22IxtYNeURXE81O7ZmJuIDSOdVdg3VM1SinSj/UWpywhrn3T0DLToblwRt3FcSE /VHB96N2KR0vmVgy31fWswDZVlETaF40JPJT/pRSGqK4R7oJF0dytOVWZgjpEp/eIdho IoSg== X-Gm-Message-State: AOAM531fP89G5Z6Z8pJsD+wTvEAlpgl7xrCU6ZndDiQy/p11Oi1ZDiee vsso5WvjcbfBnAqmnqPM8hwpQ7Th1ZJiHnRE X-Google-Smtp-Source: ABdhPJzGlB7rJVf5/zTLMwiVrmTH5i8CIP9E0LbpZaVUCC9JCVO92ec3hheCVddG7JN0TUWg8SAPkiySAFIjtZaS X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:6402:1a33:: with SMTP id be19mr1661521edb.47.1605046324324; Tue, 10 Nov 2020 14:12:04 -0800 (PST) Date: Tue, 10 Nov 2020 23:10:21 +0100 In-Reply-To: Message-Id: <67c17dafa28036b628234c8f1d88368af374449c.1605046192.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog Subject: [PATCH v9 24/44] kasan, arm64: don't allow SW_TAGS with ARM64_MTE From: Andrey Konovalov To: Catalin Marinas Cc: Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , 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, Andrey Konovalov 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: 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 Signed-off-by: Vincenzo Frascino Reviewed-by: Catalin Marinas Reviewed-by: Alexander Potapenko --- Change-Id: Icd29bd0c6b1d3d7a0ee3d50c20490f404d34fc97 --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1515f6f153a0..25ead11074bf 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -134,7 +134,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