Removed MTE function

Catalin Marinas catalin.marinas at arm.com
Fri Apr 2 13:34:16 BST 2021


On Fri, Apr 02, 2021 at 07:26:12AM -0400, Derrick McKee wrote:
> I was under the impression that MTE was mainlined in the kernel.
> However, the function mte_assign_mem_tag_range is not present in the
> 5.10 or later kernels.  Was it removed or just that functionality
> isn't ready yet?  If it was removed, why?  Thanks.

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.

What do you need this function for? It's supposed to be used only by
kasan, hence moved to mte-kasan.h.

-- 
Catalin



More information about the linux-arm-kernel mailing list