[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACAyw98A_Y1r0S9jDQds332whureyxRRZCDhFbXV6Bo9NsG4NQ@mail.gmail.com>
Date: Fri, 10 Jan 2020 13:27:19 +0000
From: Lorenz Bauer <lmb@...udflare.com>
To: Martin Lau <kafai@...com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
"David S. Miller" <davem@...emloft.net>,
Joe Stringer <joe@...valent.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-team@...udflare.com" <kernel-team@...udflare.com>,
"edumazet@...gle.com" <edumazet@...gle.com>
Subject: Re: [PATCH bpf 1/1] net: bpf: don't leak time wait and request sockets
On Thu, 9 Jan 2020 at 18:23, Martin Lau <kafai@...com> wrote:
>
> Would this work too?
> if (!sk_fullsock(sk) || !sock_flag(sk, SOCK_RCU_FREE))
Thank you for the suggestion, this makes the patch much nicer.
--
Lorenz Bauer | Systems Engineer
6th Floor, County Hall/The Riverside Building, SE1 7PB, UK
www.cloudflare.com
Powered by blists - more mailing lists