summaryrefslogtreecommitdiff
path: root/lib/crc4.c
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-10-29 12:41:26 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-29 18:09:50 -0700
commit301428ea3708188dc4a243e6e6b46c03b46a0fbc (patch)
treed4deee3abb8aa430a567609272aa9df7369c21d3 /lib/crc4.c
parentad9bd8daf2f9938572b0604e1280fefa8f338581 (diff)
net/smc: fix refcounting for non-blocking connect()
If a nonblocking socket is immediately closed after connect(), the connect worker may not have started. This results in a refcount problem, since sock_hold() is called from the connect worker. This patch moves the sock_hold in front of the connect worker scheduling. Reported-by: syzbot+4c063e6dea39e4b79f29@syzkaller.appspotmail.com Fixes: 50717a37db03 ("net/smc: nonblocking connect rework") Reviewed-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/crc4.c')
0 files changed, 0 insertions, 0 deletions