[PATCH] arm64: process: Fix context switching MTE store-only tag check
Catalin Marinas
catalin.marinas at arm.com
Wed Aug 19 08:44:06 PDT 2026
On Wed, Aug 19, 2026 at 03:48:59PM +0100, Vladimir Murzin wrote:
> SCTLR_EL1.TCSO0 is set when user opt-in for MTE store-only tag check
> mode. However, it is not part of SCTLR_USER_MASK which imply that on
> context switch we never clear SCTLR_EL1.TCSO0, so we are leaking that
> setting into another task.
>
> Fix that by including SCTLR_EL1_TCSO0_MASK into SCTLR_USER_MASK
>
> Fixes: 4d51ff5bba00 ("arm64/kernel: Support store-only mte tag check")
> Signed-off-by: Vladimir Murzin <vladimir.murzin at arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list