From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Subject: Re: Bug 75571 Date: Sun, 15 Jun 2014 02:29:32 +0700 Message-ID: <1402774172.29664.27.camel@anpws> References: <1401085231.1775.9.camel@anpws> <1401870692.29664.1.camel@anpws> <1401945732.29664.6.camel@anpws> <1402027981.29664.16.camel@anpws> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Cong Wang Return-path: Received: from mxnat1.880.ru ([194.8.85.225]:34187 "EHLO stk-gw0.880.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751142AbaFNT3I (ORCPT ); Sat, 14 Jun 2014 15:29:08 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > The best thing we can try is to fix it dynamically on rx, something > like below (if you want to try this patch, please revert the previous one): > > diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c > index 5dc5137..5eff109 100644 > --- a/net/ipv4/ipip.c > +++ b/net/ipv4/ipip.c > @@ -407,6 +407,7 @@ static int ipip_rcv(struct sk_buff *skb) > tstats->rx_packets++; > tstats->rx_bytes += skb->len; > > + tunnel->dev->hard_header_len = skb->data - skb_mac_header(skb); > __skb_tunnel_rx(skb, tunnel->dev); > > ipip_ecn_decapsulate(iph, skb); Thank you! This patch works too. But I think both patches are valid: act_mirred must not panic on receiving bad header len and ipip tunnel should not send incorrect header len too.