]> www.infradead.org Git - users/jedix/linux-maple.git/commit
skbuff: Fix offset error in skb_reorder_vlan_header
authorVlad Yasevich <vyasevich@gmail.com>
Mon, 14 Dec 2015 22:44:10 +0000 (17:44 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:33:28 +0000 (19:33 -0800)
commit6b54f22006c8d2a72a137106612495ad24ae4410
tree0a842c6b48afabb4a80d6824071d4703ac55d566
parente65fc75ca7028e5507ebbf0739fea853f225e64c
skbuff: Fix offset error in skb_reorder_vlan_header

Orabug: 22623883

[ Upstream commit f654861569872d10dcb79d9d7ca219b316f94ff0 ]

skb_reorder_vlan_header is called after the vlan header has
been pulled.  As a result the offset of the begining of
the mac header has been incrased by 4 bytes (VLAN_HLEN).
When moving the mac addresses, include this incrase in
the offset calcualation so that the mac addresses are
copied correctly.

Fixes: a6e18ff1117 (vlan: Fix untag operations of stacked vlans with REORDER_HEADER off)
CC: Nicolas Dichtel <nicolas.dichtel@6wind.com>
CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: Vladislav Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
(cherry picked from commit 2af7df8919a74e4567878b1415f4dd5edbb75163)

Conflict:

net/core/skbuff.c
net/core/skbuff.c