Skip to content
Commit cd206360 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: avoid fallback in case of non-blocking connect



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: default avatar <syzbot+bd8cc73d665590a1fcad@syzkaller.appspotmail.com>
Fixes: 50717a37 ("net/smc: nonblocking connect rework")
Signed-off-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarKarsten Graul <kgraul@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f9cedf1a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment