Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas: - It turns out that the optimised string routines merged in 5.14 are not safe with in-kernel MTE (KASAN_HW_TAGS) because of reading beyond the end of a string (strcmp, strncmp). Such reading may go across a 16 byte tag granule and cause a tag check fault. When KASAN_HW_TAGS is enabled, use the generic strcmp/strncmp C implementation. - An errata workaround for ThunderX relied on the CPU capabilities being enabled in a specific order. This disappeared with the automatic generation of the cpucaps.h file (sorted alphabetically). Fix it by checking the current CPU only rather than the system-wide capability. - Add system_supports_mte() checks on the kernel entry/exit path and thread switching to avoid unnecessary barriers and function calls on systems where MTE is not supported. - kselftests: skip arm64 tests if the required features are missing. * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: Restore forced disabling of KPTI on ThunderX kselftest/arm64: signal: Skip tests if required features are missing arm64: Mitigate MTE issues with str{n}cmp() arm64: add MTE supported check to thread switching and syscall entry/exit
No related branches found
No related tags found
Showing
- arch/arm64/include/asm/assembler.h 5 additions, 0 deletionsarch/arm64/include/asm/assembler.h
- arch/arm64/include/asm/mte.h 6 additions, 0 deletionsarch/arm64/include/asm/mte.h
- arch/arm64/include/asm/string.h 2 additions, 0 deletionsarch/arm64/include/asm/string.h
- arch/arm64/kernel/cpufeature.c 6 additions, 2 deletionsarch/arm64/kernel/cpufeature.c
- arch/arm64/kernel/mte.c 4 additions, 6 deletionsarch/arm64/kernel/mte.c
- arch/arm64/lib/strcmp.S 1 addition, 1 deletionarch/arm64/lib/strcmp.S
- arch/arm64/lib/strncmp.S 1 addition, 1 deletionarch/arm64/lib/strncmp.S
- tools/testing/selftests/arm64/signal/test_signals_utils.c 5 additions, 2 deletionstools/testing/selftests/arm64/signal/test_signals_utils.c
Loading
Please register or sign in to comment