aboutsummaryrefslogtreecommitdiffstats
path: root/net/nsh/nsh.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2018-07-05 15:50:10 +0000
committerAlexei Starovoitov <[email protected]>2018-07-07 22:19:30 +0000
commit7ebc14d507b4b55105da8d1a1eda323381529cc7 (patch)
tree9ab11b61f7c81e96c841ca4a2eaa82f628a305bf /net/nsh/nsh.c
parentbpf: sockhash, disallow bpf_tcp_close and update in parallel (diff)
downloadkernel-7ebc14d507b4b55105da8d1a1eda323381529cc7.tar.gz
kernel-7ebc14d507b4b55105da8d1a1eda323381529cc7.zip
bpf: sockmap, consume_skb in close path
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: [email protected] Fixes: 1aa12bdf1bfb ("bpf: sockmap, add sock close() hook to remove socks") Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions