On Tue, Oct 18, 2022 at 09:59:34AM +0200, Jiri Olsa wrote: > The patchable_function_entry(5) might output 5 single nop > instructions (depends on toolchain), which will clash with > bpf_arch_text_poke check for 5 bytes nop instruction. > > Adding early init call for dispatcher that checks and change > the patchable entry into expected 5 nop instruction if needed. > > There's no need to take text_mutex, because we are using it > in early init call which is called at pre-smp time. > > Fixes: ceea991a019c ("bpf: Move bpf_dispatcher function out of ftrace locations") > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>