[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACYkzJ4nFq9ugMvW9K9yO8JK8uv1Q86aCh5wsnPPhR7_7=TQJA@mail.gmail.com>
Date: Tue, 3 Nov 2020 23:58:26 +0100
From: KP Singh <kpsingh@...omium.org>
To: Song Liu <songliubraving@...com>
Cc: open list <linux-kernel@...r.kernel.org>,
bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Martin Lau <kafai@...com>, Paul Turner <pjt@...gle.com>,
Jann Horn <jannh@...gle.com>, Hao Luo <haoluo@...gle.com>
Subject: Re: [PATCH bpf-next v2 8/8] bpf: Exercise syscall operations for
inode and sk storage
On Tue, Nov 3, 2020 at 11:32 PM Song Liu <songliubraving@...com> wrote:
>
>
>
> > On Nov 3, 2020, at 7:31 AM, KP Singh <kpsingh@...omium.org> wrote:
> >
> > From: KP Singh <kpsingh@...gle.com>
>
> A short commit log would be great...
Sure :) No excuses for not having one, will add it in the next revision.
- KP
[...]
> > + serv_sk))
> > + goto close_prog;
>
> We shouldn't need this goto, otherwise we may leak serv_sk.
Good point, I will just move the close(serv_sk); along with the other
descriptor clean up.
>
> > +
> > close(serv_sk);
> >
> > close_prog:
> > + close(rm_fd);
> > close(task_fd);
> > local_storage__destroy(skel);
> > }
> > --
> > 2.29.1.341.ge80a0c044ae-goog
> >
>
Powered by blists - more mailing lists