Skip to content
Commit 78abe3d0 authored by Myungho Jung's avatar Myungho Jung Committed by David S. Miller
Browse files

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: default avatar <syzbot+0bf2e01269f1274b4b03@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+e3132895630f957306bc@syzkaller.appspotmail.com>
Signed-off-by: default avatarMyungho Jung <mhjungk@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7db2beb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment