syzbot


WARNING in __nf_unregister_net_hook (4)
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+154bd5be532a63aa778b@syzkaller.appspotmail.com
Fix commit: 68a3765c659f netfilter: nf_tables: skip netdev events generated on netns removal
First crash: 416d, last: 82d

Cause bisection: failed (bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __nf_unregister_net_hook 1 763d 759d 0/22 auto-closed as invalid on 2020/06/22 17:41
upstream WARNING in __nf_unregister_net_hook (2) C done 9 683d 682d 17/22 fixed on 2020/09/16 22:51
upstream WARNING in __nf_unregister_net_hook (3) 1 617d 617d 0/22 auto-closed as invalid on 2020/12/16 11:13
Patch testing requests:
Created Duration User Patch Repo Result
2021/10/06 10:09 24m fw@strlen.de git://git.kernel.org/pub/scm/linux/kernel/git/fwestphal/nf.git skip_notifier_01 OK

Sample crash report:
------------[ 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

Crashes (66):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/09/30 17:27 upstream 02d5e016800d be530f6c .config log report syz C WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/06 14:22 upstream dcde98da9970 7bdd8b2c .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/06 10:46 upstream dcde98da9970 7bdd8b2c .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/05 22:04 upstream 0014404f9c18 7bdd8b2c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/03/05 18:25 upstream ac84e82f78cb 7bdd8b2c .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/03 15:54 upstream 5859a2b19911 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/03 13:34 upstream 5859a2b19911 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/03 02:23 upstream 92ebf5f91b4d 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/03/02 22:55 upstream fb184c4af9b9 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/03/02 12:17 upstream fb184c4af9b9 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-qemu-upstream 2022/02/28 22:32 upstream 719fce7539cd 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/02/28 14:06 upstream 7e57714cd0ad 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/02/28 01:19 upstream 52a025546731 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/02/26 22:28 upstream 2293be58d6a1 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/02/26 21:18 upstream 2293be58d6a1 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2022/02/26 07:35 upstream 53ab78cd6d5a 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/15 11:45 upstream ec681c53f8d2 0c5d9412 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/14 15:29 upstream 26d657410983 5462d470 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/13 23:18 upstream 348949d9a444 5462d470 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/13 21:06 upstream 348949d9a444 5462d470 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/11 08:24 upstream 64570fbc14f8 838e7e2c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/09 12:27 upstream 5d6ab0bb408f 838e7e2c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/08 23:40 upstream 741668ef7832 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/08 22:37 upstream 741668ef7832 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/08 08:42 upstream 1da38549dd64 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/07 20:52 upstream 4a16df549d23 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/07 18:51 upstream 4a16df549d23 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/07 17:04 upstream 5af4055fa813 efe0f24d .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/07 05:46 upstream 5af4055fa813 62ee0987 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/07 03:43 upstream 5af4055fa813 62ee0987 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/06 15:24 upstream 60a9483534ed 0a63fd36 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/06 13:16 upstream 60a9483534ed 0a63fd36 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/05 16:45 upstream f6274b06e326 0a63fd36 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/04 17:51 upstream 84b3e42564ac ce697b49 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/04 10:04 upstream 9e1ff307c779 ce697b49 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/04 00:32 upstream 9e1ff307c779 db0f5787 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/03 11:06 upstream 7b66f4393ad4 db0f5787 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/02 20:58 upstream ab2a7a35c4e7 db0f5787 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/02 19:29 upstream ab2a7a35c4e7 db0f5787 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/10/01 20:34 upstream 24f67d82c43c cc80db95 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/10/01 16:32 upstream 4de593fb965f cc80db95 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/01 15:38 upstream 4de593fb965f cc80db95 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/10/01 07:56 upstream 4de593fb965f 1d849ab4 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-root 2021/09/30 14:42 upstream 02d5e016800d be530f6c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/09/29 20:21 upstream 02d5e016800d be530f6c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/29 19:20 upstream 02d5e016800d be530f6c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/09/29 16:29 upstream 02d5e016800d be530f6c .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/09/29 07:50 upstream a4e6f95a891a d82cb927 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/28 16:12 upstream d33bec7b3dfa d82cb927 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/27 20:51 upstream 5816b3e6577e 78494d16 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/27 13:04 upstream 5816b3e6577e 78494d16 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/27 11:42 upstream 5816b3e6577e 78494d16 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/09/26 15:00 upstream a3b397b4fffb 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/26 02:16 upstream a5e0aceabef6 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-smack-root 2021/09/26 01:41 upstream a5e0aceabef6 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/25 23:13 upstream a5e0aceabef6 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/24 22:17 upstream 4c4f0c2bf341 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-kasan-gce-selinux-root 2021/09/24 20:29 upstream 4c4f0c2bf341 8cac236e .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-this-kasan-gce 2022/03/01 19:00 net 7cf5aa32e392 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-this-kasan-gce 2022/02/27 22:21 net 519ca6fa9605 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-this-kasan-gce 2021/10/21 08:56 net 4225fea1cb28 f111d03b .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-kasan-gce 2022/03/02 18:17 net-next a02192151b7d 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-kasan-gce 2022/02/26 01:49 net-next 5ebaaa69bd27 45a13a73 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-kasan-gce 2021/07/02 02:13 net-next 5e437416ff66 658ebc66 .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-net-kasan-gce 2021/04/06 14:44 net-next cc0626c2aaed 6a81331a .config log report info WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/09/24 10:56 linux-next 5a5d008887b4 8cac236e .config log report info WARNING in __nf_unregister_net_hook