From patchwork Fri Nov 13 22:15:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11905007 Return-Path: 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 C7FD4C55ABD for ; Fri, 13 Nov 2020 22:24:05 +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 744212223F for ; Fri, 13 Nov 2020 22:24:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="d25nE2Rh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BmQ9+J7Y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="MjJCBEnc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 744212223F 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=Hbqt0IagjKl8w/E/OeiFouWkpqvG6Iqqbah4NfvEWAc=; b=d25nE2Rh/d2hi70fD7Ov/eFjY kDHSZn1CoPUnEetE+eHJp2H2JLAYv4UfBdELoHEhdmcPIeX2UDqCV+D7UuS3wlxYuqC3nVSj2KR+Q S8uKjCUemNBLU0JrSzW6YPQJ9I5cygt8hp/boZ7u7+Fw3cSC2mmr+lPvbTApwB4xTaYmm9U2InEa3 MRu3qgEZbU3vctYa4zHhDzybo7gKDI1K3beLreMb2MLdqJb56R9idmvLoDuuziBv7Y03kW5psxfGa 1bXXkCI4iROy7vRKbP9oPy0bTmfH7hqJYRwPP53xyahTR8wNPnHosWWqHuPB0QdUWnD/lGJJeFX8C EdNEk6+ow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhTe-0002ky-4M; Fri, 13 Nov 2020 22:23:30 +0000 Received: from casper.infradead.org ([90.155.50.34]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhNa-0000DQ-Rq for linux-arm-kernel@merlin.infradead.org; Fri, 13 Nov 2020 22:17:14 +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=ieTC1eIMY6CyRmTdTXieBU5zsmVSQCTeilNuNPVSDIY=; b=BmQ9+J7Y2bgHacyVNtYkwX24MP Ud08y7yvGgLGMFDdoO5HOZ22WTqJUnRnPqPS0du/G3BWLCbqiwE0EV0X78GOv7I8MzcZG9cX+jm4l a027nsk3xmesAjq3FHQ1MrdrTJrlK39h7ZBW0yYnpcfaS7JxyNR5OAiTgBaXj87HYVkguIXY9o2ZQ CAMdkjji5TRmfo925CZkVjGrNQqMOfYLsiCBMhtrYLTdwYvzrMAC9P5hfnJVu1JA/iEVm5HFaUCnf JKQIKnUlmtV7+sIwyRkvZGEtzEvzq3YY9WfhhrqO0j6x9gv+NtM+jsg1CXYGFVS02M093VEjh35h2 RWoszjGw==; Received: from mail-wm1-x349.google.com ([2a00:1450:4864:20::349]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhNW-00089P-0l for linux-arm-kernel@lists.infradead.org; Fri, 13 Nov 2020 22:17:12 +0000 Received: by mail-wm1-x349.google.com with SMTP id b206so4002721wmd.3 for ; Fri, 13 Nov 2020 14:17:09 -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=ieTC1eIMY6CyRmTdTXieBU5zsmVSQCTeilNuNPVSDIY=; b=MjJCBEncrj8xBilA3MC/IrhC8npF4MpFUeoSWqardwF8WtMHowBEkfz6QsdUp41VVr +J4LvzKWsrwbVrLLk2qpjJRcSyC87faUI6wp8IduCJHpX0K5ctr6GpzMr++5SnEP1y87 0UBXVa9hB9ZtuA9UxkID+P9Hxj227nCG33QJ2EjQ414QYokM3eIkBHNlNKoj2v6ZHXgB yx/cW+lCrlswPD1AWZ5dSNn+ODkjv4OeDs6AGMrr9t85A6JbloSEMmf6fMAqj4XE3BY8 mWoKocsiRCFzkRzItxEfdacuqEgtos4cU3LdtCx0wHSwMPsCeVKkp60KjHPyAlVbov+w yk3A== 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=ieTC1eIMY6CyRmTdTXieBU5zsmVSQCTeilNuNPVSDIY=; b=hIHnlIermVnSYgYuvyRtVnEOURoTvgdl5pSX8jXz5G2kjSpAWaHceI5/3iheuNOuAF NLOSZAHGaiEMzgEUQy4kVZKJGjtxpNlHERMFw8U/oGrEbAZpT5hqyD+UWstraPadTfty +zNeU3/RsOHKXU1OGRqD2OYxC7x7EyRXhdOwDgyyYnUnIWymtcFXu6hg8Dm8dZahofqB VfA9CNmsNmV9KJfTDmOrOI25GDFrCSgPSVLCJK+MFC+LsDWnVIiXRl5q5mZkyy1kU98W rkR7/Hsn+xysLvC/N2Tqw7XZIg8e0OdanAhWM6asMwHpHxrlEytlOJ73oOUvCfR03sF7 RPiQ== X-Gm-Message-State: AOAM532caqJd0sKqYe98VhqTOud1XbUM8Fq127nxCMkahK+1cYQw9RC6 1N+AVtUcbh/Fof3i+BmksXof1qNv9Q/d+/t9 X-Google-Smtp-Source: ABdhPJxAkxb/vWxkz9GFySmQsalysA4yEOIyCzpzAAfKAgB22xPBn7T0twxoArdcJmC1sUoQgKSYA7ZdPPFXlJ2A X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:600c:212:: with SMTP id 18mr4736487wmi.175.1605305828107; Fri, 13 Nov 2020 14:17:08 -0800 (PST) Date: Fri, 13 Nov 2020 23:15:50 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH mm v10 22/42] kasan, arm64: don't allow SW_TAGS with ARM64_MTE From: Andrey Konovalov To: Andrew Morton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_221710_502522_FE0325FA X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Marco Elver , Catalin Marinas , Kevin Brodsky , Will Deacon , Branislav Rankov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Konovalov , Andrey Ryabinin , Vincenzo Frascino , Dmitry Vyukov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 2f0dd5bde83b..c999da4f2bdd 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -135,7 +135,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_KFENCE select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS