Ursula Braun 7311d665ca 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: syzbot+5b2cece1a8ecb2ca77d8@syzkaller.appspotmail.com
Reported-by: syzbot+19557374321ca3710990@syzkaller.appspotmail.com
Fixes: 1992d99882af ("net/smc: take sock lock in smc_ioctl()")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-08 19:14:22 -07:00
..
2017-07-29 11:22:58 -07:00
2018-05-23 16:02:35 -04:00
2018-05-23 16:02:35 -04:00
2018-05-04 11:45:06 -04:00
2018-05-23 16:02:35 -04:00
2018-06-12 16:19:22 -07:00
2018-06-28 22:03:55 +09:00