Files
linux-st/include/linux
Jiri Olsa dbe69b2998 bpf: Fix dispatcher patchable function entry to 5 bytes nop
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: ceea991a01 ("bpf: Move bpf_dispatcher function out of ftrace locations")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221018075934.574415-1-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-10-20 18:57:51 -07:00
..
2022-09-30 20:05:16 +02:00
2022-10-03 20:09:22 +02:00
2022-09-26 10:13:13 -07:00
2022-09-26 10:13:13 -07:00
2022-09-26 10:13:14 -07:00
2022-08-31 14:57:28 +01:00
2022-09-26 10:13:15 -07:00
2022-08-28 14:02:44 -07:00
2022-09-26 10:13:13 -07:00
2022-08-02 12:34:04 -04:00
2022-08-22 14:26:30 +01:00
2022-08-09 14:11:34 -04:00
2022-10-03 17:34:32 -07:00
2022-09-26 10:13:15 -07:00
2022-09-30 12:31:46 +01:00
2022-09-01 11:42:12 +01:00
2022-09-16 10:56:08 +01:00
2022-08-11 04:31:14 -04:00