Home
last modified time | relevance | path

Searched hist:"1 c3b614548b50227c5950258831b130d832703b5" (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/arm64/bti/
H A Dtest.cdiff 1c3b614548b50227c5950258831b130d832703b5 Tue Jan 10 21:49:59 CET 2023 Mark Brown <broonie@kernel.org> kselftest/arm64: Run BTI selftests on systems without BTI

The BTI selftests are built both with and without BTI support, validating
both the generation of BTI signals as expected for binaries without BTI
support. Both versions of the binary currently skip all their tests when
the system does not support BTI, however this is excessive since we do have
a defined ABI for how the programs should function in this case (especially
for the non-BTI binary). Update the test program to run all the tests
unconditionally, adding a runtime adjustment of the expected results on
systems that don't support BTI where we currently handle the build time
case.

The tests all use HINT space instructions, BTI itself is a HINT as is
are the PAC instructions that function as landing pads, so nothing in the
tests depends on support for BTI in the kernel or hardware.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230110-arm64-bti-selftest-skip-v1-2-143ecdc84567@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>