Myungho Jung 78abe3d0df net/smc: fix TCP fallback socket release
clcsock can be released while kernel_accept() references it in TCP
listen worker. Also, clcsock needs to wake up before released if TCP
fallback is used and the clcsock is blocked by accept. Add a lock to
safely release clcsock and call kernel_sock_shutdown() to wake up
clcsock from accept in smc_release().

Reported-by: syzbot+0bf2e01269f1274b4b03@syzkaller.appspotmail.com
Reported-by: syzbot+e3132895630f957306bc@syzkaller.appspotmail.com
Signed-off-by: Myungho Jung <mhjungk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-18 22:02:51 -08:00
..
2017-07-29 11:22:58 -07:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2018-05-04 11:45:06 -04:00
2018-12-18 22:02:51 -08:00