From patchwork Mon Nov 23 20:08:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11926649 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,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 81F96C63697 for ; Mon, 23 Nov 2020 20:28:36 +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 E800D20715 for ; Mon, 23 Nov 2020 20:28:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q5SLqdkY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="g6p3MpVR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E800D20715 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=JnYUt5xwFByKa9tihbywc8rYWQUTRj9s2RWnWwolrFM=; b=q5SLqdkY/qMBEF58MqAS5S/Zt iWWHCXL1L8NbeedG2fQ13iR+/l1JKi9L7Ym/bo2CvifK9vWvJlADum95gE1FljJ0eE6JyBQ1Ho6ay NdZnofq1WPAQyuIBHpOrPzoU8K6IJmS8Fw8y/NmjFztXhhL0HGmJxdG52fLW0KUmaZ8Cz3iAAUAAF 9iL3XtqGOguY8y1aKtZl1JbTR8ElR68MR3VFzzJc/cbGCwQNhCM7wqPvYWCdGkR9Sy7NBlhknfQBo HdUNmKz0MJcIsUpt9HRIrlWooQwo8Dqbl30g32lAguBQ38eSwjf7mtdvTPIgK8asEnfpt8+oi60NW bJVuz+raw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khIQJ-0007G2-Ms; Mon, 23 Nov 2020 20:26:55 +0000 Received: from mail-wr1-x44a.google.com ([2a00:1450:4864:20::44a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khIA4-00005t-FG for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2020 20:10:24 +0000 Received: by mail-wr1-x44a.google.com with SMTP id 91so6173619wrk.17 for ; Mon, 23 Nov 2020 12:10:03 -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=1oyed09tnLn/236j8JDGEir64Vx4l4zK2tXQ+JJGy2k=; b=g6p3MpVRFNugh2L7hizN06zIIfIYyEjGqmufxVc6I/VCfN3xjEtWhmXXw/t7UMDWmU 2R9j6wg3HYP35okiu7IAw9kV6/d7bfRwWgxNOP4xMswqENS3P1YaN2LeqTY4FAxIYvZh bV9HKcDXdW1JaRnBpe4+0cekqMESTZPo2kqBkXPoznLe3yLSGHhrRPSeCkapNm1K8v84 YngfX/g1nYL8YVTEb+Uh6+isjIfu3aUsAvUW3H2Y4Ifg+36q3i1vJAnQIy0yxYPYiivE HmlQLeHuoB1Ok8V+FO/Zls0hxLKCWmhbYDH5Y96nsJ7VibSYKzEdHfB6E26Pihu9nJRy NNSw== 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=1oyed09tnLn/236j8JDGEir64Vx4l4zK2tXQ+JJGy2k=; b=VlqsxWBMzparW1NLSq76jP9gND0FuW1LcC6eu1fHtrzVp78IXJ0fojwB3rgUhf6wpi X5Dvgzq1duybjdb8NoX06Akgzin2P7tv/ARxYSSQVS2MWe9koqOShezYIp9KmCeaO3ql bKJc4Yx6/iY26FVsi1eKC4Mn/v6scW1h0SxJfO1h/oiDm655DneIyP/N3pFqbDqzQ5yM rjLBlOtCKOOFafq5PmpHhAGZmjkST4jZJPAqi4XGfCUS/i7g96eSnatuson46VseNo06 1EAaMMZCtNPf3V5HMDjAGZM6zW19zgnLbcDonsb98W88btGpR9ChB8Q6+ACeIaESd8mm Pe6A== X-Gm-Message-State: AOAM533YGV8bbUEPg/i1CiuGzvmUXp2q7YklOeMSmpQJsaEaH8946Rgi FKzOuR7yaSebI8Fwm9g6kiWsqqv/ovXn0OTO X-Google-Smtp-Source: ABdhPJyu98ta+zlqR5Nfx7KItzrdWn82jpVjdunNQKNKXzdi8aeJFMArebrtwrSgUc54b8ojcy1YG4LsdpG6QrXl X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:600c:d1:: with SMTP id u17mr606599wmm.38.1606162201852; Mon, 23 Nov 2020 12:10:01 -0800 (PST) Date: Mon, 23 Nov 2020 21:08:04 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH mm v11 40/42] kasan, arm64: enable CONFIG_KASAN_HW_TAGS From: Andrey Konovalov To: Andrew Morton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_151008_598252_B28CF1B6 X-CRM114-Status: GOOD ( 12.58 ) 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 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 434247e14814..6fefab9041d8 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -136,6 +136,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_KFENCE select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS