Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755574AbcK1WPP (ORCPT ); Mon, 28 Nov 2016 17:15:15 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34531 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753423AbcK1WPH (ORCPT ); Mon, 28 Nov 2016 17:15:07 -0500 Message-ID: <1480371244.18162.91.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: net: GPF in eth_header From: Eric Dumazet To: Florian Westphal Cc: Dmitry Vyukov , syzkaller , Hannes Frederic Sowa , David Miller , Tom Herbert , Alexander Duyck , Jiri Benc , Sabrina Dubroca , netdev , LKML Date: Mon, 28 Nov 2016 14:14:04 -0800 In-Reply-To: <20161128213444.GA9858@breakpoint.cc> References: <1480359019.18162.79.camel@edumazet-glaptop3.roam.corp.google.com> <1480362459.18162.83.camel@edumazet-glaptop3.roam.corp.google.com> <1480367152.18162.86.camel@edumazet-glaptop3.roam.corp.google.com> <1480367886.18162.88.camel@edumazet-glaptop3.roam.corp.google.com> <20161128213444.GA9858@breakpoint.cc> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 30 On Mon, 2016-11-28 at 22:34 +0100, Florian Westphal wrote: > Eric Dumazet wrote: > > > Might be a bug added in commit daaa7d647f81f3 > > > ("netfilter: ipv6: avoid nf_iterate recursion") > > > > > > Florian, what do you think of dropping a packet that presumably was > > > mangled badly by nf_ct_frag6_queue() ? > > ipv4 definitely frees malformed packets. > In general, I think netfilter should avoid 'silent' drops if possible > and let skb continue, but of course such skbs should not be made worse > as what we ate to begin with... > > > > (Like about 48 byte pulled :(, and/or skb->csum changed ) > > I think this warrants a review of ipv6 reassembly too, bug reported here > is because ipv6 nf defrag is also done on output. ip6_frag_queue() definitely frees bad/mangled skbs() > Looks good, we'll need to change some of the errno return codes in > nf_ct_frag6_gather to 0 though for this to work, which should not be too > hard ;) If the goal is to let buggy packets pass, then we might need to undo changes in nf_ct_frag6_queue()