[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140611.004904.2053967979976189800.davem@davemloft.net>
Date: Wed, 11 Jun 2014 00:49:04 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: weichunc@...mgrid.com
Cc: netdev@...r.kernel.org, herbert@...dor.apana.org.au
Subject: Re: [PATCH net] net: fix UDP tunnel GSO of frag_list GRO packets
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.
--
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