]> git.baikalelectronics.ru Git - kernel.git/commit
kselftests/arm64: add PAuth test for whether exec() changes keys
authorBoyan Karatotev <boyan.karatotev@arm.com>
Fri, 18 Sep 2020 10:47:14 +0000 (11:47 +0100)
committerWill Deacon <will@kernel.org>
Fri, 18 Sep 2020 13:07:20 +0000 (14:07 +0100)
commit87e95e1915e3abb92f78102d8da388d08336ea91
tree0ddc50374e95dfd8ff729d024df26b2b2f6a7fa0
parent8c8b97fc81e48849784523bea2bf8fae463a8110
kselftests/arm64: add PAuth test for whether exec() changes keys

Kernel documentation states that it will change PAuth keys on exec() calls.

Verify that all keys are correctly switched to new ones.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Reviewed-by: Vincenzo Frascino <Vincenzo.Frascino@arm.com>
Reviewed-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200918104715.182310-4-boian4o1@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/pauth/Makefile
tools/testing/selftests/arm64/pauth/exec_target.c [new file with mode: 0644]
tools/testing/selftests/arm64/pauth/helper.h
tools/testing/selftests/arm64/pauth/pac.c