From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 B20B3C388F7 for ; Fri, 13 Nov 2020 12:06:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62FE32078B for ; Fri, 13 Nov 2020 12:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbgKMMGU (ORCPT ); Fri, 13 Nov 2020 07:06:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:44566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbgKMMGT (ORCPT ); Fri, 13 Nov 2020 07:06:19 -0500 Received: from gaia (unknown [2.26.170.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FD642224B; Fri, 13 Nov 2020 12:00:03 +0000 (UTC) Date: Fri, 13 Nov 2020 12:00:01 +0000 From: Catalin Marinas To: Vincenzo Frascino Cc: Andrey Konovalov , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 30/44] arm64: kasan: Allow enabling in-kernel MTE Message-ID: <20201113120000.GB3212@gaia> References: <5ce2fc45920e59623a4a9d8d39b6c96792f1e055.1605046192.git.andreyknvl@google.com> <20201112094354.GF29613@gaia> <66ef4957-f399-4af1-eec5-d5782551e995@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66ef4957-f399-4af1-eec5-d5782551e995@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 11:17:15AM +0000, Vincenzo Frascino wrote: > On 11/12/20 9:43 AM, Catalin Marinas wrote: > > On Tue, Nov 10, 2020 at 11:10:27PM +0100, Andrey Konovalov wrote: > >> From: Vincenzo Frascino > >> > >> Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) > >> feature and requires it to be enabled. MTE supports > >> > >> This patch adds a new mte_init_tags() helper, that enables MTE in > >> Synchronous mode in EL1 and is intended to be called from KASAN runtime > >> during initialization. > > > > There's no mte_init_tags() in this function. > > During the rework, I realized that the description of mte_init_tags() in this > patch refers to mte_enable_kernel(). In fact the only thing that mte_init_tags() > does is to configure the GCR_EL1 register, hence my preference would be to keep > all the code that deals with such a register in one patch. Fine by me as long as the commit text is consistent with the diff. -- Catalin