syzbot


upstream test error: WARNING in __nf_unregister_net_hook

Status: closed as dup on 2021/05/03 20:13
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+7ad5cd1615f2d89c6e7e@syzkaller.appspotmail.com
Fix commit: 179d9ba5559a netfilter: nf_tables: fix table flag updates
First crash: 1173d, last: 1165d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
linux-next test error: WARNING in __nf_unregister_net_hook netfilter 21 1170d 1172d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 4.19 182/213] netfilter: nf_tables: fix table flag updates 1 (1) 2024/06/13 11:33
[PATCH -stable,4.19.x 24/40] netfilter: nf_tables: fix table flag updates 1 (1) 2024/06/13 01:01
[PATCH 5.4 157/159] netfilter: nf_tables: fix table flag updates 1 (1) 2023/11/24 17:56
[PATCH 5.10 192/193] netfilter: nf_tables: fix table flag updates 1 (1) 2023/11/24 17:55
[PATCH -stable,5.4 24/26] netfilter: nf_tables: fix table flag updates 1 (1) 2023/11/21 12:13
[PATCH net 0/5] Netfilter/IPVS fixes for net 7 (7) 2021/05/27 23:00
[PATCH nf] netfilter: nf_tables: fix table flag updates 1 (1) 2021/05/24 15:11
[PATCH nf,v2] netfilter: nftables: accept all dummy chain when table is dormant 6 (6) 2021/05/21 09:28
[PATCH nf] netfilter: nftables: accept all dummy chain when table is dormant 6 (6) 2021/05/19 09:07
[syzbot] upstream test error: WARNING in __nf_unregister_net_hook 1 (2) 2021/05/03 20:13

Sample crash report:
------------[ cut here ]------------
hook not found, pf 3 num 0
WARNING: CPU: 0 PID: 96 at net/netfilter/core.c:480 __nf_unregister_net_hook+0x4ee/0x640 net/netfilter/core.c:480
Modules linked in:
CPU: 0 PID: 96 Comm: kworker/u4:3 Not tainted 5.12.0-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+0x4ee/0x640 net/netfilter/core.c:480
Code: c6 05 e1 c7 02 06 01 43 8a 04 2e 84 c0 0f 85 3a 01 00 00 48 8b 04 24 8b 10 48 c7 c7 00 b5 59 8b 44 89 e6 31 c0 e8 b2 2e 29 f9 <0f> 0b e9 08 ff ff ff 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 3d
RSP: 0018:ffffc900011cfad8 EFLAGS: 00010246
RAX: bbe48b6059b57d00 RBX: ffff88802facb800 RCX: ffff888015da8000
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff88803c920f20 R08: ffffffff81653d92 R09: ffffed1017343f24
R10: ffffed1017343f24 R11: 0000000000000000 R12: 0000000000000003
R13: dffffc0000000000 R14: 1ffff11028eeac63 R15: ffff88803c920000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1e5e1e000 CR3: 00000000141c8000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nf_unregister_net_hook net/netfilter/core.c:498 [inline]
 nf_unregister_net_hooks+0xe7/0x150 net/netfilter/core.c:576
 ops_pre_exit_list net/core/net_namespace.c:165 [inline]
 cleanup_net+0x608/0xc60 net/core/net_namespace.c:583
 process_one_work+0x833/0x10c0 kernel/workqueue.c:2275
 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421
 kthread+0x39a/0x3c0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (815):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/08 01:18 upstream dd860052c99b bc5434be .config console log report ci-upstream-kasan-gce-smack-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 21:53 upstream 1ad77a05cfae bc5434be .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 19:27 upstream 51595e3b4943 f6da8120 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 19:27 upstream 51595e3b4943 f6da8120 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 10:59 upstream a48b0872e694 f6da8120 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 09:49 upstream a48b0872e694 f6da8120 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 09:00 upstream a48b0872e694 06585184 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 08:11 upstream a48b0872e694 06585184 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 08:11 upstream a48b0872e694 06585184 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 22:08 upstream e48661230cc3 06585184 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 21:44 upstream 38182162b50a 06585184 .config console log report ci-qemu-upstream upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 20:42 upstream 38182162b50a 06585184 .config console log report ci-upstream-kasan-gce-smack-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 20:42 upstream 38182162b50a 06585184 .config console log report ci-upstream-kasan-gce-smack-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 19:27 upstream 7ac86b3dca1b 06585184 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 19:27 upstream 7ac86b3dca1b 06585184 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 18:24 upstream 322a3b843d7f 06585184 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 18:24 upstream 322a3b843d7f 06585184 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 09:32 upstream 8404c9fbc84b 06c27ff5 .config console log report ci-qemu-upstream upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 21:31 upstream 8404c9fbc84b 06c27ff5 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 23:23 upstream e4adffb8daf4 06c27ff5 .config console log report ci-upstream-kasan-gce-smack-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 22:36 upstream e4adffb8daf4 06c27ff5 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 20:10 upstream e4adffb8daf4 09efdd63 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 06:26 upstream 5e321ded302d 09efdd63 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 05:18 upstream 5e321ded302d 09efdd63 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 00:07 upstream 5e321ded302d ad61f371 .config console log report ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 21:45 upstream 6f8ee8d36d07 ad61f371 .config console log report ci-upstream-kasan-gce upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 16:05 upstream 9ccce092fc64 ad61f371 .config console log report ci-upstream-kasan-gce-root upstream test error: WARNING in __nf_unregister_net_hook
