[compiler-rt][hwasan] Support for Intel LAM v6 API
authorAlexander Potapenko <glider@google.com>
Wed, 24 Aug 2022 09:58:59 +0000 (11:58 +0200)
committerAlexander Potapenko <glider@google.com>
Fri, 26 Aug 2022 08:21:18 +0000 (10:21 +0200)
commit5d82819583b241e092b3529e4f52239f6f18afaf
tree1b812650c33d395b23b1a31d156c44830bfd6b2a
parent5fef4c6d397cbf9d6a41d42299b55b0cfddc7d12
[compiler-rt][hwasan] Support for Intel LAM v6 API

Version 6 of Intel LAM kernel patches
(https://lore.kernel.org/all/20220815041803.17954-1-kirill.shutemov@linux.intel.com/)
introduces arch_prctl(ARCH_GET_MAX_TAG_BITS), which (unlike
ARCH_GET_UNTAG_MASK) can be used to determine if the kernel really
supports pointer tagging. arch_prctl(ARCH_GET_UNTAG_MASK) will be used to
verify that HWASan can place tags in the given bit range.

Depends on D132545

Differential Revision: https://reviews.llvm.org/D132546
compiler-rt/lib/hwasan/hwasan_linux.cpp