Files
linux/net
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
..
…
…
2021-03-30 16:54:50 -07:00
2021-03-26 20:41:52 -07:00
…
2021-04-09 16:34:56 -07:00
2021-05-24 14:10:28 -07:00
…
…
…
2021-06-18 16:59:20 +02:00
2021-06-03 15:13:56 -07:00
…
…