Re: [PATCH v3] net/smc: fix TCP fallback socket release

From: David Miller
Date: Wed Dec 19 2018 - 01:04:00 EST


From: Myungho Jung <mhjungk@xxxxxxxxx>
Date: Tue, 18 Dec 2018 09:02:25 -0800

> 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@xxxxxxxxxxxxxxxxxxxxxxxxx
> Reported-by: syzbot+e3132895630f957306bc@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Myungho Jung <mhjungk@xxxxxxxxx>

Applied, thanks.