diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-02-02 11:35:07 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-02 11:37:11 -0800 |
commit | d6d169320cd40d0910955debc9b0c91877b53900 (patch) | |
tree | 5f2fdd4f9d4e847da31e83d2234ddea286bc74c4 | |
parent | 017348af99b3aa129596a1345851b1b67cd9633e (diff) |
Add ETIMEDOUT to partial result list
Reported-by: syzbot+db8d83f93b84fcb84374@syzkaller.appspotmail.com
PiperOrigin-RevId: 355213994
-rw-r--r-- | pkg/sentry/syscalls/linux/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/syscalls/linux/error.go b/pkg/sentry/syscalls/linux/error.go index dab6207c0..d1778d029 100644 --- a/pkg/sentry/syscalls/linux/error.go +++ b/pkg/sentry/syscalls/linux/error.go @@ -134,8 +134,8 @@ func handleIOErrorImpl(t *kernel.Task, partialResult bool, err, intr error, op s // Similar to EPIPE. Return what we wrote this time, and let // ENOSPC be returned on the next call. return true, nil - case syserror.ECONNRESET: - // For TCP sendfile connections, we may have a reset. But we + case syserror.ECONNRESET, syserror.ETIMEDOUT: + // For TCP sendfile connections, we may have a reset or timeout. But we // should just return n as the result. return true, nil case syserror.ErrWouldBlock: |