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: 11926435 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.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,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 D9509C83016 for ; Mon, 23 Nov 2020 20:10:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6C19F20715 for ; Mon, 23 Nov 2020 20:10:06 +0000 (UTC) Authentication-Results: mail.kernel.org; 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 6C19F20715 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 465516B00C6; Mon, 23 Nov 2020 15:10:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A35C6B00C8; Mon, 23 Nov 2020 15:10:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 220CA6B00C9; Mon, 23 Nov 2020 15:10:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0069.hostedemail.com [216.40.44.69]) by kanga.kvack.org (Postfix) with ESMTP id D79236B00C6 for ; Mon, 23 Nov 2020 15:10:03 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 80D21181AEF1D for ; Mon, 23 Nov 2020 20:10:03 +0000 (UTC) X-FDA: 77516774286.18.nut51_2f08e0127368 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 41773100ED3A9 for ; Mon, 23 Nov 2020 20:10:03 +0000 (UTC) X-HE-Tag: nut51_2f08e0127368 X-Filterd-Recvd-Size: 4315 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Nov 2020 20:10:02 +0000 (UTC) Received: by mail-wm1-f74.google.com with SMTP id o17so142786wmd.9 for ; Mon, 23 Nov 2020 12:10:02 -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=qMHpcMIvNugrQKuCHjp2AGdfiJRx2P0snuITGt3n94Znv7IeLW8YDWwIHbqQ1BtDCq vkQicQRs22gQe0JQl9R8Oxqg4lVLD0Q9z3Bz70NAfY4yAnZbIINL4E+Ewx37hhKLb90e KU+TqrfrqpIYJkITCuMLFWtpYBacMpAl7uBqB5Yu+NLBXW+mrKChBhCwCqAXu48r2FiC sS6r/n+fVoy3cs5UEUo8EqnAM5oWVe6TKAa7JZj8Y9yZsGFE3+azNucj7ExYYZQ/AL/0 gCagTHkmpJDuZs4hAA3B2NxkfdVbSm1HnkHdRwCSEzXuoKpN0oLhW+vtkFWfZ0tR9Uj0 Z5RQ== X-Gm-Message-State: AOAM531fvRbESOhRBFjma12qQkqLF51lXMYG2K6l7iBpyM2V6Fo4zLLY V91t1DDpdikB04awaQhb13qhD/Bl+qIF7j8G 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 Cc: Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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