Re: [PATCH net] macvtap: always pass ethernet header in linear

2016-03-11 Thread David Miller
From: Willem de Bruijn Date: Tue, 8 Mar 2016 15:18:54 -0500 > From: Willem de Bruijn > > The stack expects link layer headers in the skb linear section. > Macvtap can create skbs with llheader in frags in edge cases: > when (IFF_VNET_HDR is off or vnet_hdr.hdr_len < ETH_HLEN) and > prepad + le

[PATCH net] macvtap: always pass ethernet header in linear

2016-03-08 Thread Willem de Bruijn
From: Willem de Bruijn The stack expects link layer headers in the skb linear section. Macvtap can create skbs with llheader in frags in edge cases: when (IFF_VNET_HDR is off or vnet_hdr.hdr_len < ETH_HLEN) and prepad + len > PAGE_SIZE and vnet_hdr.flags has no or bad csum. Add checks to ensure