summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-08-15 04:44:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-03 11:21:15 +0200
commiteedf146fbbf3510d73eb7e9aaf3cc960f20029e0 (patch)
treea731f3a64229a03183dca1d83d6527a367d8df83 /net/tipc
parentf1d1fba6b364e77eaa88c85d873f3bbeabefa962 (diff)
net: Fix potential wrong skb->protocol in skb_vlan_untag()
[ Upstream commit 55eff0eb7460c3d50716ed9eccf22257b046ca92 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions