Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5407223rwb; Mon, 21 Nov 2022 22:39:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4G4xZd47kGS4kgeMb0/KpTg6TrX0hfTXvfhlMFRu9ivci/Ule3hKG+Y/aPJ55/CCIshT+1 X-Received: by 2002:a17:902:f644:b0:17c:7aaa:c67d with SMTP id m4-20020a170902f64400b0017c7aaac67dmr2375348plg.171.1669099149170; Mon, 21 Nov 2022 22:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669099149; cv=none; d=google.com; s=arc-20160816; b=wX8AAWHu+OTK36fTkLNEZXmabd47PijLdK/dyGQzKqfRl5WqTN7P7KasPcXxMYXeNv GXSLzUeCj6AugAUw4sNCKo7uQgQ3sj3cD88RZOnC6avLfQNFOaKGuTNCWZEO9CMUVe5Y rpReRlVa7tYD8/qQbGrw5x2UGhvfg1X+N+Yf08kjANGYD7p4nzes4TF7U5eSytxBTxlx 8k2Y2EpaP3C9vMJdF51hjpc8BwZT+xU8jJwTy4i0pUsTJBUXMWiBtJv7/XoAkaKKrHlE XlMZn7B3Tge2ZkHwugSShi5Q2yjJkD4qioPpC6K9eiaiTtR5xN2fi9z1j4k7gD73CI6c Ptiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nRG8STp5sKfy3pmABZiX7QkUDFseoET1B49gcP00lDw=; b=b5XKVIUTAStCmQ2Y7jaC/ziepil1NZ1ndnccQ6icy2Iq4ezhNipQBGWSQhDP03sXkK C3FDL8fMo9XBB+09qoKv5ESRXZSd2Rw8JWEFXTI65TxBxnI6sxMlJac4Y2xflsQMZ4nj tCnSrdKbVeizzM9/CzY/7lcxqAdxYyw0TKbVyvN7gWmJr+gNeao54nESZCrZIOOc4hKi zn+VPK3Nhu6Nv+1fWguRhncxWw+dsOko77Z1sxXpmVistLuD0Z2ZgdsOEECre2PbPK4s skYzkqtJTdSDnzF09OqmMfwtaR65rgJr1qqZ1cicvGKpMbXUFhNxWnzkcPFuBWcK/cai IEnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x186-20020a6386c3000000b00474673969f8si12915689pgd.154.2022.11.21.22.38.56; Mon, 21 Nov 2022 22:39:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbiKVG1E (ORCPT + 92 others); Tue, 22 Nov 2022 01:27:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbiKVG1B (ORCPT ); Tue, 22 Nov 2022 01:27:01 -0500 Received: from a.mx.secunet.com (a.mx.secunet.com [62.96.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D25682E685; Mon, 21 Nov 2022 22:27:00 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 84F4F20270; Tue, 22 Nov 2022 07:26:59 +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 FN8Hhv3eqx_w; Tue, 22 Nov 2022 07:26:58 +0100 (CET) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 9352B20184; Tue, 22 Nov 2022 07:26:58 +0100 (CET) Received: from cas-essen-01.secunet.de (unknown [10.53.40.201]) by mailout2.secunet.com (Postfix) with ESMTP id 8CE8780004A; Tue, 22 Nov 2022 07:26:58 +0100 (CET) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-01.secunet.de (10.53.40.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 07:26:58 +0100 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 07:26:58 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id EB57631829DB; Tue, 22 Nov 2022 07:26:57 +0100 (CET) Date: Tue, 22 Nov 2022 07:26:57 +0100 From: Steffen Klassert To: Sabrina Dubroca CC: syzbot , , , , , , , , , , Subject: Re: [syzbot] linux-next test error: general protection fault in xfrm_policy_lookup_bytype Message-ID: <20221122062657.GE704954@gauss3.secunet.de> References: <000000000000706e6f05edfb4ce0@google.com> <20221121171513.GB704954@gauss3.secunet.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: cas-essen-02.secunet.de (10.53.40.202) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2022 at 10:41:57PM +0100, Sabrina Dubroca wrote: > 2022-11-21, 18:15:13 +0100, Steffen Klassert wrote: > > On Mon, Nov 21, 2022 at 04:07:26PM +0100, Sabrina Dubroca wrote: > > > 2022-11-21, 05:47:38 -0800, syzbot wrote: > > > > Hello, > > > > > > > > syzbot found the following issue on: > > > > > > > > HEAD commit: e4cd8d3ff7f9 Add linux-next specific files for 20221121 > > > > git tree: linux-next > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=1472370d880000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=a0ebedc6917bacc1 > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=bfb2bee01b9c01fff864 > > > > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > > > > > > > Downloadable assets: > > > > disk image: https://storage.googleapis.com/syzbot-assets/b59eb967701d/disk-e4cd8d3f.raw.xz > > > > vmlinux: https://storage.googleapis.com/syzbot-assets/37a7b43e6e84/vmlinux-e4cd8d3f.xz > > > > kernel image: https://storage.googleapis.com/syzbot-assets/ebfb0438e6a2/bzImage-e4cd8d3f.xz > > > > > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > > > Reported-by: syzbot+bfb2bee01b9c01fff864@syzkaller.appspotmail.com > > > > > > > > general protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN > > > > KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] > > > > CPU: 0 PID: 5295 Comm: kworker/0:3 Not tainted 6.1.0-rc5-next-20221121-syzkaller #0 > > > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 > > > > Workqueue: ipv6_addrconf addrconf_dad_work > > > > RIP: 0010:xfrm_policy_lookup_bytype.cold+0x1c/0x54 net/xfrm/xfrm_policy.c:2139 > > > > > > That's the printk at the end of the function, when > > > xfrm_policy_lookup_bytype returns NULL. It seems to have snuck into > > > commit c39f95aaf6d1 ("xfrm: Fix oops in __xfrm_state_delete()"), we > > > can just remove it: > > > > > > diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c > > > index 3a203c59a11b..e392d8d05e0c 100644 > > > --- a/net/xfrm/xfrm_policy.c > > > +++ b/net/xfrm/xfrm_policy.c > > > @@ -2135,9 +2135,6 @@ static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type, > > > fail: > > > rcu_read_unlock(); > > > > > > - if (!IS_ERR(ret)) > > > - printk("xfrm_policy_lookup_bytype: policy if_id %d, wanted if_id %d\n", ret->if_id, if_id); > > > - > > > return ret; > > > > Hm, this was not in the original patch. Maybe my tree was not > > clean when I applied it. Do you want to send a patch, or should > > I just remove it? > > Go ahead, I guess it's more convenient for you. I just did a forced push to remove that hunk. Thanks!