Skip to content
Commit 693350a7 authored by Will Deacon's avatar Will Deacon
Browse files

arm64: insn: Don't fallback on nosync path for general insn patching



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>
parent 3b8c9f1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment