Files
linux/net/ipv4
Cong Wang e00a5c331b 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: d7f571188e ("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]
2021-06-21 16:48:24 +02:00
..
2020-11-09 17:50:28 -08:00
2020-11-09 17:50:28 -08:00
…
2021-01-29 20:59:53 -08:00
…
…
2021-03-28 17:31:13 -07:00
…
…