[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACviX4FS5rt26p1qRzjjS=sUeEb-8hcrFa8xh8mi+WbkJfQF5Q@mail.gmail.com>
Date: Wed, 11 Jun 2014 07:36:33 -0700
From: Wei-Chun Chao <weichunc@...mgrid.com>
To: Or Gerlitz <or.gerlitz@...il.com>
Cc: David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: Re: [PATCH net] net: fix UDP tunnel GSO of frag_list GRO packets
> On Wed, Jun 11, 2014 at 10:49 AM, David Miller <davem@...emloft.net> wrote:
>> From: Wei-Chun Chao <weichunc@...mgrid.com>
>> Date: Sun, 8 Jun 2014 23:48:54 -0700
>>
>>> This patch fixes a kernel BUG_ON in skb_segment. It is hit when
>>> testing two VMs on openvswitch with one VM acting as VXLAN gateway.
>>>
>>> During VXLAN packet GSO, skb_segment is called with skb->data
>>> pointing to inner TCP payload. skb_segment calls skb_network_protocol
>>> to retrieve the inner protocol. skb_network_protocol actually expects
>>> skb->data to point to MAC and it calls pskb_may_pull with ETH_HLEN.
>>> This ends up pulling in ETH_HLEN data from header tail. As a result,
>>> pskb_trim logic is skipped and BUG_ON is hit later.
>>>
>>> Move skb_push in front of skb_network_protocol so that skb->data
>>> lines up properly.
>> ...
>>> Signed-off-by: Wei-Chun Chao <weichunc@...mgrid.com>
>>
>> Applied, thank you.
>
> Hi Wei-Chun,
>
> So how long the bug exists? was it introduced 3.15-rc cycle or
> earlier? I guess it needs to go into -stable too, right?
>
> Or.
I think this has been there since 3.10 -
commit 19acc327258ac5bcd0f31c07853e6d9784010fb4
Thanks,
Weichun
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists