]> git.ipfire.org Git - thirdparty/linux.git/commit
kselftest: arm64: Check access to GCS after mprotect(PROT_NONE)
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 23 Feb 2026 17:45:32 +0000 (17:45 +0000)
committerWill Deacon <will@kernel.org>
Wed, 25 Feb 2026 19:53:58 +0000 (19:53 +0000)
commit9d1a7c4a457eac8a7e07e1685f95e54fa551db5e
treee91c832fe5059c0c6f30aa574219f01ee14cf28e
parent47a8aad135ac1aed04b7b0c0a8157fd208075827
kselftest: arm64: Check access to GCS after mprotect(PROT_NONE)

A GCS mapping should not be accessible after mprotect(PROT_NONE). Add a
kselftest for this scenario.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: David Hildenbrand <david@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/signal/testcases/gcs_prot_none_fault.c [new file with mode: 0644]