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: 11895681 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 2510AC4742C for ; Tue, 10 Nov 2020 22:23:24 +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 844DB206B2 for ; Tue, 10 Nov 2020 22:23:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CzuNbUad"; 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 844DB206B2 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=EVF0GR06mB0zpxqgNV9oSVdp77BjbUooE+lSgDNi0hA=; b=CzuNbUadpxRqWe4SRJEgocvbs vmIZbZRW65QYFK7ZdybsykmcnK0K3EfWjM1GtF0dhLNtDsEUsNLAacWlwvTz5pdSJfOO1E88JMatK uVBWAhNiGcMxGQUOd0yL8RDFImMod69L2qSGNFRQkWWiDacuU/N2V7sIqP5gNFbbpvHvcoHI+DwTS Cbx89vH1zjqg1PAjN3A3r8VTkA+gnR1BqXlRcDQmB9+QTTJRXTiv2lkxyO+G5Eqn1HJJysoLMet9k jmjCA9LqzahnNX7BaV4S0alad1uhTc3oNYC7hzFNvFdctXKkRJahGy/kIYQD4sa3mZl0yMUbWRLpN F7qMxn/pQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcc0C-00006o-PO; Tue, 10 Nov 2020 22:20:37 +0000 Received: from mail-ed1-x549.google.com ([2a00:1450:4864:20::549]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcbs1-0004o8-Ft for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 22:12:22 +0000 Received: by mail-ed1-x549.google.com with SMTP id g1so3293701edk.0 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=PYjPSstwBR940+CTTFEuGa2R++SR6ymi3jUQ0YxQykQ83HQDI0pcSLWUxGOzr375DV 3ZhbUMMlp5dL5B1dIqM1TomXxjlJGDPTVGq8yzbGOqUEtWS6vd9cqUvIX+m65lRTNVan SKYxyTtLhMOY7txuo8xzybhC50pNyrn22ZgH/DfpRFiF5gil+pUru1Hz/ZaJeQcrC7VP twPU6HRIq5q6I8kk0ZDBt8AoaLXEl+rhib/1bmWrWY0d45cZMXowLOFK2U1oBIDukEtk 1tdXvOyMOv9eGv2FrXsucjCDC9q9GCAwIM1/oSJwsJBY7bQhEFPlmu9SZt6kopHbqaUz Cj/w== X-Gm-Message-State: AOAM532sD9RER0lQEV9gQPinwYdM4kW4LqVLvWzhxMKkwioyxur5D5vM Kr3b101GGcFbErcDEETa+bfTNpDHbreGVLAK 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_171209_642864_BC1A2662 X-CRM114-Status: GOOD ( 13.03 ) 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 , Andrey Konovalov , Kevin Brodsky , Will Deacon , Branislav Rankov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Ryabinin , Andrew Morton , 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 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