Miaohe Lin 55eff0eb74 net: Fix potential wrong skb->protocol in skb_vlan_untag()
We may access the two bytes after vlan_hdr in vlan_set_encap_proto(). So
we should pull VLAN_HLEN + sizeof(unsigned short) in skb_vlan_untag() or
we may access the wrong data.

Fixes: 0d5501c1c828 ("net: Always untag vlan-tagged traffic on input.")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-16 15:33:49 -07:00
..
2020-06-23 20:27:09 -07:00
2020-08-03 18:24:30 -07:00
2019-09-26 08:56:17 +02:00
2020-08-14 14:11:37 -07:00
2020-07-13 17:20:40 -07:00
2020-08-09 13:58:04 -07:00
2020-07-13 17:20:40 -07:00
2020-08-11 10:20:34 -07:00
2020-08-10 19:07:44 -07:00