Thread (2 messages) flat view 2 messages, 2 authors, 2018-01-06

Re: [bpf-net PATCH v2] bpf: sockmap missing NULL psock check

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2018-01-06 23:08:19

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@gmail.com>
Applied to bpf, thanks John!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help