aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2018-02-13 23:33:52 +0000
committerAlexei Starovoitov <[email protected]>2018-02-14 03:19:15 +0000
commit952fad8e323975c4e826b659087d2648777594a6 (patch)
treeb975a4eda33630af0c7e11d8b76d1184eb6ba5d9 /tools/bpf/bpftool/prog.c
parentbpf: fix memory leak in lpm_trie map_free callback function (diff)
downloadkernel-952fad8e323975c4e826b659087d2648777594a6.tar.gz
kernel-952fad8e323975c4e826b659087d2648777594a6.zip
bpf: fix sock_map_alloc() error path
In case user program provides silly parameters, we want a map_alloc() handler to return an error, not a NULL pointer, otherwise we crash later in find_and_alloc_map() Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks") Signed-off-by: Eric Dumazet <[email protected]> Reported-by: syzbot <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions