• Will Deacon's avatar
    arm64: insn: Don't fallback on nosync path for general insn patching · 693350a7
    Will Deacon authored
    Patching kernel instructions at runtime requires other CPUs to undergo
    a context synchronisation event via an explicit ISB or an IPI in order
    to ensure that the new instructions are visible. This is required even
    for "hotpatch" instructions such as NOP and BL, so avoid optimising in
    this case and always go via stop_machine() when performing general
    patching.
    
    ftrace isn't quite as strict, so it can continue to call the nosync
    code directly.
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    693350a7
insn.c 38.7 KB