aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorGao Feng <[email protected]>2017-11-23 03:47:11 +0000
committerDavid S. Miller <[email protected]>2017-11-23 18:37:02 +0000
commit5fc9220a6719574b37813d4330cc5c1ffe6d5c16 (patch)
tree069ad0802e58b2e5e56f7e76c394bc13b40e81eb /net/lapb/lapb_iface.c
parentgeneve: only configure or fill UDP_ZERO_CSUM6_RX/TX info when CONFIG_IPV6 (diff)
downloadkernel-5fc9220a6719574b37813d4330cc5c1ffe6d5c16.tar.gz
kernel-5fc9220a6719574b37813d4330cc5c1ffe6d5c16.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions