From mboxrd@z Thu Jan 1 00:00:00 1970 From: gfree.wind@vip.163.com Subject: [PATCH net 0/2] ipvlan: Fix insufficient skb linear check Date: Thu, 23 Nov 2017 11:47:10 +0800 Message-ID: Cc: Gao Feng To: maheshb@google.com, davem@davemloft.net, netdev@vger.kernel.org Return-path: Received: from m181-177.vip.163.com ([123.58.177.181]:33668 "EHLO m181-177.vip.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbdKWDwp (ORCPT ); Wed, 22 Nov 2017 22:52:45 -0500 Sender: netdev-owner@vger.kernel.org List-ID: From: Gao Feng 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