Paul Chaignon
1cb0f56d96
bpf: WARN_ONCE on verifier bugs
...
Throughout the verifier's logic, there are multiple checks for
inconsistent states that should never happen and would indicate a
verifier bug. These bugs are typically logged in the verifier logs and
sometimes preceded by a WARN_ONCE.
This patch reworks these checks to consistently emit a verifier log AND
a warning when CONFIG_DEBUG_KERNEL is enabled. The consistent use of
WARN_ONCE should help fuzzers (ex. syzkaller) expose any situation
where they are actually able to reach one of those buggy verifier
states.
Acked-by: Andrii Nakryiko <andrii@kernel.org >
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com >
Link: https://lore.kernel.org/r/aCs1nYvNNMq8dAWP@mail.gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2025-05-19 08:17:08 -07:00
..
2025-03-26 09:32:10 -07:00
2025-04-03 21:35:32 +02:00
2025-04-01 11:02:03 -07:00
2025-04-10 14:47:14 +01:00
2025-04-08 10:41:58 +02:00
2025-03-31 07:08:34 -06:00
2025-04-07 09:23:55 +02:00
2025-03-26 20:58:24 -05:00
2025-04-03 15:31:14 -07:00
2025-03-29 11:12:28 -07:00
2025-04-07 09:05:31 +02:00
2025-03-25 14:22:07 -07:00
2025-04-07 14:50:43 +03:00
2025-03-29 18:11:12 -07:00
2025-04-02 10:30:10 -07:00
2025-04-02 18:23:31 -07:00
2025-04-02 20:04:43 -07:00
2025-03-27 09:05:55 -07:00
2025-04-17 20:10:08 -07:00
2025-03-26 18:08:55 -07:00
2025-04-25 11:34:39 -07:00
2025-05-19 08:17:08 -07:00
2025-05-09 10:37:10 -07:00
2025-05-19 08:17:08 -07:00
2025-04-22 18:16:08 +02:00
2025-04-02 07:06:59 -06:00
2025-04-01 21:46:22 -10:00
2025-04-01 21:46:22 -10:00
2025-03-28 11:22:54 -07:00
2025-04-01 09:29:18 -07:00
2025-04-01 09:29:18 -07:00
2025-04-01 09:12:05 +02:00
2025-03-25 15:00:18 -07:00
2025-04-11 15:24:29 +02:00
2025-04-01 11:02:03 -07:00
2025-04-17 07:44:35 +02:00
2025-03-25 15:00:18 -07:00
2025-04-22 18:16:09 +02:00
2025-03-30 12:43:03 -07:00
2025-03-27 13:27:08 -07:00
2025-04-15 18:10:57 +02:00
2025-03-26 13:54:04 +01:00
2025-04-05 10:30:17 +02:00
2025-04-09 21:00:42 +02:00
2025-03-25 12:35:59 +01:00
2025-04-01 18:03:46 -07:00
2025-03-28 13:45:52 -07:00
2025-03-27 09:46:53 -07:00
2025-03-28 10:45:00 +01:00
2025-04-01 18:03:46 -07:00
2025-03-25 10:18:31 -03:00
2025-04-04 16:39:11 +02:00
2025-03-28 21:10:53 +00:00
2025-04-01 10:06:52 -07:00
2025-04-04 07:07:40 -04:00
2025-03-25 09:20:27 +01:00
2025-04-23 09:04:56 -07:00
2025-04-11 17:32:35 -07:00
2025-03-28 12:37:13 -07:00
2025-03-30 12:43:03 -07:00
2025-03-26 20:58:25 -05:00
2025-03-26 20:58:25 -05:00
2025-04-01 09:29:18 -07:00
2025-04-01 09:29:18 -07:00
2025-04-17 20:10:06 -07:00
2025-04-17 20:10:09 -07:00
2025-03-31 13:37:22 -07:00
2025-03-28 11:22:54 -07:00
2025-04-15 11:32:34 +02:00
2025-04-07 11:13:39 -07:00
2025-04-02 17:06:31 -07:00
2025-04-13 16:39:42 -04:00
2025-03-26 18:08:55 -07:00
2025-03-25 09:20:27 +01:00
2025-03-29 11:23:16 -07:00
2025-04-01 15:14:42 -07:00
2025-04-01 15:14:42 -07:00
2025-04-01 09:29:18 -07:00
2025-03-28 19:36:53 -07:00
2025-03-28 10:07:23 -03:00
2025-03-27 13:14:46 -05:00
2025-04-15 08:32:18 +02:00
2025-04-01 09:29:18 -07:00
2025-04-08 20:55:43 +02:00
2025-04-11 17:32:41 -07:00
2025-03-25 14:35:31 -07:00
2025-04-22 18:21:53 -07:00
2025-03-24 22:06:11 -07:00
2025-04-01 09:12:17 +02:00
2025-03-28 08:39:27 -04:00
2025-04-07 11:13:39 -07:00
2025-04-01 10:06:52 -07:00
2025-03-30 12:43:03 -07:00
2025-03-28 13:37:11 +01:00
2025-03-28 13:37:11 +01:00
2025-03-25 12:48:05 -04:00
2025-04-01 09:29:18 -07:00
2025-04-01 15:20:46 -07:00
2025-03-28 13:37:11 +01:00
2025-04-01 09:29:18 -07:00
2025-03-25 20:52:04 +01:00
2025-04-05 10:30:12 +02:00
2025-03-25 13:16:16 -07:00
2025-03-27 15:34:05 +02:00
2025-03-28 13:37:11 +01:00
2025-03-28 13:37:11 +01:00
2025-04-01 10:06:52 -07:00
2025-03-25 09:15:07 -07:00
2025-03-25 10:18:31 -03:00
2025-04-18 10:05:49 -04:00
2025-04-01 09:29:18 -07:00
2025-04-01 09:29:18 -07:00
2025-03-26 18:08:55 -07:00
2025-04-01 09:29:18 -07:00