[compiler-rt] [compiler-rt] [Darwin] Strip MTE tags from ASAN and TSAN (PR #166453)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 10:31:09 PST 2025
thurstond wrote:
> > Would `StripTag` be better off in sanitizer_common?
> > P.S. HWASan has a similar function, `UntagAddr`.
>
> This is true, but HWASan uses all 8 bits of TBI [63:56]; while MTE uses only [59:56].
Ah, good point!
> Perhaps `StripTag` should be named `StripMTEtag` in order to avoid future confusion?
Sure. I would also be partial to something like "UntagMTEAddr", for consistency with HWASan.
https://github.com/llvm/llvm-project/pull/166453
More information about the llvm-commits
mailing list