Re: [PATCH v2] vrf: make sure skb->data contains ip header to make routing

From: David Miller
Date: Sun Jul 21 2019 - 16:33:35 EST


From: Peter Kosyh <p.kosyh@xxxxxxxxx>
Date: Fri, 19 Jul 2019 11:11:47 +0300

> vrf_process_v4_outbound() and vrf_process_v6_outbound() do routing
> using ip/ipv6 addresses, but don't make sure the header is available
> in skb->data[] (skb_headlen() is less then header size).
>
> Case:
>
> 1) igb driver from intel.
> 2) Packet size is greater then 255.
> 3) MPLS forwards to VRF device.
>
> So, patch adds pskb_may_pull() calls in vrf_process_v4/v6_outbound()
> functions.
>
> Signed-off-by: Peter Kosyh <p.kosyh@xxxxxxxxx>

Applied and queued up for -stable, thanks.