]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: Validate that GCS push and write permissions work
authorMark Brown <broonie@kernel.org>
Sat, 5 Oct 2024 00:17:18 +0000 (01:17 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 16 Oct 2024 13:59:50 +0000 (14:59 +0100)
commit48f8d9cef766f8ed4bbccc0d759710262d34f40b
tree979d54e3ca499af1204f88b0cafc92c301ad2bca
parentbb9ae1a66c85eeb626864efd812c62026e126ec0
kselftest/arm64: Validate that GCS push and write permissions work

Add trivial assembly programs which give themselves the appropriate
permissions and then execute GCSPUSHM and GCSSTR, they will report errors
by generating signals on the non-permitted instructions. Not using libc
minimises the interaction with any policy set for the system but we skip on
failure to get the permissions in case the system is locked down to make
them inaccessible.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241005-arm64-gcs-test-flags-v1-1-03cb9786c5cd@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/gcs/.gitignore
tools/testing/selftests/arm64/gcs/Makefile
tools/testing/selftests/arm64/gcs/gcspushm.S [new file with mode: 0644]
tools/testing/selftests/arm64/gcs/gcsstr.S [new file with mode: 0644]