Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:53206 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbeCIQRg (ORCPT ); Fri, 9 Mar 2018 11:17:36 -0500 Date: Fri, 09 Mar 2018 11:17:34 -0500 (EST) Message-Id: <20180309.111734.1251799637977334734.davem@davemloft.net> To: lorenzo.bianconi@redhat.com Cc: netdev@vger.kernel.org Subject: Re: [PATCH net v2] ipv6: fix access to non-linear packet in ndisc_fill_redirect_hdr_option() From: David Miller In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Lorenzo Bianconi Date: Thu, 8 Mar 2018 17:00:02 +0100 > Fix the following slab-out-of-bounds kasan report in > ndisc_fill_redirect_hdr_option when the incoming ipv6 packet is not > linear and the accessed data are not in the linear data region of orig_skb. ... > The test scenario to trigger the issue consists of 4 devices: > - H0: data sender, connected to LAN0 > - H1: data receiver, connected to LAN1 > - GW0 and GW1: routers between LAN0 and LAN1. Both of them have an > ethernet connection on LAN0 and LAN1 > On H{0,1} set GW0 as default gateway while on GW0 set GW1 as next hop for > data from LAN0 to LAN1. > Moreover create an ip6ip6 tunnel between H0 and H1 and send 3 concurrent > data streams (TCP/UDP/SCTP) from H0 to H1 through ip6ip6 tunnel (send > buffer size is set to 16K). While data streams are active flush the route > cache on HA multiple times. > I have not been able to identify a given commit that introduced the issue > since, using the reproducer described above, the kasan report has been > triggered from 4.14 and I have not gone back further. > > Reported-by: Jianlin Shi > Reviewed-by: Stefano Brivio > Reviewed-by: Eric Dumazet > Signed-off-by: Lorenzo Bianconi Applied and queued up for -stable, thanks!