]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kselftests/arm64: add nop checks for PAuth tests
authorBoyan Karatotev <boyan.karatotev@arm.com>
Fri, 18 Sep 2020 10:47:13 +0000 (11:47 +0100)
committerWill Deacon <will@kernel.org>
Fri, 18 Sep 2020 13:07:20 +0000 (14:07 +0100)
commit766d95b1ed93ebdd07ac87490e60e442342f5dc4
treed291ee57f1e0b0ec7a1d1b429685ba5970f1daf8
parente74e1d55728509b352e4eec4283dd5b2781b2070
kselftests/arm64: add nop checks for PAuth tests

PAuth adds sign/verify controls to enable and disable groups of
instructions in hardware for compatibility with libraries that do not
implement PAuth. The kernel always enables them if it detects PAuth.

Add a test that checks that each group of instructions is enabled, if the
kernel reports PAuth as detected.

Note: For groups, for the purpose of this patch, we intend instructions
that use a certain key.

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-3-boian4o1@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/pauth/.gitignore
tools/testing/selftests/arm64/pauth/Makefile
tools/testing/selftests/arm64/pauth/helper.c [new file with mode: 0644]
tools/testing/selftests/arm64/pauth/helper.h
tools/testing/selftests/arm64/pauth/pac.c