linux/drivers/net
Herbert Xu b34fafa320 macvtap: Fix csum_start when VLAN tags are present
commit 3ce9b20f19 upstream.

When VLAN is in use in macvtap_put_user, we end up setting
csum_start to the wrong place.  The result is that the whoever
ends up doing the checksum setting will corrupt the packet instead
of writing the checksum to the expected location, usually this
means writing the checksum with an offset of -4.

This patch fixes this by adjusting csum_start when VLAN tags are
detected.

Fixes: f09e2249c4 ("macvtap: restore vlan header on user read")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-21 09:22:53 -08:00
..
appletalk appletalk: remove "config IPDDP_DECAP" 2013-03-22 10:21:09 -04:00
arcnet arcnet: cleanup sizeof parameter 2013-08-11 18:35:25 -07:00
bonding bonding: Remove debug_fs files when module init fails 2014-05-30 21:52:14 -07:00
caif caif: CAIF_VIRTIO should depend on HAS_DMA 2013-05-11 16:28:24 -07:00
can can: peak_pci: prevent use after free at netdev removal 2014-06-30 20:09:40 -07:00
cris
dsa
ethernet vio: fix reuse of vio_dring slot 2014-11-21 09:22:52 -08:00
fddi drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of memset(, 0) 2013-03-17 12:50:24 -04:00
hamradio hamradio/yam: fix info leak in ioctl 2014-01-15 15:28:48 -08:00
hippi
hyperv hyperv: Fix a bug in netvsc_start_xmit() 2014-10-15 08:31:57 +02:00
ieee802154 at86rf230: change irq handling to prevent lockups with edge type irq 2013-04-16 16:34:08 -04:00
irda net/irda: fix error return code in bfin_sir_open() 2013-05-08 13:13:29 -07:00
phy net: phy: fix a bug when verify the EEE support 2013-05-27 23:30:09 -07:00
plip net: add ETH_P_802_3_MIN 2013-03-28 01:20:42 -04:00
ppp fix misuses of f_count() in ppp and netlink 2014-11-14 08:47:55 -08:00
slip
team team: fix mtu setting 2014-06-26 15:12:38 -04:00
usb ax88179_178a: fix bonding failure 2014-11-14 08:47:53 -08:00
vmxnet3 vmxnet3: fix building without CONFIG_PCI_MSI 2014-03-23 21:38:18 -07:00
wan wanxl: fix info leak in ioctl 2013-11-04 04:31:04 -08:00
wimax
wireless iwlwifi: configure the LTR 2014-11-21 09:22:53 -08:00
xen-netback xen-netback: remove pointless clause from if statement 2014-04-14 06:42:18 -07:00
dummy.c dummy: fix oops when loading the dummy failed 2013-07-28 16:30:01 -07:00
eql.c
ifb.c ifb: fix oops when loading the ifb failed 2013-07-28 16:30:01 -07:00
Kconfig drivers/net: macvtap and tun depend on INET 2014-11-14 08:47:53 -08:00
LICENSE.SRC
loopback.c
macvlan.c macvlan: Initialize vlan_features to turn on offload support. 2014-08-14 09:24:15 +08:00
macvtap.c macvtap: Fix csum_start when VLAN tags are present 2014-11-21 09:22:53 -08:00
Makefile
mdio.c
mii.c
netconsole.c
ntb_netdev.c ntb_netdev: remove from list on exit 2013-05-15 10:58:14 -07:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: update file current position 2014-01-15 15:28:46 -08:00
veth.c net: vlan: announce STAG offload capability in some drivers 2013-04-19 14:46:06 -04:00
virtio_net.c virtio-net: alloc big buffers also when guest can receive UFO 2014-03-23 21:38:10 -07:00
vxlan.c inetpeer: get rid of ip_id_count 2014-08-14 09:24:15 +08:00
xen-netfront.c xen-netfront: fix resource leak in netfront 2014-02-06 11:08:17 -08:00