https://github.com/torvalds/linux
Revision 65ec0bd1c7c14522670a5294de35710fb577a7fd authored by Ronak Doshi on 18 April 2018, 19:48:04 UTC, committed by David S. Miller on 19 April 2018, 17:59:05 UTC
vmxnet3_get_hdr_len() is used to calculate the header length which in
turn is used to calculate the gso_size for skb. When rxvlan offload is
disabled, vlan tag is present in the header and the function references
ip header from sizeof(ethhdr) and leads to incorrect pointer reference.

This patch fixes this issue by taking sizeof(vlan_ethhdr) into account
if vlan tag is present and correctly references the ip hdr.

Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Guolin Yang <gyang@vmware.com>
Acked-by: Louis Luo <llouis@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f7e4367
History
Tip revision: 65ec0bd1c7c14522670a5294de35710fb577a7fd authored by Ronak Doshi on 18 April 2018, 19:48:04 UTC
vmxnet3: fix incorrect dereference when rxvlan is disabled
Tip revision: 65ec0bd
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 12.8 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.6 KB
.mailmap -rw-r--r-- 9.2 KB
COPYING -rw-r--r-- 423 bytes
CREDITS -rw-r--r-- 96.3 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 441.0 KB
Makefile -rw-r--r-- 60.8 KB
README -rw-r--r-- 800 bytes

README

back to top