# Re: \[PATCH 19/22\] arm64: mte: Allow user control of the tag check mode via prctl()

- From: Catalin Marinas \<catalin.marinas@arm.com\>
- Date: 2020-02-12 11:45:23 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/02/6497529
- Thread: https://ratatoskr.run/linux-arm-kernel/2019/12/6496357/t.md

```text
On Fri, Dec 27, 2019 at 02:34:32PM +0000, Kevin Brodsky wrote:
> Not just related to this patch, but here goes. While trying to debug an
> MTE-enabled process, I realised that there's no way to tell the tagged addr
> / MTE thread configuration from outside of the thread. At this point I
> thought it'd be really nice if this were to be exposed in /proc/pid, maybe
> in /proc/pid/status. Unfortunately there seems to be no precedent for an
> arch-specific feature to be exposed there. I guess a ptrace call would work
> as well, although it wouldn't be as practical without using a debugger.

There is proc_pid_arch_status(), currently only used by x86 to report
the avx512 status. We could do the same on arm64 and provide information
information on the MTE status, SVE configuration, ptrauth. I think this
can be a separate patch covering all these.

-- 
Catalin

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