commit | 5fc9220a6719574b37813d4330cc5c1ffe6d5c16 | [log] [tgz] |
---|---|---|
author | Gao Feng <gfree.wind@vip.163.com> | Thu Nov 23 11:47:11 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 24 03:37:02 2017 +0900 |
tree | 069ad0802e58b2e5e56f7e76c394bc13b40e81eb | |
parent | f9094b7603c011d27db7ba109e69881c72fa611d [diff] |
ipvlan: Fix insufficient skb linear check for arp In the function ipvlan_get_L3_hdr, current codes use pskb_may_pull to make sure the skb header has enough linear room for arp header. But it would access the arp payload in func ipvlan_addr_lookup. So it still may access the unepxected memory. Now use arp_hdr_len(port->dev) instead of the arp header as the param. Signed-off-by: Gao Feng <gfree.wind@vip.163.com> Signed-off-by: David S. Miller <davem@davemloft.net>