diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-08-15 11:44:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-27 10:31:47 +0300 |
commit | a75f8a60c415325c7ce3df90bfe1b782f84b78cf (patch) | |
tree | 8c49da6e3c7d743ce99b1c991735d0e41d35d195 /lib/mpi/mpi-inline.c | |
parent | 3f13223bb0b19e978348e38be453ffa810017742 (diff) | |
download | linux-a75f8a60c415325c7ce3df90bfe1b782f84b78cf.tar.xz |
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 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions