]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: transfer fasync_list in case of fallback
authorUrsula Braun <ubraun@linux.ibm.com>
Fri, 14 Feb 2020 07:58:59 +0000 (08:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Feb 2020 15:09:36 +0000 (07:09 -0800)
commit47624210fb89de1127d1dee0599a454c6ee0b9b6
tree61d51fd840a86ccc78795101b5f00a5a92da4272
parent0432f5cea97457cc99628ab9819979fb6d84594c
net/smc: transfer fasync_list in case of fallback

SMC does not work together with FASTOPEN. If sendmsg() is called with
flag MSG_FASTOPEN in SMC_INIT state, the SMC-socket switches to
fallback mode. To handle the previous ioctl FIOASYNC call correctly
in this case, it is necessary to transfer the socket wait queue
fasync_list to the internal TCP socket.

Reported-by: syzbot+4b1fe8105f8044a26162@syzkaller.appspotmail.com
Fixes: ecf28acb843b1 ("net/smc: handle sockopts forcing fallback")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c