aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_align.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2018-01-04 20:02:09 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-07 00:01:46 +0100
commit5731a879d03bdaa00265f8ebc32dfd0e65d25276 (patch)
tree3a9d68d5c946353b0f0583e3440655e555826d60 /tools/testing/selftests/bpf/test_align.c
parentsh_eth: fix SH7757 GEther initialization (diff)
downloadlinux-dev-5731a879d03bdaa00265f8ebc32dfd0e65d25276.tar.xz
linux-dev-5731a879d03bdaa00265f8ebc32dfd0e65d25276.zip
bpf: sockmap missing NULL psock check
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> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions