diff options
author | Gao Feng <gfree.wind@vip.163.com> | 2017-11-23 04:47:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-23 19:37:02 +0100 |
commit | 747a713502e1dfdf0e93bc81ee0f5ec7510975e5 (patch) | |
tree | fab014093c87a41e24744e4fcffbf355800fc384 /crypto/gf128mul.c | |
parent | ipvlan: Fix insufficient skb linear check for arp (diff) | |
download | linux-747a713502e1dfdf0e93bc81ee0f5ec7510975e5.tar.xz linux-747a713502e1dfdf0e93bc81ee0f5ec7510975e5.zip |
ipvlan: Fix insufficient skb linear check for ipv6 icmp
In the function ipvlan_get_L3_hdr, current codes use pskb_may_pull to
make sure the skb header has enough linear room for ipv6 header. But it
would use the latter memory directly without linear check when it is icmp.
So it still may access the unepxected memory in ipvlan_addr_lookup.
Now invoke the pskb_may_pull again if it is ipv6 icmp.
Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/gf128mul.c')
0 files changed, 0 insertions, 0 deletions