]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-sockmap-estab-fixes'
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 22 Sep 2018 00:46:42 +0000 (02:46 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 22 Sep 2018 00:46:43 +0000 (02:46 +0200)
commitacbe9d69919296c2d4c363796e21b2de81ea1788
tree190592cc86e20253f0c3220c2bcaeb24e2dd4d5e
parent1e2faccc8a0d5cc8083f3796e6aca216e2fb7429
parentbb42a71186164aea62555fa200b7afa9757efb2b
Merge branch 'bpf-sockmap-estab-fixes'

John Fastabend says:

====================
Eric noted that using the close callback is not sufficient
to catch all transitions from ESTABLISHED state to a LISTEN
state. So this series does two things. First, only allow
adding socks in ESTABLISH state and second use unhash callback
to catch tcp_disconnect() transitions.

v2: added check for ESTABLISH state in hash update sockmap as well
v3: Do not release lock from unhash in error path, no lock was
    used in the first place. And drop not so useful code comments
v4: convert,
if (unhash()) return unhash(); return
     to if (unhash()) unhash(); return;

Thanks for reviewing Yonghong I carried your ACKs forward.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>