From patchwork Thu Sep 24 22:50:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11798337 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 AC7CE17EC for ; Thu, 24 Sep 2020 22:51:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7349F23600 for ; Thu, 24 Sep 2020 22:51:46 +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="ZQQPPgDS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7349F23600 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 E5F188E0018; Thu, 24 Sep 2020 18:51:44 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E0E4A8E0001; Thu, 24 Sep 2020 18:51:44 -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 CFCAE8E0018; Thu, 24 Sep 2020 18:51:44 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0152.hostedemail.com [216.40.44.152]) by kanga.kvack.org (Postfix) with ESMTP id AE8448E0001 for ; Thu, 24 Sep 2020 18:51:44 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7B17B181AE864 for ; Thu, 24 Sep 2020 22:51:44 +0000 (UTC) X-FDA: 77299453728.03.cap48_1414cc627162 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id 5D04F28A4E8 for ; Thu, 24 Sep 2020 22:51:44 +0000 (UTC) X-Spam-Summary: 1,0,0,186dce4f451b66d0,d41d8cd98f00b204,3_ijtxwokcpkboesfzlowmhpphmf.dpnmjovy-nnlwbdl.psh@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.128.74:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04yfoc1d4ahfusgsyqdkuxbquzdqgyp7ryrqmwrzup1kx6iapsqgqkbifnq5nh3.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:24,LUA_SUMMARY: none X-HE-Tag: cap48_1414cc627162 X-Filterd-Recvd-Size: 4434 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Thu, 24 Sep 2020 22:51:43 +0000 (UTC) Received: by mail-wm1-f74.google.com with SMTP id a7so327678wmc.2 for ; Thu, 24 Sep 2020 15:51:43 -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=jdvdUBTX2W2BS/6LXn98shgk2aR72XHwNTl4Sjd6ky0=; b=ZQQPPgDSsb+RqoQ/V3HmUYIqMU+UrlOk8tc2bUZ7rhSzWXTeSE9UL3xTph/O5JV0Xn Gd4J220+dOAYM3xd/7stx4MLA5aq4ffisUoGAU3/SNWfgKsjkON3MAa7pyZmpDE9onQj XecIfFP2Qu8yEIpTdao36Gbvd4q+30zMx/df5kjZu6Jj/ibjqcfqLLOwQ8juDuKm+ig7 YWDHJdcDPacXrGkRn6WAJhy2kISS76X8iPKtz1xPwukNUi9xOI/izZRrqFNCofqrcuGD aXA+Og8HAoq76Z4J/GLDsXuIxsBcCGO4JgWO3UvARfsE94gJB40NqaI+sKoLKkP/lVGJ 75qA== 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=jdvdUBTX2W2BS/6LXn98shgk2aR72XHwNTl4Sjd6ky0=; b=Ac8RK8mzdu7PzONP4RIAAoJTe/m9DKbUFUkVByr1s2lQMg7ObkE3HWqa4lJ4Ylf3Xf ea3BsrhHlnhRSi9dDVi5nYdAB8UQDWApBsFucWqBBwDaO483Zt/b+ccnxL5S6lyQ3EJS Yi3AfYP/H7vF/wz0xt1brv91v4oi7oXni2Ea/JaSmuudwmrV0h99UkFpZ5dbVNeVr24H lvM5DSLdNKHyVv4BhuWsbjQ6g2tBEDzBCpjhAsYhPi8tH5bTw9ONB7bIQI82kfYinnDG Ta4qK3675S35JhOzl0GFCjx1XWq6u7N86NkVFnijFgmDrmSIfYdvmGzn42W8XBN9XvsK 5Lvg== X-Gm-Message-State: AOAM530/4vksNNxagFz3m+ZKTP7fs/1TdWdfITDhSh6a9/gWmMUsJX95 qSAeUPUSy3zLSu0tgV+IbjU6MIbokn0Q5V4L X-Google-Smtp-Source: ABdhPJy2CZOdFXzSDMUAYWi5qsJLuL4ZWGYGgwoO+4VNTAknABxkthypQXCnRTm13gA6Hia3YIbJdc+b+9sAWjV9 X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a1c:4d0c:: with SMTP id o12mr169wmh.0.1600987902272; Thu, 24 Sep 2020 15:51:42 -0700 (PDT) Date: Fri, 25 Sep 2020 00:50:28 +0200 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog Subject: [PATCH v3 21/39] kasan: don't allow SW_TAGS with ARM64_MTE From: Andrey Konovalov To: Dmitry Vyukov , Vincenzo Frascino , Catalin Marinas , kasan-dev@googlegroups.com Cc: Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Elena Petrova , Branislav Rankov , Kevin Brodsky , Will Deacon , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov X-Bogosity: Ham, tests=bogofilter, spamicity=0.000014, 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 --- 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 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