netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] ipvlan: Fix insufficient skb linear check
@ 2017-11-23  3:47 gfree.wind
  2017-11-23  3:47 ` [PATCH net 1/2] ipvlan: Fix insufficient skb linear check for arp gfree.wind
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gfree.wind @ 2017-11-23  3:47 UTC (permalink / raw)
  To: maheshb, davem, netdev; +Cc: Gao Feng

From: Gao Feng <gfree.wind@vip.163.com>

The current ipvlan codes use pskb_may_pull to get the skb linear header in
func ipvlan_get_L3_hdr, but the size isn't enough for arp and ipv6 icmp.
So it may access the unexpected momory in ipvlan_addr_lookup.

Gao Feng (2):
  ipvlan: Fix insufficient skb linear check for arp
  ipvlan: Fix insufficient skb linear check for ipv6 icmp

 drivers/net/ipvlan/ipvlan_core.c | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-23 18:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23  3:47 [PATCH net 0/2] ipvlan: Fix insufficient skb linear check gfree.wind
2017-11-23  3:47 ` [PATCH net 1/2] ipvlan: Fix insufficient skb linear check for arp gfree.wind
2017-11-23  3:47 ` [PATCH net 2/2] ipvlan: Fix insufficient skb linear check for ipv6 icmp gfree.wind
2017-11-23 18:37 ` [PATCH net 0/2] ipvlan: Fix insufficient skb linear check David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).