2021/05/08 00:04 upstream 1ad77a05cfae bc5434be .config console log report ci-upstream-kasan-gce-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/08 00:04 upstream 1ad77a05cfae bc5434be .config console log report ci-upstream-kasan-gce-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 23:02 upstream dd860052c99b bc5434be .config console log report ci-qemu2-arm64 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 21:03 upstream 1ad77a05cfae f6da8120 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/07 20:11 upstream 51595e3b4943 f6da8120 .config console log report ci-qemu2-arm64 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 17:14 upstream 322a3b843d7f 06c27ff5 .config console log report ci-qemu-upstream-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 16:54 upstream 322a3b843d7f 06585184 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 15:48 upstream 8404c9fbc84b 06585184 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/06 14:58 upstream 8404c9fbc84b 06585184 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 22:18 upstream 8404c9fbc84b 06c27ff5 .config console log report ci-qemu2-arm64 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 21:05 upstream a79cdfba68a1 06c27ff5 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 02:37 upstream d665ea6ea86c 06c27ff5 .config console log report ci-upstream-kasan-gce-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 02:37 upstream d665ea6ea86c 06c27ff5 .config console log report ci-upstream-kasan-gce-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/05 01:28 upstream d665ea6ea86c 06c27ff5 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 21:24 upstream e4adffb8daf4 06c27ff5 .config console log report ci-upstream-kasan-gce-386 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 19:23 upstream e4adffb8daf4 06c27ff5 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 14:25 upstream 5e321ded302d 06c27ff5 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 13:23 upstream 5e321ded302d 06c27ff5 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 13:23 upstream 5e321ded302d 06c27ff5 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 02:12 upstream 5e321ded302d 09efdd63 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/04 01:23 upstream 5e321ded302d 09efdd63 .config console log report ci-qemu2-arm64 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 23:07 upstream 5e321ded302d ad61f371 .config console log report ci-qemu2-arm64 upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 22:55 upstream 5e321ded302d ad61f371 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 21:48 upstream d835ff6c96ae ad61f371 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 20:36 upstream d835ff6c96ae ad61f371 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/05/03 19:28 upstream 9b1f61d5d73d ad61f371 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
2021/04/29 21:50 upstream 8ca5297e7e38 77e2b668 .config console log report ci-qemu2-arm64-mte upstream test error: WARNING in __nf_unregister_net_hook
* Struck through repros no longer work on HEAD.