summaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-10-01 22:00:54 +0800
committerDavid S. Miller <davem@davemloft.net>2017-10-01 22:30:32 -0700
commit5513d08d29511c263c00933c00dd7a82fffda3c9 (patch)
tree45892f8a4f18640551475f209b5d4aaad7c02966 /kernel/sys.c
parent935a9749a36828af0e8be224a5cd4bc758112c34 (diff)
downloadlinux-5513d08d29511c263c00933c00dd7a82fffda3c9.tar.gz
linux-5513d08d29511c263c00933c00dd7a82fffda3c9.tar.bz2
linux-5513d08d29511c263c00933c00dd7a82fffda3c9.zip
ip_gre: check packet length and mtu correctly in erspan_xmit
As a ARPHRD_ETHER device, skb->len in erspan_xmit is the length of the whole ether packet. So before checking if a packet size exceeds the mtu, skb->len should subtract dev->hard_header_len. Otherwise, all packets with max size according to mtu would be trimmed to be truncated packet. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions