From patchwork Mon Nov 2 16:04:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11874403 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 7E77CC4742C for ; Mon, 2 Nov 2020 16:14:02 +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 6A595206E3 for ; Mon, 2 Nov 2020 16:14:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RqorgDGo"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="Iwa/zJ6O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A595206E3 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=Dxzfjqw5JaCa8JydUo6E9yO+iNNcBpzAIqSOHhBHWAg=; b=RqorgDGo52obHstJXNj/ZF0Ow nXqQF+uAwVAMVgnmw3o+GLT8lKP1NiJTLqyC4br5ITNc3mWs/fYwZR2UYffrHoKL8fsrKPiim36ZM tkawCmOpGNN9QzKm3yTzmyrcumdvAyCe/coLO/vEcj6dZ3gR/O2r0XCTvVDEfc1PYzyO9OQ3COY8T v7QeAeZG8kAoZp8COWPFKymgfv1u0/T8+E0mZ4rcoZlh1D8fqnaAs0SBV9KIgRrITHNCydndHFvqp S4M7NZtbXQsSY6fwhGSuJSi3M7uXozJuB2uBqr93MrkJoc3cy1opIdCD7I9rxJdoyKTiot+vXqycd yxAhD/Vyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcRq-0002kY-NH; Mon, 02 Nov 2020 16:12:46 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcL3-0006vX-7m for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 16:05:50 +0000 Received: by mail-qk1-x74a.google.com with SMTP id t70so8838732qka.11 for ; Mon, 02 Nov 2020 08:05:43 -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=JhJQu0u6kYZyiKQdNOdQHHgHHQ9cOF6OLpbU2DNOxmQ=; b=Iwa/zJ6Om1UAR8kwXuqqPWXH7rZbO1N7okU6okQg6AvAwhAy2xQuJBUSFPiMrZzrww NT1EH30QaleRvwXROCT7Yj+I0f0sfWVUEY4NWr2KD39lYY74FBiPeGpteJ1cQNqGeL53 5xiYFlEgAtfon1/7VOT21kHoQ2MZgiujAWy50U9dQI/KzkLM4lFlYgYZyXWcpSovRGy7 FXe0TUx3dGbOMTr9M+WVizjuOoKpiF2JsR6s0LuOsnl9lpRHeOkbfOeC20TFiPsjwEss yT3n6yMJakyr4Vvavgrn53Wc8i2tLax+kfbIyDx3kS1xpy1Gr7WQs5T/YavrBUOhyQFW tT6w== 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=JhJQu0u6kYZyiKQdNOdQHHgHHQ9cOF6OLpbU2DNOxmQ=; b=MIDoZQ39euXtposMiGU4hkmYOwxwfEvmOfwQCYutf8hcKVS1prGzbM6FYwxDetmkON Bs/YyeWZahEFEI1oQDVUiuSJzdOb2FUStPk/iNwUSRxIPdVgBVeSLghltZngxKqElY0e gXWvHZ48n7Dft1bF4rPQ1nusAzQFNV94OztecuY/FQXoUAtXxL27sDq7y+RJqhPfZXQi yBbajN/mM8rfTK/XMPFzYCBx1HTaVsL2Atjj2VZNjC4ECrujZp0Ip6S9jMtvENhuKMtU pxLz9EWuFsJV0aXOOfDWyDvA84g2zqa5IlHmPti1+/iwAtp9/pMHSCD/q4kQ4FQPLOeA Az4Q== X-Gm-Message-State: AOAM531Jfk7VxzbBdHFNCH5UWiXlkNl0+HrnhEPHfRw2N3e56iI+biAg jEEHbE+5Rq8a/GQ4/8SIQwEtWQscRM2T0WbY X-Google-Smtp-Source: ABdhPJyJY3gCiXTBB22SjlDvx/Ydn28lsNNt39U9OWOjGrdJ6LjFKPrvUmJx7BJSr6uwj6I++8czBpu2QuQiWSIS X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:ad4:45b4:: with SMTP id y20mr1778243qvu.46.1604333141655; Mon, 02 Nov 2020 08:05:41 -0800 (PST) Date: Mon, 2 Nov 2020 17:04:11 +0100 In-Reply-To: Message-Id: <939e8bc7da624a0923d5f3346b4ef5a9b5e7b208.1604333009.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v7 31/41] kasan, arm64: don't allow SW_TAGS with ARM64_MTE From: Andrey Konovalov To: Catalin Marinas , Will Deacon X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_110545_505858_1376BD2F X-CRM114-Status: GOOD ( 13.38 ) 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 , Elena Petrova , Andrey Konovalov , Kevin Brodsky , 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 --- 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 fddb48d35f0f..cebbd07ba27c 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