Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler-rt][hwasan] Support for new Intel LAM API
New version of Intel LAM patches (https://lore.kernel.org/linux-mm/20220712231328.5294-1-kirill.shutemov@linux.intel.com/) uses a different interface based on arch_prctl(): - arch_prctl(ARCH_GET_UNTAG_MASK, &mask) returns the current mask for untagging the pointers. We use it to detect kernel LAM support. - arch_prctl(ARCH_ENABLE_TAGGED_ADDR, nr_bits) enables pointer tagging for the current process. Because __NR_arch_prctl is defined in different headers, and no other platforms need it at the moment, we only declare internal_arch_prctl() on x86_64. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D129645
- Loading branch information
1 parent
cef0716
commit b191056
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters