[PATCH 0/3] arm64: MTE cleanups
Mark Rutland
mark.rutland at arm.com
Wed Jul 14 07:38:40 PDT 2021
While working on moving the MTE entry code over to C, I spotted a few things
that could be improved more generally.
The first patch is a fix for a potential issue in some kernel configurations,
the second avoids redundant work to generate and load a compile-time constant,
and the third removes some redundant infrastructure for suprressing fault
reporting which made the architectural fault handling code confusing.
The entry bits may conflict with Peter's concurrent rework there; I can rebase
this series as required.
Thanks,
Mark.
Mark Rutland (3):
arm64: mte: fix restoration of GCR_EL1 from suspend
arm64: kasan: mte: use a constant kernel GCR_EL1 value
arm64: kasan: mte: remove redundant mte_report_once logic
arch/arm64/include/asm/memory.h | 2 --
arch/arm64/include/asm/mte-kasan.h | 17 ------------
arch/arm64/include/asm/mte.h | 6 -----
arch/arm64/include/asm/sysreg.h | 16 +++++++++++
arch/arm64/kernel/entry.S | 5 ++--
arch/arm64/kernel/mte.c | 54 --------------------------------------
arch/arm64/kernel/suspend.c | 1 -
arch/arm64/mm/fault.c | 15 +----------
arch/arm64/mm/proc.S | 3 +--
include/linux/kasan-tags.h | 15 +++++++++++
lib/test_kasan.c | 2 --
mm/kasan/hw_tags.c | 8 ------
mm/kasan/kasan.h | 22 +---------------
13 files changed, 36 insertions(+), 130 deletions(-)
create mode 100644 include/linux/kasan-tags.h
--
2.11.0
More information about the linux-arm-kernel
mailing list