[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpWQh2s_vRoGZVsKgkZj1SvDX6=-Q5esj0omZwL39hfA3w@mail.gmail.com>
Date: Tue, 13 Jul 2021 17:35:11 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: John Fastabend <john.fastabend@...il.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Jakub Sitnicki <jakub@...udflare.com>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andriin@...com>, bpf <bpf@...r.kernel.org>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf v4 1/2] bpf, sockmap: fix potential memory leak on
unlikely error case
On Mon, Jul 12, 2021 at 12:56 PM John Fastabend
<john.fastabend@...il.com> 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@...il.com>
Reviewed-by: Cong Wang <cong.wang@...edance.com>
Thanks for the update.
Powered by blists - more mailing lists