Anders Roxell
fd92d6648f
bpf: test_bpf: turn off preemption in function __run_once
When running BPF test suite the following splat occurs:
[ 415.930950] test_bpf: #0 TAX jited:0
[ 415.931067] BUG: assuming atomic context at lib/test_bpf.c:6674
[ 415.946169] in_atomic(): 0, irqs_disabled(): 0, pid: 11556, name: modprobe
[ 415.953176] INFO: lockdep is turned off.
[ 415.957207] CPU: 1 PID: 11556 Comm: modprobe Tainted: G W 5.0.0-rc7-next-20190220 #1
[ 415.966328] Hardware name: HiKey Development Board (DT)
[ 415.971592] Call trace:
[ 415.974069] dump_backtrace+0x0/0x160
[ 415.977761] show_stack+0x24/0x30
[ 415.981104] dump_stack+0xc8/0x114
[ 415.984534] __cant_sleep+0xf0/0x108
[ 415.988145] test_bpf_init+0x5e0/0x1000 [test_bpf]
[ 415.992971] do_one_initcall+0x90/0x428
[ 415.996837] do_init_module+0x60/0x1e4
[ 416.000614] load_module+0x1de0/0x1f50
[ 416.004391] __se_sys_finit_module+0xc8/0xe0
[ 416.008691] __arm64_sys_finit_module+0x24/0x30
[ 416.013255] el0_svc_common+0x78/0x130
[ 416.017031] el0_svc_handler+0x38/0x78
[ 416.020806] el0_svc+0x8/0xc
Rework so that preemption is disabled when we loop over function
'BPF_PROG_RUN(...)'.
Fixes: 568f196756 ("bpf: check that BPF programs run with preemption disabled")
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-02-25 22:18:07 +01:00
..
2018-12-19 10:42:08 +01:00
2018-10-31 08:54:14 -07:00
2018-08-07 17:51:39 +08:00
2019-01-06 16:33:10 -08:00
2018-07-10 15:00:52 -06:00
2018-10-02 08:44:59 +10:00
2018-10-31 08:54:13 -07:00
2018-08-22 10:52:48 -07:00
2018-06-12 16:19:22 -07:00
2018-06-21 14:25:21 +02:00
2018-10-12 09:17:46 +02:00
2019-01-03 18:57:57 -08:00
2018-08-16 12:14:42 -07:00
2018-11-30 07:22:05 +01:00
2018-11-20 14:26:55 +08:00
2018-11-29 17:30:48 +02:00
2018-10-31 08:54:16 -07:00
2018-09-10 16:09:27 +01:00
2018-07-27 19:04:33 +08:00
2018-08-22 10:52:48 -07:00
2018-09-14 14:08:52 +08:00
2018-10-19 07:53:18 +02:00
2018-12-28 12:11:45 -08:00
2018-06-12 23:33:24 +02:00
2018-07-27 19:16:38 +08:00
2018-07-23 15:22:39 +10:00
2019-01-06 09:46:51 +09:00
2018-04-27 08:51:26 -04:00
2019-01-04 13:13:46 -08:00
2018-11-12 14:26:21 -08:00
2018-07-27 19:04:33 +08:00
2018-12-29 11:36:44 -08:00
2019-01-05 13:54:53 -08:00
2018-10-21 10:46:44 -04:00
2019-01-21 07:20:18 +13:00
2018-06-12 16:19:22 -07:00
2018-05-09 06:55:44 +02:00
2018-12-28 12:11:50 -08:00
2019-01-05 13:18:59 -08:00
2019-01-03 08:21:02 -07:00
2018-12-29 13:03:29 -08:00
2018-12-28 12:11:43 -08:00
2018-08-10 20:19:58 -07:00
2018-06-12 16:19:22 -07:00
2018-07-02 16:20:23 -04:00
2018-11-11 11:27:43 -08:00
2018-12-06 13:57:03 +01:00
2018-10-31 08:54:13 -07:00
2018-04-11 10:28:35 -07:00
2018-07-03 09:44:36 +02:00
2018-04-12 09:41:19 -07:00
2018-06-12 16:19:22 -07:00
2018-12-27 13:53:32 -08:00
2018-10-16 13:45:44 +02:00
2018-10-08 10:39:04 -07:00
2018-07-09 14:10:40 +02:00
2019-02-14 12:41:54 -05:00
2018-10-31 08:54:12 -07:00
2018-08-30 12:56:40 +02:00
2018-11-27 09:21:45 -08:00
2018-12-06 08:26:16 -05:00
2018-06-12 16:19:22 -07:00
2018-07-07 01:45:31 +02:00
2018-07-17 09:27:43 +02:00
2018-12-03 15:31:55 -08:00
2019-01-15 16:29:57 +12:00
2018-12-06 07:04:56 -08:00
2018-12-22 08:21:03 -05:00
2018-10-31 08:54:13 -07:00
2018-04-13 17:10:28 -07:00
2018-12-28 12:11:49 -08:00
2018-10-16 13:45:44 +02:00
2019-01-04 12:56:09 -08:00
2019-01-04 12:56:09 -08:00
2018-06-27 18:58:49 +03:00
2018-05-18 17:17:12 -07:00
2019-02-25 22:18:07 +01:00
2018-12-17 22:12:30 +11:00
2018-11-11 09:18:04 -08:00
2018-11-30 12:13:15 -08:00
2018-10-15 16:31:29 -04:00
2018-10-26 16:25:18 -07:00
2019-02-01 15:46:23 -08:00
2018-10-16 13:45:44 +02:00
2019-02-13 22:13:29 -08:00
2018-08-08 09:47:26 -06:00
2018-12-10 22:39:34 +01:00
2019-01-31 09:36:52 -08:00
2018-04-11 10:28:35 -07:00
2019-01-14 14:50:34 -05:00
2018-04-16 18:53:13 -04:00
2018-11-18 10:15:10 -08:00
2018-04-23 16:39:35 +01:00
2018-06-07 17:34:39 -07:00
2019-01-03 18:57:57 -08:00
2018-12-10 22:39:34 +01:00
2019-01-06 22:12:58 -05:00