From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BFB5C433ED for ; Thu, 13 May 2021 00:56:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 26F2461108 for ; Thu, 13 May 2021 00:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232318AbhEMA5W (ORCPT ); Wed, 12 May 2021 20:57:22 -0400 Received: from mail.netfilter.org ([217.70.188.207]:60024 "EHLO mail.netfilter.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbhEMA5V (ORCPT ); Wed, 12 May 2021 20:57:21 -0400 Received: from us.es (unknown [90.77.255.23]) by mail.netfilter.org (Postfix) with ESMTPSA id EB03E64143; Thu, 13 May 2021 02:55:21 +0200 (CEST) Date: Thu, 13 May 2021 02:56:08 +0200 From: Pablo Neira Ayuso To: Florian Westphal Cc: Dmitry Vyukov , syzbot , coreteam@netfilter.org, David Miller , Jozsef Kadlecsik , Jakub Kicinski , LKML , netdev , NetFilter , syzkaller-bugs Subject: Re: [syzbot] WARNING in __nf_unregister_net_hook (4) Message-ID: <20210513005608.GA23780@salvia> References: <0000000000008ce91e05bf9f62bc@google.com> <20210508144657.GC4038@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210508144657.GC4038@breakpoint.cc> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Sat, May 08, 2021 at 04:46:57PM +0200, Florian Westphal wrote: > Dmitry Vyukov wrote: > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > > Reported-by: syzbot+154bd5be532a63aa778b@syzkaller.appspotmail.com > > > > Is this also fixed by "netfilter: arptables: use pernet ops struct > > during unregister"? > > The warning is the same, but the stack is different... > > No, this is a different bug. > > In both cases the caller attempts to unregister a hook that the core > can't find, but in this case the caller is nftables, not arptables. I see no reproducer for this bug. Maybe I broke the dormant flag handling? Or maybe syzbot got here after the arptables bug has been hitted?