summaryrefslogtreecommitdiff
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-04-13 00:10:50 +0200
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:50:05 +0300
commitf3a168c63f10316cf6eb892b849738c9d66d180f (patch)
tree9b085ae5890851804afeeface08151da52f3e821 /include/linux/bpf.h
parent5483a016e6d6770fda1b7ea9a1e763a3dc98c0cf (diff)
bpf, verifier: add bpf_call_arg_meta for passing meta data
Currently, when the verifier checks calls in check_call() function, we call check_func_arg() for all 5 arguments e.g. to make sure expected types are correct. In some cases, we collect meta data (here: map pointer) to perform additional checks such as checking stack boundary on key/value sizes for subsequent arguments. As we're going to extend the meta data, add a generic struct bpf_call_arg_meta that we can use for passing into check_func_arg(). Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions