From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [4.9.10] ip_route_me_harder() reading off-slab Date: Tue, 28 Feb 2017 12:50:02 +0100 Message-ID: <20170228115002.GA20068@salvia> References: <20170217073928.GA25854@breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Westphal , Netdev , "David S. Miller" , "Eric W. Biederman" , David Ahern , Jan Beulich , Eric Dumazet , netfilter-devel@vger.kernel.org To: Daniel J Blueman Return-path: Received: from mail.us.es ([193.147.175.20]:44356 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbdB1MQ1 (ORCPT ); Tue, 28 Feb 2017 07:16:27 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 61B3E24721 for ; Tue, 28 Feb 2017 12:50:14 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 527EBDA811 for ; Tue, 28 Feb 2017 12:50:14 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id A515DDA819 for ; Tue, 28 Feb 2017 12:50:11 +0100 (CET) Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, Feb 27, 2017 at 10:41:48PM +0800, Daniel J Blueman wrote: > On 17 February 2017 at 15:39, Florian Westphal wrote: > > Daniel J Blueman wrote: > > > > [ CC nf-devel, pablo ] > > > >> When booting a VM in libvirt/KVM attached to a local bridge and KASAN > >> enabled on 4.9.10, we see a stream of KASAN warnings about off-slab > >> access [1]. > >> > >> Let me know if you'd like more debug. > > > > Does this patch help? > > > > Subject: [PATCH nf] netfilter: use skb_to_full_sk in ip_route_me_harder > > > > inet_sk(skb->sk) is illegal in case skb is attached to request socket. > > > > Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener") > > Reported by: Daniel J Blueman > > Signed-off-by: Florian Westphal [...] > Apologies for the delays; this also addresses the issue just fine. > > Tested-by: Daniel J Blueman Applied, thanks for testing.