-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a C source that checks if the kernel has Aarch64 tagged address ABI. CMake will then enable or disable hwasan tests depending on the result of that test in configure time.
- Loading branch information
Jesus Checa Hidalgo
committed
Jul 19, 2023
1 parent
bf16a99
commit e7f4031
Showing
5 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This simple program checks if the kernel running the testsuite has support | ||
* for tagged address ABI, needed to test hardware assisted address sanitizer. | ||
* https://www.kernel.org/doc/html/next/arm64/tagged-address-abi.html | ||
* | ||
* The program returns 0 if the kernel supports tagged address ABI. | ||
*/ | ||
|
||
#include <sys/prctl.h> | ||
int main(void) | ||
{ | ||
return prctl(PR_GET_TAGGED_ADDR_CTRL, 0,0,0,0); | ||
} | ||
|
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