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

net/smc: move sock lock in smc_ioctl()



When an SMC socket is connecting it is decided whether fallback to
TCP is needed. To avoid races between connect and ioctl move the
sock lock before the use_fallback check.

Reported-by: default avatar <syzbot+5b2cece1a8ecb2ca77d8@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+19557374321ca3710990@syzkaller.appspotmail.com>
Fixes: 1992d998

 ("net/smc: take sock lock in smc_ioctl()")
Signed-off-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bd58c7e0
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