diff options
author | Cong Wang <[email protected]> | 2021-06-14 19:13:37 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-06-21 16:48:24 +0200 |
commit | e00a5c331bf57f41fcfdc5da4f5caeafe5e54c1d (patch) | |
tree | 6f0ad4fe45fb3f3edf9ba7427d63d527a363722d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | a7e65fe7d8201527129206754db1a2db6a6b2fde (diff) |
udp: Fix a memory leak in udp_read_sock()
sk_psock_verdict_recv() clones the skb and uses the clone
afterward, so udp_read_sock() should free the skb after using
it, regardless of error or not.
This fixes a real kmemleak.
Fixes: d7f571188ecf ("udp: Implement ->read_sock() for sockmap")
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Jakub Sitnicki <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions