bpf: Wrap aux data inside bpf_sanitize_info container
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 31 May 2021 18:25:54 +0000 (18:25 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Thu, 16 May 2024 07:58:24 +0000 (10:58 +0300)
commitcdd6c6d61d5d135d9fc087678af2d0408f7733a9
tree163be2f830be7a329685c66fe3e887090cbe8e13
parent8f90ab0febffbc291d1f6879be2cd2dca56b707e
bpf: Wrap aux data inside bpf_sanitize_info container

commit 3d0220f6861d713213b015b582e9f21e5b28d2e0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/bpf/verifier.c