From patchwork Mon Nov 2 16:04:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11874439 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 D4834C388F2 for ; Mon, 2 Nov 2020 16:21: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 3D058222BA for ; Mon, 2 Nov 2020 16:21:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E4S+lrKx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="lP+3S3PA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D058222BA 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=aGCQeg2fnN9CY+g63axKmXbuVHYF8kD3JeXPeq+IYI4=; b=E4S+lrKxdFrtKFyBVll15Cgti ooje9KBUWp7YxiQI+Ed10xrEFV5N66linrKBCa4IJaDLHASWLVKQjGdV/ukBC2935dUfFY3WwzzfH ScD6MPq+b+xF8gx/hvozbzpCNwOXViCZJwM79f98bDyZppKuuciFBDkxzujxXV3M/fMr0QVEiGyxy P9U8rdF/Chv5nwEfG2SjzgD14TEw+vFsVOGUOWMaCXyYBLJ0B3piXBFpytxF5EMH0YyJ3Dci+sKnS 1N2sMaVpUiNTvcjCCit/mz4/kN4+ROZtYClB1QtgOi9IZETc+UH15H1htLrwgThVX8GcoRrkpDbAI GQ4slH+7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcZT-0006NR-9z; Mon, 02 Nov 2020 16:20:39 +0000 Received: from mail-qv1-xf49.google.com ([2607:f8b0:4864:20::f49]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcLM-00077n-TH for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 16:06:05 +0000 Received: by mail-qv1-xf49.google.com with SMTP id x10so3803789qvo.22 for ; Mon, 02 Nov 2020 08:06: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=hKqfeGmJU17yqcBnh9EcbhWo2RSZMPrdWdsmZezW6Y0=; b=lP+3S3PAzOk6QdimSCuz5M6/IFR3Lhc/8CgzmPNy3gXZxSsqS7FiT0qHNrN/FhKFY3 BOHfpSa799ZIHJUaTgolcBa+mV5zTRePgeYB80W3znS/E9DP/P95MUzfUz8AbjCbw8HR AA/ZnlGfgcE+ZnM7gMltS9luzbhl7RGW4Zrl8nucaxu+/3Z94S68qzAO0gmoXQ9CjSRK n+5pex0bZkyamEfjoPuVcKdfOZipfRRZejPSlM+5xKfiCpO2hjcp3Rea2ZVhe1TicJey AdVf8bv352T7PwSWdfOdg/LKs0GEAHIcHPbe+Ss08L1DhWO94AbTmHFZxk3sjZVaYMuY ztLA== 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=hKqfeGmJU17yqcBnh9EcbhWo2RSZMPrdWdsmZezW6Y0=; b=sA2eXC2IEO2j/ZWX4IFCnym6b23E1sLGJ0yuTNCHAcPRE/RRBo6Mbshf1z01yRQt0z wouV88rvQ/XxiepZ4ZzzO/dyQTBeHDqwrTwa5ebOxlVk9TfKEejinh2vCfAnRIS3Wltr AGf6EddIoXeyekn36VLRcNpxlZtXkuGu7tzT0NqBaY2CAmqowIBvrCS5qMKVeO5m1Y9U 3D4pyMrgbJOKHPSbJnT0DYobGPAb6u2zJJ5xFn8mWfbfLL9Q7g0+kfSsdEucNLs60Dm5 dK0OvUJb1guIR5vnw1B815Fnujk+1VjmWc+Mo0ZtoIaqdqtF8FglcIF+xyd7Onc2Irge Zc6g== X-Gm-Message-State: AOAM530f4AgSN5UbTJEpa+A8qo8LkAoVObnAw2f6NoV8xxpPN3IxPVGy bBZvd4Vmu0EZt1D2uHbBTZ4pX4rqim+EH3ZD X-Google-Smtp-Source: ABdhPJzbstwFvRivoWcDQ4DEVDj0GLFJDiXzeQimRnIEvXLMunhy4dHuyU7oKElTXpWHII0LyqM/Pu+a1fwp9xaM X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a0c:cdc2:: with SMTP id a2mr6570448qvn.16.1604333160936; Mon, 02 Nov 2020 08:06:00 -0800 (PST) Date: Mon, 2 Nov 2020 17:04:19 +0100 In-Reply-To: Message-Id: <4cd13fcf68a4b69ccdef7d8bf8e483a9a9abe244.1604333009.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v7 39/41] kasan, arm64: enable CONFIG_KASAN_HW_TAGS 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_110605_139010_ECFDD1BE X-CRM114-Status: GOOD ( 12.27 ) 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 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 --- Change-Id: I6eb1eea770e6b61ad71c701231b8d815a7ccc853 --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 43702780f28c..0996b5d75046 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