Received: from eggs.gnu.org ([2001:4830:134:3::10]:35081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0bRE-0006eZ-6b for qemu-devel@nongnu.org; Wed, 11 May 2016 17:13:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0bR8-0006Sh-4V for qemu-devel@nongnu.org; Wed, 11 May 2016 17:12:59 -0400 Date: Wed, 11 May 2016 23:12:33 +0200 From: Wouter Verhelst Message-ID: <20160511211233.GD5054@grep.be> References: <1462524302-15558-1-git-send-email-quentin.casasnovas@oracle.com> <5731E99C.3000108@redhat.com> <3271D86E-D54C-44FC-9FD6-2E2C51F5FB6D@alex.org.uk> <5731FE53.6010602@redhat.com> <672ED845-88C6-4C96-B2DC-F4BCBD85F788@alex.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <672ED845-88C6-4C96-B2DC-F4BCBD85F788@alex.org.uk> Subject: Re: [Qemu-devel] [Nbd] [PATCH] nbd: fix trim/discard commands with a length bigger than NBD_MAX_BUFFER_SIZE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: Eric Blake , "nbd-general@lists.sourceforge.net" , qemu block , "qemu-trivial@nongnu.org" , "qemu-devel@nongnu.org" , "qemu-stable@nongnu.org" , Quentin Casasnovas , Paolo Bonzini On Tue, May 10, 2016 at 04:38:29PM +0100, Alex Bligh wrote: > On 10 May 2016, at 16:29, Eric Blake wrote: > > So the kernel is currently one of the clients that does NOT honor block > > sizes, and as such, servers should be prepared for ANY size up to > > UINT_MAX (other than DoS handling). > > Or not to permit a connection. Right -- and this is why I was recommending against making this a MUST in the first place. [...] -- < ron> I mean, the main *practical* problem with C++, is there's like a dozen people in the world who think they really understand all of its rules, and pretty much all of them are just lying to themselves too. -- #debian-devel, OFTC, 2016-02-12