From patchwork Tue Nov 10 22:10:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11895805 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 9C673C63697 for ; Tue, 10 Nov 2020 23:32:29 +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 361DF2080A for ; Tue, 10 Nov 2020 23:32:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WfX8mDhb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="RxPazZ62" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 361DF2080A 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=RVQdPI4xQmjaIOlrD7bsAdr4S0VfW1fxTSOHvyTuiiQ=; b=WfX8mDhbJ5B2tXJ4ESXnxrWOA ZWRrLvg6W9ErrA12bBfCgRpFjPekfpcfAmGnmRNgQiQcsNlwMPUBazd0baVCTcFFZAUq+xDyWFcC5 /fUox9bjmbuklMKWl/KRWvAVR6CAoWAiJhXpb6loDd3M7+z+w45N9HjVPbJHvxiZcNDzf1EQ+5HpB IbxwgsOuU6v+uCz8PT9Nvik73EUYEV8nXSCjooHCrgEiGKEC13JChjGUyug6x77Wk8v075yZ5H0pg LQm+/cQjqLTOa89AdjowN59rnDzTViqOajaq6v1gWnMaIRLkvUcei/8TqwpakGbbCmDSBbBnAC94w wnGvpJ9Sg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcd75-00009s-0B; Tue, 10 Nov 2020 23:31:47 +0000 Received: from mail-wr1-f74.google.com ([209.85.221.74]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcbsi-000578-Gj for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 22:13:05 +0000 Received: by mail-wr1-f74.google.com with SMTP id x16so6160200wrg.7 for ; Tue, 10 Nov 2020 14:12:49 -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=3bLCl/qn5nElnEm7yzZVsuSSkTputMy9yS6WNazIy+Q=; b=RxPazZ62MVEyIS9tp/hkwVNYONZFb2aACfP8EVp0k2dP/9RU3ZzFK5th01dPOaNpPf eTv+L9OZayvnQUnXOxxJC31ytnkgbLLR+89xmA8Nwq8hlzsr1XvQtvurXaQxQnWf+Hxy vr5GdfV+daNEARU0JdYCgbw+FPJV5vmSDRLUKePjGJeu/3WvsL7N7P/8PU7fnYMngMCW r8+ByjG5VD5WXvgmfQGiknwPuipGgyGOSzyZCg+JBtJnGwOPMIduyxCBEjCnbdRGlpGu ty4RPieFcqpXfZ1tprTBx0ATS4RA9vaBBYtxN0Oju2QPNJB5Lv1WviCgM2m30Oox35M3 x9cA== 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=3bLCl/qn5nElnEm7yzZVsuSSkTputMy9yS6WNazIy+Q=; b=pCS8zVnIrBs7iX8h8sSHJTiysN/tO2BxnC77wltrLC7IPlreUKHMZ8sy3FlMie83Ky fFP/93mLornqerg/3C9i1RJdberZdll0/DzdGiGu460fUdpLUD9dcQHrzOc8J4+8xqal NRQiedS2MGak+irsZ5qIWFzs71f0f7Xu7x7wX6pCUA1sOrGICzYQslS6D4aRLtRA2ygU geH3uuOn4S1NMuJsW9ANAoK21vW/xj40Vf1GYiEJLIdwR5v2c+IK8NFyPHKcs0jyMZDe 8jMMsMsqIE0A0bpmlgEXbT0wvkKTRaAuP8TpATejfHkTF9bYzzDmhYYeRPYOl4lO62l/ ptEA== X-Gm-Message-State: AOAM532y/+mthnJKMInP1bgcULmQTwWa0El9u1bOoPwLSmoRQjUUbFoU l6etmOd+115GlhKI6XhsfK8Yxga4uiishGRC X-Google-Smtp-Source: ABdhPJwZYNd2Nc2CELxuBPZ+tNbfnprXkQHLmvlgSmD4hf1vEWNl7BKUzNHNk5tRRY5yGTtuiEu0fK7/lzwE1DOJ X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a7b:cf1a:: with SMTP id l26mr289880wmg.18.1605046367415; Tue, 10 Nov 2020 14:12:47 -0800 (PST) Date: Tue, 10 Nov 2020 23:10:39 +0100 In-Reply-To: Message-Id: <3d24722ca600b65a186a55ae47777a00a7c9407c.1605046192.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog Subject: [PATCH v9 42/44] kasan, arm64: enable CONFIG_KASAN_HW_TAGS From: Andrey Konovalov To: Catalin Marinas X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_171252_645187_CB2B37F6 X-CRM114-Status: GOOD ( 11.92 ) 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 Hardware tag-based KASAN is now ready, enable the configuration option. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Acked-by: Catalin Marinas Reviewed-by: Alexander Potapenko --- Change-Id: I6eb1eea770e6b61ad71c701231b8d815a7ccc853 --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 456741645f01..c35e73efd407 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -135,6 +135,7 @@ config ARM64 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 && !ARM64_MTE) + select HAVE_ARCH_KASAN_HW_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