Thread (8 messages) flat view 8 messages, 3 authors, 2021-07-12

Re: [PATCH bpf v3 1/2] bpf, sockmap: fix potential memory leak on unlikely error case

From: Cong Wang <hidden>
Date: 2021-07-08 19:38:54
Also in: bpf

On Tue, Jul 6, 2021 at 9:31 AM John Fastabend [off-list ref] wrote:
If skb_linearize is needed and fails we could leak a msg on the error
handling. To fix ensure we kfree the msg block before returning error.
Found during code review.
sk_psock_skb_ingress_self() also needs the same fix, right?
Other than this, it looks good to me.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help