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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,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 BFD8EC55179 for ; Fri, 6 Nov 2020 11:08:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1116F21707 for ; Fri, 6 Nov 2020 11:08:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1116F21707 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0F9F86B005C; Fri, 6 Nov 2020 06:08:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0A9956B005D; Fri, 6 Nov 2020 06:08:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED9936B0068; Fri, 6 Nov 2020 06:08:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0218.hostedemail.com [216.40.44.218]) by kanga.kvack.org (Postfix) with ESMTP id BEE226B005C for ; Fri, 6 Nov 2020 06:08:25 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 65841180AD806 for ; Fri, 6 Nov 2020 11:08:25 +0000 (UTC) X-FDA: 77453719770.16.ray82_410ada1272d2 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 45A7D100E6903 for ; Fri, 6 Nov 2020 11:08:25 +0000 (UTC) X-HE-Tag: ray82_410ada1272d2 X-Filterd-Recvd-Size: 2742 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Fri, 6 Nov 2020 11:08:24 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E412E147A; Fri, 6 Nov 2020 03:08:23 -0800 (PST) Received: from [10.37.12.46] (unknown [10.37.12.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 62E103F719; Fri, 6 Nov 2020 03:08:21 -0800 (PST) Subject: Re: [PATCH v8 30/43] arm64: kasan: Allow enabling in-kernel MTE To: Andrey Konovalov , Catalin Marinas Cc: Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev , Linux ARM , Linux Memory Management List , LKML References: <5e3c76cac4b161fe39e3fc8ace614400bc2fb5b1.1604531793.git.andreyknvl@google.com> <20201105172549.GE30030@gaia> <20201105173901.GH30030@gaia> From: Vincenzo Frascino Message-ID: Date: Fri, 6 Nov 2020 11:11:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Hi Catalin, On 11/5/20 6:09 PM, Andrey Konovalov wrote: >> Ah, I got there eventually in patch 38. Too many indirections ;) (I'm >> sure we could have trimmed them down a bit, hw_init_tags == >> arch_init_tags == mte_init_tags). > The idea with these indirections was to make hw_tags.c to not directly > call MTE stuff and abstract away the underlying memory tagging > implementation. We won't know for sure how fitting these abstractions > are before we add another memory tagging implementation though :) > I agree with Andrey, because in future the sparc architecture might want to support HW KASAN hence keeping a generic infrastructure adds some value. -- Regards, Vincenzo