commit | 6d67942dd0ebc3dddc86edf9208169d064a9b3d7 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Sat Nov 19 01:45:03 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 21 11:25:58 2016 -0500 |
tree | 3ecd94250b15a5c118ca12d42ad688a87f84718f | |
parent | a055c19be98bc065a4478663ba7f6833693b8958 [diff] |
bpf: add __must_check attributes to refcount manipulating helpers Helpers like bpf_prog_add(), bpf_prog_inc(), bpf_map_inc() can fail with an error, so make sure the caller properly checks their return value and not just ignores it, which could worst-case lead to use after free. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>