Skip to content
  • Vincenzo Frascino's avatar
    arm64: mte: Add asynchronous mode support · 6c4e0198
    Vincenzo Frascino authored
    
    
    MTE provides an asynchronous mode for detecting tag exceptions. In
    particular instead of triggering a fault the arm64 core updates a
    register which is checked by the kernel after the asynchronous tag
    check fault has occurred.
    
    Add support for MTE asynchronous mode.
    
    The exception handling mechanism will be added with a future patch.
    
    Note: KASAN HW activates async mode via kasan.mode kernel parameter.
    The default mode is set to synchronous.
    The code that verifies the status of TFSR_EL1 will be added with a
    future patch.
    
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will@kernel.org>
    Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Reviewed-by: default avatarAndrey Konovalov <andreyknvl@google.com>
    Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
    6c4e0198