From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWJET-0005kx-Il for qemu-devel@nongnu.org; Thu, 18 Feb 2016 02:42:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWJEQ-0002xr-DH for qemu-devel@nongnu.org; Thu, 18 Feb 2016 02:42:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWJEQ-0002xf-85 for qemu-devel@nongnu.org; Thu, 18 Feb 2016 02:42:34 -0500 Date: Thu, 18 Feb 2016 13:12:23 +0530 (IST) From: P J P In-Reply-To: Message-ID: References: <1455710904-13368-1-git-send-email-ppandit@redhat.com> <878u2jh4uz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] net: check packet payload length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Jason Wang , Qemu Developers , Liu Ling +-- On Thu, 18 Feb 2016, P J P wrote --+ | +-- On Wed, 17 Feb 2016, Markus Armbruster wrote --+ | | Is calling this function with a partial IPv4 TCP/UDP packet legitimate? | | If partial packet is okay, what about a partial header? | | Partial? That shouldn't harm I guess. For partial TCP/UDP headers it does return with no checksum. if (plen < csum_offset+2) return; -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F