Re: [PATCH bpf 1/1] net: bpf: don't leak time wait and request sockets

From: Lorenz Bauer
Date: Fri Jan 10 2020 - 08:27:35 EST


On Thu, 9 Jan 2020 at 18:23, Martin Lau <kafai@xxxxxx> 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