Received: by 10.223.164.202 with SMTP id h10csp506022wrb; Wed, 15 Nov 2017 03:33:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMbd5ApTzO1/5ED0yPZyawCU/Rgq2lOfPRUZeaQ5t1AGvw4EXMAKuG1umc6MfYtYCqHUqK2n X-Received: by 10.84.242.131 with SMTP id d3mr15446541pll.269.1510745631470; Wed, 15 Nov 2017 03:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510745631; cv=none; d=google.com; s=arc-20160816; b=d3ovezK6nfTl62m69yXOO0naef4wpQUJrsLxtOqV/lxMf6IM6S0AdxXB9gbj7pNsmI 4kwrxulfECIa7Sgtqu3Mwm6SwQ6dz8WLmKCylWaQfhuIMAAoRQKdKnkMBJIPFzUpKfyd wgvft9d6iaEAi1fPjDqNZIjcRSmfFN1jIUs8CeEbGIcLQLLyInggopNgRK+E0YeUguQE QdfEqQaWJBe7a/XXAYHIdeZ/Hi+1KMPwhS91nZggL9d7xc+xkorv1ro86Z/+G0wLt3HY HA+0Pv8pzj67oAapaRZtfxqehejSvtAv7DxmXGcfC86uJ0ySUUZSPHvPPdXtnjs2g+Ou jZFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XSEOzCB3CQkk0hBULnoFjgabH2uLhn+JAiXQhFt4f9I=; b=qLgXBkUofQuFQwHC9wB4KVym/eTG1rdyb0GBBGQohGOVasnTnZlE4wG4cxZoVZMuxu Tek2HZ4azL82sw6/c/xfJ2XULyqes0MyQgWnz1h2JOK84X/pA3kGjtp0JRRLmsDhZpYf FLoy1I7bn8HsImBcr24YXi9dfdKod39Li5uVQ5F6B/ylhsyM9aNWx/8JNb3UEWicrGAC Tvee9GiijUN4tf7/Ic4XTYh+2yIov/IYaN7KDP6ah1NnIse8m4sWrdPGlijN8qaH+ght nSTNFdfZgJbrNMKiPdxT9a8LDm6rLTMQE/68KnwvErP2LJktRhUTLNQR6ewe2MvFyjfb /xCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si6200683pfi.394.2017.11.15.03.33.38; Wed, 15 Nov 2017 03:33:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757728AbdKOL33 (ORCPT + 89 others); Wed, 15 Nov 2017 06:29:29 -0500 Received: from a.mx.secunet.com ([62.96.220.36]:56834 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752843AbdKOL3Y (ORCPT ); Wed, 15 Nov 2017 06:29:24 -0500 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id E6D50201C8; Wed, 15 Nov 2017 12:29:22 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2F63ZHyv3kQG; Wed, 15 Nov 2017 12:29:20 +0100 (CET) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id E93B420064; Wed, 15 Nov 2017 12:29:20 +0100 (CET) Received: from gauss2.secunet.de (10.182.7.193) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server id 14.3.361.1; Wed, 15 Nov 2017 12:29:20 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 244DA140342; Wed, 15 Nov 2017 12:29:19 +0100 (CET) Date: Wed, 15 Nov 2017 12:29:19 +0100 From: Steffen Klassert To: Herbert Xu CC: Dmitry Vyukov , syzbot , David Miller , LKML , netdev , Subject: Re: kernel BUG at net/key/af_key.c:LINE! Message-ID: <20171115112919.GT11292@secunet.com> References: <001a114a958ce46160055c4c4f66@google.com> <20171108074742.GA28177@gondor.apana.org.au> <20171109113857.GA15280@gondor.apana.org.au> <20171110020459.GA22329@gondor.apana.org.au> <20171110021145.GB22329@gondor.apana.org.au> <20171110023038.GA22532@gondor.apana.org.au> <20171110031406.GA22823@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20171110031406.GA22823@gondor.apana.org.au> User-Agent: Mutt/1.5.24 (2015-08-30) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: 6B969C6A-853A-46A6-B59B-118897902AFF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 10, 2017 at 02:14:06PM +1100, Herbert Xu wrote: > On Fri, Nov 10, 2017 at 01:30:38PM +1100, Herbert Xu wrote: > > > > I found the problem. This crap is coming from clone_policy. Now > > let me where this code came from. > > ---8<--- > Subject: xfrm: Copy policy family in clone_policy > > The syzbot found an ancient bug in the IPsec code. When we cloned > a socket policy (for example, for a child TCP socket derived from a > listening socket), we did not copy the family field. This results > in a live policy with a zero family field. This triggers a BUG_ON > check in the af_key code when the cloned policy is retrieved. > > This patch fixes it by copying the family field over. > > Reported-by: syzbot > Signed-off-by: Herbert Xu Patch applied, thanks Herbert! From 1583647264441938552@xxx Fri Nov 10 03:15:22 +0000 2017 X-GM-THRID: 1582152126679172657 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread