Jiri Olsa
7fb27a56b9
selftests/bpf: Do not attach kprobe_multi bench to bpf_dispatcher_xdp_func
...
Alexei reported crash by running test_progs -j on system
with 32 cpus.
It turned out the kprobe_multi bench test that attaches all
ftrace-able functions will race with bpf_dispatcher_update,
that calls bpf_arch_text_poke on bpf_dispatcher_xdp_func,
which is ftrace-able function.
Ftrace is not aware of this update so this will cause
ftrace_bug with:
WARNING: CPU: 6 PID: 1985 at
arch/x86/kernel/ftrace.c:94 ftrace_verify_code+0x27/0x50
...
ftrace_replace_code+0xa3/0x170
ftrace_modify_all_code+0xbd/0x150
ftrace_startup_enable+0x3f/0x50
ftrace_startup+0x98/0xf0
register_ftrace_function+0x20/0x60
register_fprobe_ips+0xbb/0xd0
bpf_kprobe_multi_link_attach+0x179/0x430
__sys_bpf+0x18a1/0x2440
...
------------[ ftrace bug ]------------
ftrace failed to modify
[<ffffffff818d9380>] bpf_dispatcher_xdp_func+0x0/0x10
actual: ffffffe9:7b:ffffff9c:77:1e
Setting ftrace call site to call ftrace function
It looks like we need some way to hide some functions
from ftrace, but meanwhile we workaround this by skipping
bpf_dispatcher_xdp_func from kprobe_multi bench test.
Reported-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: Jiri Olsa <jolsa@kernel.org >
Signed-off-by: Andrii Nakryiko <andrii@kernel.org >
Acked-by: Yonghong Song <yhs@fb.com >
Link: https://lore.kernel.org/bpf/20220714082316.479181-1-jolsa@kernel.org
2022-07-14 22:34:46 -07:00
..
2022-03-03 16:54:10 +01:00
2022-04-10 20:08:20 -07:00
2021-02-08 17:55:01 -08:00
2022-02-28 16:28:40 +01:00
2022-06-16 19:27:30 -07:00
2022-03-16 15:07:49 -07:00
2021-11-25 23:37:38 +01:00
2022-06-16 19:42:21 -07:00
2022-01-18 15:45:06 -08:00
2021-10-08 15:17:00 -07:00
2022-07-12 15:27:19 -07:00
2022-06-20 17:40:52 -07:00
2022-04-18 21:22:13 -07:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2022-06-23 09:49:58 -07:00
2021-12-02 15:23:40 -08:00
2021-12-08 23:05:26 -08:00
2022-03-01 13:41:48 +01:00
2021-10-25 20:39:42 -07:00
2021-08-16 18:38:52 -07:00
2021-12-16 21:41:18 +01:00
2021-11-11 16:54:06 -08:00
2022-03-05 18:39:51 -08:00
2022-06-07 10:20:43 -07:00
2022-06-28 13:13:33 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-01-19 12:51:30 -08:00
2021-10-08 15:17:00 -07:00
2021-05-25 17:32:35 -07:00
2021-10-08 15:10:43 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2022-05-13 15:15:21 +02:00
2022-02-04 11:29:01 -08:00
2022-02-04 11:29:01 -08:00
2022-07-08 14:27:03 +02:00
2022-05-13 15:15:21 +02:00
2022-03-05 09:38:15 -08:00
2022-01-19 01:27:03 +01:00
2022-03-30 19:31:30 -07:00
2022-05-23 14:31:29 -07:00
2021-11-08 22:17:55 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-06-07 10:41:20 -07:00
2021-10-28 16:30:07 -07:00
2022-06-02 16:26:40 -07:00
2022-02-02 22:31:18 -08:00
2022-03-08 17:39:29 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:24 -08:00
2022-02-02 22:31:18 -08:00
2022-05-13 15:15:21 +02:00
2021-10-25 21:43:05 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-03-28 20:00:11 -07:00
2022-01-25 17:59:07 -08:00
2022-01-12 17:01:38 -08:00
2022-03-15 17:03:10 +01:00
2022-02-02 22:31:18 -08:00
2021-05-25 17:32:35 -07:00
2022-04-19 13:48:20 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-07-14 22:34:46 -07:00
2022-04-06 10:32:12 -07:00
2022-02-08 21:17:34 +01:00
2022-02-02 22:31:18 -08:00
2021-11-25 23:05:23 +01:00
2021-12-17 23:11:13 +01:00
2022-06-02 16:26:36 -07:00
2021-05-25 17:32:35 -07:00
2022-04-26 15:41:46 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2021-11-07 08:34:23 -08:00
2022-03-03 16:54:10 +01:00
2022-04-28 20:03:29 -07:00
2022-05-13 15:15:21 +02:00
2022-07-08 23:01:26 +02:00
2022-05-13 15:15:21 +02:00
2022-02-02 22:31:18 -08:00
2022-05-20 15:07:41 -07:00
2022-02-02 22:31:18 -08:00
2021-11-07 09:14:15 -08:00
2021-04-08 23:54:48 -07:00
2022-02-02 22:31:18 -08:00
2021-10-08 13:22:57 -07:00
2022-05-20 15:36:48 -07:00
2022-04-06 10:15:53 -07:00
2021-08-24 14:17:53 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2022-03-08 17:39:28 -08:00
2021-11-11 16:54:05 -08:00
2021-05-25 17:32:35 -07:00
2022-03-08 17:39:28 -08:00
2021-11-25 23:37:38 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-10-08 15:17:00 -07:00
2021-11-28 22:24:57 -08:00
2022-02-02 22:31:18 -08:00
2022-04-18 21:22:13 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-21 17:10:11 -07:00
2021-10-06 12:34:02 -07:00
2022-04-19 13:48:20 -07:00
2022-06-29 13:21:52 -07:00
2022-05-09 17:15:32 +02:00
2021-10-28 16:30:07 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-03-11 22:18:13 +01:00
2022-02-02 22:31:18 -08:00
2021-09-28 13:51:19 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-04-20 23:48:34 +02:00
2021-10-21 15:11:06 -07:00
2021-10-21 17:10:10 -07:00
2021-10-08 15:17:00 -07:00
2022-04-11 17:18:09 +02:00
2022-06-23 10:52:12 -07:00
2021-02-11 17:44:41 -08:00
2022-02-02 22:31:18 -08:00
2022-06-24 11:21:50 -07:00
2022-01-12 17:01:38 -08:00
2021-12-14 14:38:05 -08:00
2021-12-02 15:23:40 -08:00
2021-08-20 01:10:01 +02:00
2022-01-19 13:05:13 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-02-10 11:05:34 -08:00
2022-05-13 15:15:21 +02:00
2022-05-13 15:15:21 +02:00
2021-12-14 14:38:05 -08:00
2022-03-20 19:16:50 -07:00
2021-12-14 14:38:05 -08:00
2021-05-13 17:23:57 -07:00
2022-03-16 15:13:36 -07:00
2022-03-17 23:12:48 -07:00
2022-02-02 22:31:18 -08:00
2022-06-16 21:49:05 +02:00
2021-11-07 08:34:23 -08:00
2021-11-07 08:34:23 -08:00
2021-02-26 11:51:48 -08:00
2022-01-26 20:04:01 -08:00
2021-05-17 17:52:20 +02:00
2022-06-03 14:53:33 -07:00
2021-11-07 08:34:23 -08:00
2021-05-25 17:32:35 -07:00
2021-12-02 15:23:40 -08:00
2022-02-08 21:45:06 -08:00
2021-11-26 00:15:03 +01:00
2022-04-06 10:32:12 -07:00
2022-03-10 18:57:55 -08:00
2021-12-29 17:54:40 -08:00
2021-04-25 21:09:02 -07:00
2021-12-14 14:38:05 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-04-19 13:48:20 -07:00
2022-05-11 12:58:12 -07:00
2022-02-11 13:13:04 -08:00
2022-05-13 15:15:21 +02:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-28 16:30:07 -07:00
2021-10-28 16:30:07 -07:00
2022-05-20 16:12:14 -07:00
2021-05-25 17:32:35 -07:00
2022-05-23 21:59:57 +02:00
2022-04-21 18:48:04 +02:00
2022-07-06 16:46:14 +02:00
2021-10-28 16:30:07 -07:00
2022-02-10 17:48:30 -08:00
2022-02-08 21:17:34 +01:00
2022-02-03 16:32:25 +01:00
2021-11-26 00:15:03 +01:00
2022-02-02 22:31:18 -08:00
2021-07-07 19:51:13 -07:00
2022-02-08 21:17:34 +01:00
2022-02-08 21:17:34 +01:00
2022-03-11 22:01:26 +01:00
2022-02-03 16:32:25 +01:00
2022-02-03 16:32:25 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-07-06 16:46:14 +02:00
2022-02-02 22:31:18 -08:00
2021-09-26 13:07:28 -07:00