Skip to content

arm64: MTE cleanups

Mark Rutland linux-arm-kernel 1 version Applied

Status from this message: Applied patch 1 only to arm64 (for-next/fixes), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: mte: fix restoration of GCR_EL1 from suspendarch/arm64/kernel/mte.c+2 -130 replies
2/3arm64: kasan: mte: use a constant kernel GCR_EL1 valuearch/arm64/include/asm/memory.h arch/arm64/include/asm/mte-kasan.h arch/arm64/include/asm/mte.h +8 more+35 -652 replies
3/3arm64: kasan: mte: remove redundant mte_report_once logicarch/arm64/include/asm/memory.h arch/arm64/include/asm/mte-kasan.h arch/arm64/kernel/mte.c +4 more+1 -546 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchCatalin MarinasAndrey Konovalov
1/3
2/3R-b R-b T-b
3/3R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] arm64: MTE cleanups

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
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel