Files
linux/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-05-22 20:44:29 +01:00
2022-07-05 20:25:39 +02:00
2022-10-03 20:09:22 +02:00
2022-07-14 12:14:30 -06: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-06-28 10:37:25 -03:00
2022-07-01 14:53:01 +02:00
2022-06-03 06:52:57 -07:00
2022-08-31 14:57:28 +01:00
2022-06-09 21:53:09 -07:00
2022-06-09 21:53:12 -07:00
2022-06-09 21:53:09 -07:00
2022-09-26 10:13:15 -07:00
2022-06-27 06:29:12 -06:00
2022-06-29 17:42:28 -07:00
2022-07-17 17:31:38 -07:00
2022-05-03 16:09:03 -04:00
2022-06-19 10:38:26 +01:00
2022-07-27 14:04:52 +02:00
2022-08-28 14:02:44 -07:00
2022-07-29 18:07:19 -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-05-17 13:32:46 -04:00
2022-08-09 14:11:34 -04:00
2022-07-29 20:16:58 -04:00
2022-10-03 17:34:32 -07:00
2022-07-01 16:38:35 -06:00
2022-09-26 10:13:15 -07:00
2022-05-22 21:03:01 +01:00
2022-06-27 14:41:31 +02:00
2022-09-30 12:31:46 +01:00
2022-05-08 01:33:08 -07: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
2022-06-13 09:54:52 -07:00
2022-07-10 21:17:30 -04:00