Files
kernel_arpi/include/linux
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-01-01 22:54:42 -08:00
2018-02-20 11:34:54 +00:00
2018-01-02 13:59:16 -05:00
2018-02-06 18:32:44 -08:00
2018-01-03 14:03:48 +01:00
2018-02-12 15:59:08 +00:00
2018-01-01 12:40:27 -07:00
2018-01-25 14:10:39 -08:00
2018-02-26 09:48:42 -07:00
2018-01-16 00:04:19 +01:00
2018-02-06 16:41:29 -05:00
2018-02-22 21:13:03 +01:00
2018-01-17 11:30:16 +00:00
2018-02-24 01:43:47 +01:00
2018-01-03 11:00:22 -05:00
2018-01-31 17:18:38 -08:00
2018-01-28 22:17:24 -05:00
2018-01-08 08:22:45 -06:00
2018-01-17 15:25:50 +01:00
2018-01-08 08:22:45 -06:00
2018-01-31 17:18:40 -08:00
2018-01-31 17:18:37 -08:00
2018-02-01 11:40:07 -06:00
2018-01-19 16:50:53 -08:00
2018-02-06 16:41:28 -05:00
2018-03-16 12:31:19 -04:00
2018-01-29 12:02:54 -05:00
2018-01-18 11:56:49 +01:00
2018-01-15 12:07:46 -08:00
2018-01-15 09:35:45 +01:00
2018-02-06 18:32:47 -08:00
2018-01-09 16:27:43 +01:00
2018-02-06 18:32:44 -08:00