HomeFreeBSD

arm64: mte: handle synchronous tag check faults

Description

arm64: mte: handle synchronous tag check faults

The Memory Tagging Extension supports both Synchronous and Asynchronous
faults, called Tag Check Faults, which are configurable via
SCTLR_EL1.TCF0 for userspace and SCTLR_EL1.TCF for the kernel.

This commit adds support for handling synchronous tag check faults at
EL0 and EL1, although these are only enabled on a per-process basis in
userspace, kernel space does not enable tag check faults. A TCF in the
kernel will cause a kernel panic like any other virtual memory fault,
and a TCF in userspace will result in a SIGSEGV

Reviewed by: kib
Sponsored by: Arm Ltd
Signed-off-by: Harry Moulton <harry.moulton@arm.com>
Differential Revision: https://reviews.freebsd.org/D55947

Details

Provenance
harry.moulton_arm.comAuthored on Apr 16 2026, 1:29 PM
andrewCommitted on Apr 16 2026, 2:22 PM
Reviewer
kib
Differential Revision
D55947: arm64: mte: handle synchronous tag check faults
Parents
rG8728e21bd694: clk_fixed: quiet a warning message
Branches
Unknown
Tags
Unknown