diff options
author | Quentin Monnet <[email protected]> | 2018-01-10 12:26:06 +0000 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-01-10 13:49:36 +0100 |
commit | 430e68d10baf55e4c40d4dd1de8201c1caf5dddd (patch) | |
tree | 901b58a149c0ed006e87af6ed5184e08cba20107 /net/unix/af_unix.c | |
parent | c087aa8bbf83ddcd54e49f42cf463bcea5bd2b94 (diff) |
bpf: export function to write into verifier log buffer
Rename the BPF verifier `verbose()` to `bpf_verifier_log_write()` and
export it, so that other components (in particular, drivers for BPF
offload) can reuse the user buffer log to dump error messages at
verification time.
Renaming `verbose()` was necessary in order to avoid a name so generic
to be exported to the global namespace. However to prevent too much pain
for backports, the calls to `verbose()` in the kernel BPF verifier were
not changed. Instead, use function aliasing to make `verbose` point to
`bpf_verifier_log_write`. Another solution could consist in making a
wrapper around `verbose()`, but since it is a variadic function, I don't
see a clean way without creating two identical wrappers, one for the
verifier and one to export.
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions