]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'vlan-fix'
authorDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 16:36:28 +0000 (12:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 16:36:28 +0000 (12:36 -0400)
commit2f530b1c7764046821fe34bfb8f584a792abd83c
tree67df9144cea6262fc7660a1c8cc0556df7bf0a8b
parenta7485b8a7a8f854f5b7f5d1a92bef1dfce09fbf7
parent4ace14a216f9b31837f09a390523d0cd00eef475
Merge branch 'vlan-fix'

Toshiaki Makita says:

====================
Fix vlan tag handling for vlan packets without ethernet headers

Eric Dumazet reported syzbot found a new bug which leads to underflow of
size argument of memmove(), causing crash[1]. This can be triggered by tun
devices.

The underflow happened because skb_vlan_untag() did not expect vlan packets
without ethernet headers, and tun can produce such packets.
I also checked vlan_insert_inner_tag() and found a similar bug.

This series fixes these problems.

[1] https://marc.info/?l=linux-netdev&m=152221753920510&w=2
====================

Signed-off-by: David S. Miller <davem@davemloft.net>