linux/tools/testing/selftests/arm64/mte
Mark Brown 55c8a987dd kselftest/arm64: Don't enable v8.5 for MTE selftest builds
Currently we set -march=armv8.5+memtag when building the MTE selftests,
allowing the compiler to emit v8.5 and MTE instructions for anything it
generates. This means that we may get code that will generate SIGILLs when
run on older systems rather than skipping on non-MTE systems as should be
the case. Most toolchains don't select any incompatible instructions but
I have seen some reports which suggest that some may be appearing which do
so. This is also potentially problematic in that if the compiler chooses to
emit any MTE instructions for the C code it may interfere with the MTE
usage we are trying to test.

Since the only reason we are specifying this option is to allow us to
assemble MTE instructions in mte_helper.S we can avoid these issues by
moving to using a .arch directive there and adding the -march explicitly to
the toolchain support check instead of the generic CFLAGS.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220928154517.173108-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2022-09-29 17:34:40 +01:00
..
.gitignore kselftest/arm64: Add simple test for MTE prctl 2022-04-28 17:57:11 +01:00
check_buffer_fill.c arm64: mte: style: Simplify bool comparison 2021-01-20 12:44:26 +00:00
check_child_memory.c kselftest/arm64: fix array_size.cocci warning 2022-04-28 17:57:13 +01:00
check_gcr_el1_cswitch.c kselftest/arm64: Remove local definitions of MTE prctls 2022-02-15 15:59:20 +00:00
check_ksm_options.c kselftest/arm64: mte: ksm_options: Fix fscanf warning 2021-03-23 16:36:30 +00:00
check_mmap_options.c kselftest/arm64: Fix check_mmap_options test 2020-10-28 13:42:23 +00:00
check_prctl.c kselftest/arm64: Add simple test for MTE prctl 2022-04-28 17:57:11 +01:00
check_tags_inclusion.c selftests/arm64: Remove casts to/from void in check_tags_inclusion 2022-05-15 11:07:54 +01:00
check_user_mem.c kselftest/arm64: mte: user_mem: test a wider range of values 2022-02-15 16:57:51 +00:00
Makefile kselftest/arm64: Don't enable v8.5 for MTE selftest builds 2022-09-29 17:34:40 +01:00
mte_common_util.c selftests/arm64: Use switch statements in mte_common_util.c 2022-05-15 11:07:54 +01:00
mte_common_util.h kselftest/arm64: Handle more kselftest result codes in MTE helpers 2022-04-28 17:57:10 +01:00
mte_def.h
mte_helper.S kselftest/arm64: Don't enable v8.5 for MTE selftest builds 2022-09-29 17:34:40 +01:00