aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2018-08-24 22:08:51 +0200
committerAlexei Starovoitov <[email protected]>2018-08-27 20:22:05 -0700
commit15c480efab01197c965ce0562a43ffedd852b8f9 (patch)
tree2f1a088152b28f8eb27233cf2aa2bc6a209f4974 /tools/perf/scripts/python/check-perf-trace.py
parente06fa9c16ce4b740996189fa5610eabcee734e6c (diff)
bpf, sockmap: fix psock refcount leak in bpf_tcp_recvmsg
In bpf_tcp_recvmsg() we first took a reference on the psock, however once we find that there are skbs in the normal socket's receive queue we return with processing them through tcp_recvmsg(). Problem is that we leak the taken reference on the psock in that path. Given we don't really do anything with the psock at this point, move the skb_queue_empty() test before we fetch the psock to fix this case. Fixes: 8934ce2fd081 ("bpf: sockmap redirect ingress support") Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions