diff options
author | Boyan Karatotev <[email protected]> | 2020-09-18 11:47:12 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-09-18 14:07:20 +0100 |
commit | e74e1d55728509b352e4eec4283dd5b2781b2070 (patch) | |
tree | ed513f9ab64382c5be64d0ab5ff995bb07a4b21c /scripts/gdb/linux/modules.py | |
parent | f75aef392f869018f78cfedf3c320a6b3fcfda6b (diff) |
kselftests/arm64: add a basic Pointer Authentication test
PAuth signs and verifies return addresses on the stack. It does so by
inserting a Pointer Authentication code (PAC) into some of the unused top
bits of an address. This is achieved by adding paciasp/autiasp instructions
at the beginning and end of a function.
This feature is partially backwards compatible with earlier versions of the
ARM architecture. To coerce the compiler into emitting fully backwards
compatible code the main file is compiled to target an earlier ARM version.
This allows the tests to check for the feature and print meaningful error
messages instead of crashing.
Add a test to verify that corrupting the return address results in a
SIGSEGV on return.
Signed-off-by: Boyan Karatotev <[email protected]>
Reviewed-by: Vincenzo Frascino <[email protected]>
Reviewed-by: Amit Daniel Kachhap <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions