[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands |
Date: |
Mon, 13 Jun 2016 14:10:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
On 12/05/2016 00:39, Eric Blake wrote:
> - If we report an error to NBD_CMD_READ, we are not writing out
> any data payload; but the protocol says that a client can expect
> to read the payload no matter what (and must instead ignore it),
> which means the client will start reading our next replies as
> its data payload. Fix by disconnecting (an alternative fix of
> sending bogus payload would be trickier to implement).
This is an error in the spec. The Linux driver doesn't expect to read
the payload here, and neither does block/nbd-client.c.
Paolo
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Eric Blake, 2016/06/13
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Alex Bligh, 2016/06/13
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Paolo Bonzini, 2016/06/14
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Alex Bligh, 2016/06/14
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Paolo Bonzini, 2016/06/14
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Alex Bligh, 2016/06/14
- Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Paolo Bonzini, 2016/06/14
- Re: [Qemu-devel] [Nbd] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Wouter Verhelst, 2016/06/15
- Re: [Qemu-devel] [Nbd] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Wouter Verhelst, 2016/06/15
- Re: [Qemu-devel] [Nbd] [PATCH v4 04/11] nbd: Improve server handling of bogus commands, Alex Bligh, 2016/06/15