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.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 C5E55C433B4 for ; Mon, 26 Apr 2021 17:09:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 6883F610A2 for ; Mon, 26 Apr 2021 17:09:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6883F610A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IKI71SEgn6ldk8EEdU/kZ6b8l8iwO4Y4aaIA+954GsQ=; b=XQD3nZxzXMQhLghRWbLznjIKU VZPYZBm9Xhwz4i1ifgNTpSezb4P5BXQDAztUA9AD9/1B6LgeMvzIwrooGuYUDkhMkc4WUye8/9zXN cgTYOe3jCJ58hAJlNkVSa+bbKXmaudAFYKStCeF1vruHYl78QIumh3VQfZQLF4K0W9ZAcX7bxxTyJ rF2zK7J6AunJZqhBUnY7uBHdggppifPdrfpunWkgsbh/xq4iRdds22YZFwUw/NljT8OKoA4Z9kwob nURy322auKOxbwA1Lv4NJdqfDSGXFa51zw1A5xsAgmXbST4ah84tMBesLTBR6dA0ESQbMjGu6nqvU jz00GFzlw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lb4iC-0088ZH-Pj; Mon, 26 Apr 2021 17:07:57 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lb4i9-0088Z0-NH for linux-arm-kernel@desiato.infradead.org; Mon, 26 Apr 2021 17:07:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4Tqtq/uGcdJpDpFDZaaXAYVeLFmPm3f46SZdA+GU4ew=; b=BOX/4HGQmzVI7YH/BpP9oCHRxW m1EE7L9QX7nMo2A4cyp9A4jsfTSFhrmVM3bib0MO6lZKmb5ATwKKqtDEXTBzcDCOPY+wL1XmFFrtF 9jqsW2NifFXTFeHnTAmM9o2i572E2sGyAe8eLVu0HxIdImV5y5dn6pgX+3fYqktiQzmd7qnt1vb51 w/BuexGmdw2aqi0+DXgOO/cE3Ig2IX/se4XzZZLLWSoHAevhrcQ5unjmjjH/rTU7wC0MAxBK01LOK 7uq8TgvTJJHjF8+Qwroy6cPsv9ZpJlRxK/2RbRN1YccbMKU38jb9f+sMNJk8ICkj3XWb9tFwH90OK wYFt7e2g==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lb4i6-00G71c-S8 for linux-arm-kernel@lists.infradead.org; Mon, 26 Apr 2021 17:07:52 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BF886101B; Mon, 26 Apr 2021 17:07:49 +0000 (UTC) Date: Mon, 26 Apr 2021 18:07:46 +0100 From: Catalin Marinas To: Derrick McKee Cc: Vincenzo Frascino , Andrey Konovalov , Linux ARM Subject: Re: Removed MTE function Message-ID: <20210426170746.GH4985@arm.com> References: <20210402123415.GA2830@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210426_100750_966659_D5DF7DED X-CRM114-Status: GOOD ( 16.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 16, 2021 at 01:58:27PM -0400, Derrick McKee wrote: > On Fri, Apr 2, 2021 at 8:34 AM Catalin Marinas wrote: > > It was added in commit 85f49cae4dfc ("arm64: mte: add in-kernel MTE > > helpers") in 5.11 but moved out of mte.S by commit 2cb34276427a ("arm64: > > kasan: simplify and inline MTE functions") in 5.12 and renamed to > > mte_set_mem_tag_range(). Unfortunately, that commit did not delete the > > old function prototypes in mte.h. I'll clean it up next week, unless > > someone beats me to it with a patch. > > Ahh, ok, thanks for the information. > > > What do you need this function for? It's supposed to be used only by > > kasan, hence moved to mte-kasan.h. > > I am working on a research prototype attempting to harden kernel > modules using a combination of MTE and PAC. I'd actually be > interested in hearing how KASAN handles dynamic percpu allocations, > because that's been a challenge for me in this project. At a quick look, I don't think it does anything special. It relies on the page allocator to set a tag on the page and I presume it uses that tag. However, individual objects won't be tagged differently, nor the tag reset on free. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel