summaryrefslogtreecommitdiffstats
path: root/arch/parisc/defpalo.conf
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2019-10-02 10:49:35 +0100
committerWill Deacon <will@kernel.org>2019-10-04 11:44:05 +0100
commitdd8a1f13488438c6c220b7cafa500baaf21a6e53 (patch)
treeb7b2acb8ff0eab645c69150cece3d6415bd996e8 /arch/parisc/defpalo.conf
parentf46f27a576cc3b1e3d45ea50bc06287aa46b04b2 (diff)
downloadlinux-dd8a1f13488438c6c220b7cafa500baaf21a6e53.tar.bz2
arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419
CPUs affected by Neoverse-N1 #1542419 may execute a stale instruction if it was recently modified. The affected sequence requires freshly written instructions to be executable before a branch to them is updated. There are very few places in the kernel that modify executable text, all but one come with sufficient synchronisation: * The module loader's flush_module_icache() calls flush_icache_range(), which does a kick_all_cpus_sync() * bpf_int_jit_compile() calls flush_icache_range(). * Kprobes calls aarch64_insn_patch_text(), which does its work in stop_machine(). * static keys and ftrace both patch between nops and branches to existing kernel code (not generated code). The affected sequence is the interaction between ftrace and modules. The module PLT is cleaned using __flush_icache_range() as the trampoline shouldn't be executable until we update the branch to it. Drop the double-underscore so that this path runs kick_all_cpus_sync() too. Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/parisc/defpalo.conf')
0 files changed, 0 insertions, 0 deletions