diff options
author | Mike Christie <mchristi@redhat.com> | 2019-10-17 23:27:34 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-25 22:37:21 +0200 |
commit | cf1b2326b734896734c6e167e41766f9cee7686a (patch) | |
tree | 75be589c2bcf36be09c34b8f642c0e0e8b84a61a /drivers/watchdog/w83977f_wdt.c | |
parent | ata: libahci_platform: Fix regulator_get_optional() misuse (diff) | |
download | linux-cf1b2326b734896734c6e167e41766f9cee7686a.tar.xz linux-cf1b2326b734896734c6e167e41766f9cee7686a.zip |
nbd: verify socket is supported during setup
nbd requires socket families to support the shutdown method so the nbd
recv workqueue can be woken up from its sock_recvmsg call. If the socket
does not support the callout we will leave recv works running or get hangs
later when the device or module is removed.
This adds a check during socket connection/reconnection to make sure the
socket being passed in supports the needed callout.
Reported-by: syzbot+24c12fa8d218ed26011a@syzkaller.appspotmail.com
Fixes: e9e006f5fcf2 ("nbd: fix max number of supported devs")
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/watchdog/w83977f_wdt.c')
0 files changed, 0 insertions, 0 deletions