]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Wrap aux data inside bpf_sanitize_info container
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 21 May 2021 10:17:36 +0000 (10:17 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 25 May 2021 20:08:53 +0000 (22:08 +0200)
commit3d0220f6861d713213b015b582e9f21e5b28d2e0
tree874ca164bc99f7450e82c6c871d9a2f2027d8f7f
parent5c9d706f61336d9f7f285df64c734af778c70f39
bpf: Wrap aux data inside bpf_sanitize_info container

Add a container structure struct bpf_sanitize_info which holds
the current aux info, and update call-sites to sanitize_ptr_alu()
to pass it in. This is needed for passing in additional state
later on.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Piotr Krysiuk <piotras@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c