summaryrefslogtreecommitdiffstats
path: root/crypto/blkcipher.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2017-10-24 15:57:18 -0400
committerJens Axboe <axboe@kernel.dk>2017-10-24 18:50:59 -0600
commit32e67a3a06b88904155170560b7a63d372b320bd (patch)
treeb51b63e136dec5ffeb42af6c68fe866b719fbd6d /crypto/blkcipher.c
parent875397464a55dd750198f799626959ad4cf45563 (diff)
downloadlinux-32e67a3a06b88904155170560b7a63d372b320bd.tar.bz2
nbd: handle interrupted sendmsg with a sndtimeo set
If you do not set sk_sndtimeo you will get -ERESTARTSYS if there is a pending signal when you enter sendmsg, which we handle properly. However if you set a timeout for your commands we'll set sk_sndtimeo to that timeout, which means that sendmsg will start returning -EINTR instead of -ERESTARTSYS. Fix this by checking either cases and doing the correct thing. Cc: stable@vger.kernel.org Fixes: dc88e34d69d8 ("nbd: set sk->sk_sndtimeo for our sockets") Reported-and-tested-by: Daniel Xu <dlxu@fb.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions