diff options
author | Eric Dumazet <edumazet@google.com> | 2018-02-13 15:33:52 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-02-13 19:19:15 -0800 |
commit | 952fad8e323975c4e826b659087d2648777594a6 (patch) | |
tree | b975a4eda33630af0c7e11d8b76d1184eb6ba5d9 /drivers/vlynq | |
parent | 9a3efb6b661f71d5675369ace9257833f0e78ef3 (diff) | |
download | linux-952fad8e323975c4e826b659087d2648777594a6.tar.bz2 |
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 <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/vlynq')
0 files changed, 0 insertions, 0 deletions