Martin KaFai Lau
77d2e05abd
bpf: Add bpf_verifier_vlog() and bpf_verifier_log_needed()
...
The BTF (BPF Type Format) verifier needs to reuse the current
BPF verifier log. Hence, it requires the following changes:
(1) Expose log_write() in verifier.c for other users.
Its name is renamed to bpf_verifier_vlog().
(2) The BTF verifier also needs to check
'log->level && log->ubuf && !bpf_verifier_log_full(log);'
independently outside of the current log_write(). It is
because the BTF verifier will do one-check before
making multiple calls to btf_verifier_vlog to log
the details of a type.
Hence, this check is also re-factored to a new function
bpf_verifier_log_needed(). Since it is re-factored,
we can check it before va_start() in the current
bpf_verifier_log_write() and verbose().
Signed-off-by: Martin KaFai Lau <kafai@fb.com >
Acked-by: Alexei Starovoitov <ast@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2018-03-26 09:58:17 +02:00
..
2018-02-14 09:43:22 -08:00
2018-03-14 18:31:04 +00:00
2018-02-02 14:19:19 -08:00
2018-03-23 11:31:58 -04:00
2018-03-11 21:24:29 +01:00
2018-02-20 11:34:54 +00:00
2018-02-03 12:10:09 -08:00
2018-02-06 15:30:52 -08:00
2018-02-22 10:45:46 -08:00
2018-02-01 16:35:31 -08:00
2018-02-09 14:55:30 -08:00
2018-03-06 09:17:34 -08:00
2018-02-12 10:41:11 +01:00
2018-02-06 22:54:15 +00:00
2018-02-14 11:55:33 -05:00
2018-03-01 08:41:25 -07:00
2018-02-06 18:32:44 -08:00
2018-02-15 08:27:06 -07:00
2018-03-19 21:14:38 +01:00
2018-03-26 09:58:17 +02:00
2018-02-23 16:23:11 +01:00
2018-03-19 21:14:38 +01:00
2018-02-04 11:16:35 -08:00
2018-02-06 18:32:46 -08:00
2018-03-14 12:53:23 -04:00
2018-03-08 10:03:12 -08:00
2018-02-20 11:17:58 +01:00
2018-02-26 09:34:21 -08:00
2018-02-21 15:35:43 -08:00
2018-02-08 10:21:39 +01:00
2018-02-02 09:50:51 -08:00
2018-02-15 12:01:53 +01:00
2018-02-16 10:40:24 +01:00
2018-02-06 18:32:47 -08:00
2018-02-06 18:32:47 -08:00
2018-02-03 12:10:09 -08:00
2018-02-12 15:59:08 +00:00
2018-02-08 15:13:30 -05:00
2018-03-08 21:54:52 -05:00
2018-02-07 13:10:43 -08:00
2018-03-19 21:14:38 +01:00
2018-03-15 18:57:14 -07:00
2018-02-12 10:41:11 +01:00
2018-02-26 09:48:42 -07:00
2018-02-06 18:32:46 -08:00
2018-02-06 16:41:29 -05:00
2018-02-22 21:13:03 +01:00
2018-03-09 12:02:59 -05:00
2018-03-16 10:03:47 -04:00
2018-02-20 11:17:58 +01:00
2018-02-06 18:32:47 -08:00
2018-02-21 16:54:05 +01:00
2018-02-06 18:32:45 -08:00
2018-02-06 18:32:43 -08:00
2018-02-22 10:45:46 -08:00
2018-02-13 09:15:58 +01:00
2018-02-21 16:54:06 +01:00
2018-02-24 01:43:47 +01:00
2018-02-01 15:01:15 -07:00
2018-02-06 18:32:47 -08:00
2018-03-22 17:07:01 -07:00
2018-02-21 15:35:42 -08:00
2018-02-13 16:25:06 +01:00
2018-02-06 10:41:33 -08:00
2018-02-06 18:32:47 -08:00
2018-03-01 13:13:23 -05:00
2018-03-01 13:13:23 -05:00
2018-03-01 13:13:23 -05:00
2018-02-21 08:56:40 +01:00
2018-03-23 11:31:58 -04:00
2018-03-13 14:15:21 -04:00
2018-02-17 08:40:59 +01:00
2018-02-01 10:57:45 -08:00
2018-03-05 18:03:20 -06:00
2018-02-01 10:57:45 -08:00
2018-02-08 15:32:25 -05:00
2018-02-06 09:59:40 -08:00
2018-03-19 10:09:44 -07:00
2018-03-23 11:31:58 -04:00
2018-02-06 18:32:47 -08:00
2018-02-11 14:37:22 -08:00
2018-02-12 10:41:11 +01:00
2018-02-06 22:54:11 +00:00
2018-02-14 14:33:36 -05:00
2018-02-19 18:46:11 -05:00
2018-02-06 16:41:28 -05:00
2018-03-07 10:44:02 -05:00
2018-03-16 12:31:19 -04:00
2018-02-06 22:15:42 -08:00
2018-02-11 14:34:03 -08:00
2018-02-13 15:00:06 +01:00
2018-02-07 12:50:21 +02:00
2018-02-09 09:44:25 -08:00
2018-02-28 11:07:11 -05:00
2018-03-23 11:31:58 -04:00
2018-03-19 21:14:38 +01:00
2018-02-07 12:18:23 +01:00
2018-02-21 15:35:42 -08:00
2018-02-06 09:59:40 -08:00
2018-02-05 21:34:50 +01:00
2018-02-06 18:32:47 -08:00
2018-02-28 13:21:10 +01:00
2018-03-07 11:46:39 -05:00
2018-02-06 18:32:44 -08:00
2018-03-13 13:37:42 -07:00