]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbda8edd6e6dad6c547f18d6b6f38fd9841af0bb3
tree326b3249e41e406f981720aa3cc4a86de4090afc
parent0eaabdf6e22696f766bcd75bccdee509a2d90978
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]