Skip to content
Snippets Groups Projects
user avatar
John Fastabend authored
Currently, when a sock is closed and the bpf_tcp_close() callback is
used we remove memory but do not free the skb. Call consume_skb() if
the skb is attached to the buffer.

Reported-by: default avatar <syzbot+d464d2c20c717ef5a6a8@syzkaller.appspotmail.com>
Fixes: 1aa12bdf ("bpf: sockmap, add sock close() hook to remove socks")
Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
7ebc14d5
History
Name Last commit Last update