kselftest/arm64: Add simple test for MTE prctl
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 10:32:43 +0000 (11:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:11 +0000 (17:57 +0100)
commite2d9642a5a5101a559e7d368a1df8e01e960096b
tree326b3249e41e406f981720aa3cc4a86de4090afc
parentf326c9a6f49b06c0a936d68ae23cb90899835c3b
kselftest/arm64: Add simple test for MTE prctl

The current tests use the prctls for various things but there's no
coverage of the edges of the interface so add some basics. This isn't
hugely useful as it is (it originally had some coverage for the
combinations with asymmetric mode but we removed the prctl() for that)
but it might be a helpful starting point for future work, for example
covering error handling.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220419103243.24774-5-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/.gitignore
tools/testing/selftests/arm64/mte/check_prctl.c [new file with mode: 0644]