Re: [PATCH] nbd: Don't let client send oversize strings

2019-10-09 Thread Eric Blake
On 9/29/19 1:49 PM, Maxim Levitsky wrote: On Fri, 2019-09-27 at 23:13 -0500, Eric Blake wrote: Qemu as server currently won't accept export names larger than 256 bytes, so most uses of qemu as client have no reason to get anywhere near the NBD spec maximum of a 4k limit per string. However, we

Re: [PATCH] nbd: Don't let client send oversize strings

2019-09-29 Thread Maxim Levitsky
On Fri, 2019-09-27 at 23:13 -0500, Eric Blake wrote: > Qemu as server currently won't accept export names larger than 256 > bytes, so most uses of qemu as client have no reason to get anywhere > near the NBD spec maximum of a 4k limit per string. However, we > didn't actually have any code that pr

[PATCH] nbd: Don't let client send oversize strings

2019-09-27 Thread Eric Blake
Qemu as server currently won't accept export names larger than 256 bytes, so most uses of qemu as client have no reason to get anywhere near the NBD spec maximum of a 4k limit per string. However, we didn't actually have any code that prevented the client from violating the protocol, which, while