summaryrefslogtreecommitdiff
path: root/net/can/j1939/transport.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-08-15 11:44:31 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-17 01:33:49 +0300
commit55eff0eb7460c3d50716ed9eccf22257b046ca92 (patch)
treec75b285de0dca2367dbe68eee0252ea49ed24eb7 /net/can/j1939/transport.c
parentf8414a8d886b613b90d9fdf7cda6feea313b1069 (diff)
downloadlinux-55eff0eb7460c3d50716ed9eccf22257b046ca92.tar.xz
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>
Diffstat (limited to 'net/can/j1939/transport.c')
0 files changed, 0 insertions, 0 deletions