Thread (8 messages) flat view 8 messages, 4 authors, 2021-07-15

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

From: Cong Wang <hidden>
Date: 2021-07-14 00:35:25
Also in: bpf

On Mon, Jul 12, 2021 at 12:56 PM 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.

Fixes: 4363023d2668e ("bpf, sockmap: Avoid failures from skb_to_sgvec when skb has frag_list")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Reviewed-by: Cong Wang <redacted>

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