Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp502801pxb; Thu, 30 Sep 2021 10:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwywRPbwqo+AbQaSIlwP4Nigw1ek9g3WxNmuVLQiX0KEnw1cfJhPVST+1i5bZSKgEN4Lcx X-Received: by 2002:a17:906:31cf:: with SMTP id f15mr536512ejf.272.1633023101068; Thu, 30 Sep 2021 10:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633023101; cv=none; d=google.com; s=arc-20160816; b=NbCjmGBltd5VuLKKBIJlHyODveGkr9gHJtT6cqtnXL97j9SeTWQHv2t71+EIzSrpng ezKcJtmGPrvcdVaa8g6orqzadEneYAF/bQ7iJKq085/VebY6c+XEA1L1bwg08yEzNdSg P/AbsLDf8WNpTmpQNxQqM3gXPjeT86+K5e1wMNrys5mAC/e9KP99vqKGyp+fsmM+75i7 sfNRQiZuT7sZ1nyrfYWzdB7Hz4vIqikLFA1Mnj+WzohF2UrNL6ldtaf5fRfSFTuB+t2W KmX+okMKksXc10nSv+aRZmoERAxTvJOThQyJGXKfpVioJyU5GQLZj0Xsk+XjFvqrZMYW LZjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=gv72izE33dTTEKceIEpVEdBmjtFaKZ1ur9yqMhFllDo=; b=GCPswwHCH+1zXlB3UBzGacGAcOJjsjjOLTLMSuIaU4q5vl1tqD1DyK1b2mNq+bhNWn LGY2645HZ6guguwagFkEVnIGVkMiRbKskwTouwtCgItnEU6aPUQqO49mB6Aoj36CM7Hx D4IMiwUhCRJj/HRZklx3X+BZaSZTCTl5CH0xHtBrRGLOjD9Jfh85zKVXWno3tO5fwQxe G2mEy1TIqYLRonoZz1FnWK3rRrCnqAVGLvUAJmyEPwotdibTcJRCvZQUzbIdUpviPzrJ 8KBZJ6iaO9g2hJKLqcNaO1NmSKWMD9iw/pxArNLNIfvvXbuzV+B6U0F1f/Juz8DdxkRj q/vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si2749460eja.522.2021.09.30.10.31.10; Thu, 30 Sep 2021 10:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352690AbhI3R3M (ORCPT + 99 others); Thu, 30 Sep 2021 13:29:12 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:51993 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352673AbhI3R3G (ORCPT ); Thu, 30 Sep 2021 13:29:06 -0400 Received: by mail-io1-f72.google.com with SMTP id i11-20020a056602134b00b005be82e3028bso6425201iov.18 for ; Thu, 30 Sep 2021 10:27:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=gv72izE33dTTEKceIEpVEdBmjtFaKZ1ur9yqMhFllDo=; b=nb9pLAUTvnYYZ/QtG00BfhdUwC2NsCNBqBInLNeoQUZ5ot6U+SYPKZ2kb/jdxrFYnD HLaDWBH57VbxnxO7SJj+IYG4JND/CZa4c8X+NMZnEQn9KlLfkxNBzi28mXQWqmfoNJyK UVfwdn3tbQVT4SjIFC1bsggTMBpU1begfa4ZiYghOHMGhtvE5GhN696qiu6LWtLCTZaq cg3MjOQ3p+gj+Fc5ax8CaVwMcFW/qaZrGj5JzQ+BDVe3G+W/hX//LyFQKk/ESyev7X7q SAePOUlCZmKsGempuY/7SUQtoKZqQMBfu+26iFc10wRuClTy3E/oW9ny749xm3W7x7xO JZnA== X-Gm-Message-State: AOAM533t+Q0z6WmjznzKc73AAXaAgbkJ9VmglhlA/Kvg2LvP3i7Y+e3L 9S0MtydJ/qxCJZyDIqduiONwkaO+vSG2kCleB9jMqrUpBazP MIME-Version: 1.0 X-Received: by 2002:a5d:9256:: with SMTP id e22mr4718594iol.152.1633022843884; Thu, 30 Sep 2021 10:27:23 -0700 (PDT) Date: Thu, 30 Sep 2021 10:27:23 -0700 In-Reply-To: <0000000000008ce91e05bf9f62bc@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008519a705cd39c2f2@google.com> Subject: Re: [syzbot] WARNING in __nf_unregister_net_hook (4) From: syzbot To: coreteam@netfilter.org, davem@davemloft.net, dvyukov@google.com, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pablo@netfilter.org, syzkaller-bugs@googlegroups.com, tonymarislogistics@yandex.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 02d5e016800d Merge tag 'sound-5.15-rc4' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=160132c0b00000 kernel config: https://syzkaller.appspot.com/x/.config?x=9290a409049988d4 dashboard link: https://syzkaller.appspot.com/bug?extid=154bd5be532a63aa778b compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1400bf0f300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=144eaf17300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+154bd5be532a63aa778b@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 2648 at net/netfilter/core.c:468 __nf_unregister_net_hook+0x4b1/0x600 net/netfilter/core.c:468 Modules linked in: CPU: 0 PID: 2648 Comm: kworker/u4:6 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:__nf_unregister_net_hook+0x4b1/0x600 net/netfilter/core.c:468 Code: 00 00 00 e8 41 e9 16 fa 41 83 fc 05 74 5e e8 f6 e1 16 fa 44 89 e6 bf 05 00 00 00 e8 29 e9 16 fa e9 f5 fd ff ff e8 df e1 16 fa <0f> 0b 48 c7 c7 80 dd 17 8d e8 c1 a8 d7 01 e9 b1 fe ff ff 48 89 f7 RSP: 0018:ffffc9000b10f658 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888070c20b98 RCX: 0000000000000000 RDX: ffff888024aa9c80 RSI: ffffffff875f1991 RDI: 0000000000000003 RBP: 0000000000000005 R08: 0000000000000000 R09: ffffc9000b10f597 R10: ffffffff875f159f R11: 000000000000000e R12: 0000000000000001 R13: ffff88801d2b43d8 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2f45ae09b0 CR3: 000000000b68e000 CR4: 0000000000350ef0 Call Trace: nf_unregister_net_hook+0xd5/0x110 net/netfilter/core.c:502 nft_netdev_unregister_hooks net/netfilter/nf_tables_api.c:230 [inline] nf_tables_unregister_hook.part.0+0x1ab/0x200 net/netfilter/nf_tables_api.c:273 nf_tables_unregister_hook include/net/netfilter/nf_tables.h:1090 [inline] __nft_release_basechain+0x138/0x640 net/netfilter/nf_tables_api.c:9524 nft_netdev_event net/netfilter/nft_chain_filter.c:351 [inline] nf_tables_netdev_event+0x521/0x8a0 net/netfilter/nft_chain_filter.c:382 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1996 call_netdevice_notifiers_extack net/core/dev.c:2008 [inline] call_netdevice_notifiers net/core/dev.c:2022 [inline] unregister_netdevice_many+0x951/0x1790 net/core/dev.c:11043 ieee80211_remove_interfaces+0x394/0x820 net/mac80211/iface.c:2140 ieee80211_unregister_hw+0x47/0x1f0 net/mac80211/main.c:1391 mac80211_hwsim_del_radio drivers/net/wireless/mac80211_hwsim.c:3457 [inline] hwsim_exit_net+0x50e/0xca0 drivers/net/wireless/mac80211_hwsim.c:4217 ops_exit_list+0xb0/0x160 net/core/net_namespace.c:168 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:591 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295