From: Karsten Graul <kgraul@xxxxxxxxxxxxx> Date: Fri, 2 Aug 2019 10:47:50 +0200 > From: Ursula Braun <ubraun@xxxxxxxxxxxxx> > > FASTOPEN is not possible with SMC. sendmsg() with msg_flag MSG_FASTOPEN > triggers a fallback to TCP if the socket is in state SMC_INIT. > But if a nonblocking connect is already started, fallback to TCP > is no longer possible, even though the socket may still be in state > SMC_INIT. > And if a nonblocking connect is already started, a listen() call > does not make sense. > > Reported-by: syzbot+bd8cc73d665590a1fcad@xxxxxxxxxxxxxxxxxxxxxxxxx > Fixes: 50717a37db032 ("net/smc: nonblocking connect rework") > Signed-off-by: Ursula Braun <ubraun@xxxxxxxxxxxxx> > Signed-off-by: Karsten Graul <kgraul@xxxxxxxxxxxxx> Applied and queued up for -stable.