[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <860f27aa-38c2-8655-2dca-e6aca89c41f7@iogearbox.net>
Date: Sun, 7 Jan 2018 00:08:18 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: John Fastabend <john.fastabend@...il.com>, borkmann@...earbox.net,
alexei.starovoitov@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [bpf-net PATCH v2] bpf: sockmap missing NULL psock check
On 01/05/2018 05:02 AM, John Fastabend wrote:
> Add psock NULL check to handle a racing sock event that can get the
> sk_callback_lock before this case but after xchg happens causing the
> refcnt to hit zero and sock user data (psock) to be null and queued
> for garbage collection.
>
> Also add a comment in the code because this is a bit subtle and
> not obvious in my opinion.
>
> Signed-off-by: John Fastabend <john.fastabend@...il.com>
Applied to bpf, thanks John!
Powered by blists - more mailing lists