From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754121AbdKILjX (ORCPT ); Thu, 9 Nov 2017 06:39:23 -0500 Received: from [128.1.224.119] ([128.1.224.119]:35556 "EHLO ringil.hmeau.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753366AbdKILjW (ORCPT ); Thu, 9 Nov 2017 06:39:22 -0500 Date: Thu, 9 Nov 2017 22:38:57 +1100 From: Herbert Xu To: Dmitry Vyukov Cc: syzbot , David Miller , LKML , netdev , Steffen Klassert , syzkaller-bugs@googlegroups.com Subject: Re: kernel BUG at net/key/af_key.c:LINE! Message-ID: <20171109113857.GA15280@gondor.apana.org.au> References: <001a114a958ce46160055c4c4f66@google.com> <20171108074742.GA28177@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 08, 2017 at 08:59:15AM +0100, Dmitry Vyukov wrote: > > Also the repro needs to be compiled with -m32 (but it does not compile > without it due to missing __NR_mmap2, so I guess you passed -m32). OK that's what I was missing. I had hacked it to compile in 64-bit :) However, I still don't understand why it's crashing yet. What is clear is that we're getting a socket policy with xp->family set to zero, and the policy is created via the xfrm code path (as opposed to af_key). The xfrm code path is meant to forbid the creation of such a policy. I don't currently see how this is bypassing that check. But clearly it has found a way through the check since it's crashing. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt