# Re: \[PATCH 00/35\] kasan: add hardware tag-based mode for arm64

- From: Derrick McKee \<hidden\>
- Date: 2020-09-14 19:07:53 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/09/8798968
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/08/6068760/t/2.md

```text
> This patchset adds a new hardware tag-based mode to KASAN [1]. The new mode
> is similar to the existing software tag-based KASAN, but relies on arm64
> Memory Tagging Extension (MTE) [2] to perform memory and pointer tagging
> (instead of shadow memory and compiler instrumentation).

What does one need to do to enable MTE in the kernel?  I am trying to color some kernel module data, but when I call mte_get_mem_tag after calling mte_set_mem_tag_range, I get an invalid value.  I have assured that mte_assign_mem_tag_range has been called in mte_set_mem_tag_range, so the initial sanity checks pass.  Thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
