From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [PATCH] net: fix infinite loop in __skb_recv_datagram() Date: Fri, 15 Feb 2013 17:43:30 +0000 Message-ID: <1360950210.3192.0.camel@bwh-desktop.uk.solarflarecom.com> References: <1360638903.20362.32.camel@edumazet-glaptop> <1360685813.13993.12.camel@edumazet-glaptop> <20130212.160733.2235089567079483883.davem@davemloft.net> <20130215124141.GB20018@order.stressinduktion.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , , , , , To: Hannes Frederic Sowa Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:63633 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714Ab3BORnt (ORCPT ); Fri, 15 Feb 2013 12:43:49 -0500 In-Reply-To: <20130215124141.GB20018@order.stressinduktion.org> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 2013-02-15 at 13:41 +0100, Hannes Frederic Sowa wrote: > On Tue, Feb 12, 2013 at 04:07:33PM -0500, David Miller wrote: > > From: Eric Dumazet > > Date: Tue, 12 Feb 2013 08:16:53 -0800 > > > > > From: Eric Dumazet > > > > > > Tommi was fuzzing with trinity and reported the following problem : > > > > > > commit 3f518bf745 (datagram: Add offset argument to __skb_recv_datagram) > > > missed that a raw socket receive queue can contain skbs with no payload. > > > > > > We can loop in __skb_recv_datagram() with MSG_PEEK mode, because > > > wait_for_packet() is not prepared to skip these skbs. > > ... > > > Reported-by: Tommi Rantala > > > Tested-by: Tommi Rantala > > > Signed-off-by: Eric Dumazet > > > > Applied, thanks. > > This issue got a CVE: http://seclists.org/oss-sec/2013/q1/310 > Perhaps it's something that should go to stable? David has already worked that out for himself: http://patchwork.ozlabs.org/bundle/davem/stable/?state=* Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.