syzbot


linux-next test error: WARNING in __nf_unregister_net_hook

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+dcccba8a1e41a38cb9df@syzkaller.appspotmail.com
Fix commit: 43016d02cf6e netfilter: arptables: use pernet ops struct during unregister
First crash: 642d, last: 636d
duplicates (5):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
bpf test error: WARNING in __nf_unregister_net_hook 63 628d 636d 0/24 closed as dup on 2021/05/03 20:12
bpf-next test error: WARNING in __nf_unregister_net_hook 30 629d 636d 0/24 closed as dup on 2021/05/03 10:52
upstream test error: WARNING in __nf_unregister_net_hook 815 631d 636d 24/24 closed as dup on 2021/05/03 20:13
memory leak in nf_hook_entries_grow (2) C 18 632d 636d 0/24 closed as dup on 2021/05/04 08:25
net test error: WARNING in __nf_unregister_net_hook 60 631d 636d 0/24 closed as dup on 2021/05/03 20:13

Sample crash report:
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
------------[ cut here ]------------
hook not found, pf 3 num 0
WARNING: CPU: 1 PID: 49 at net/netfilter/core.c:480 __nf_unregister_net_hook+0x1eb/0x610 net/netfilter/core.c:480
Modules linked in:
CPU: 1 PID: 49 Comm: kworker/u4:2 Not tainted 5.12.0-next-20210503-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+0x1eb/0x610 net/netfilter/core.c:480
Code: 0f b6 14 02 48 89 c8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 11 04 00 00 8b 53 1c 89 ee 48 c7 c7 c0 4d 6e 8a e8 18 71 8a 01 <0f> 0b e9 e5 00 00 00 e8 c9 d2 2c fa 44 8b 3c 24 4c 89 f8 48 c1 e0
RSP: 0018:ffffc90000f0fbc0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8881448d3a00 RCX: 0000000000000000
RDX: ffff888012715580 RSI: ffffffff815cc9f5 RDI: fffff520001e1f6a
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815c685e R11: 0000000000000000 R12: ffff88801a740f20
R13: 0000000000000000 R14: ffff88801a16d280 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fef765c8000 CR3: 000000001e97a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nf_unregister_net_hook net/netfilter/core.c:502 [inline]
 nf_unregister_net_hooks+0x117/0x160 net/netfilter/core.c:576
 arpt_unregister_table_pre_exit+0x67/0x80 net/ipv4/netfilter/arp_tables.c:1565
 ops_pre_exit_list net/core/net_namespace.c:165 [inline]
 cleanup_net+0x451/0xb10 net/core/net_namespace.c:583
 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x3b1/0x4a0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (21):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2021/05/03 15:54 linux-next fd3ecedb365c ad61f371 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/03 15:54 linux-next fd3ecedb365c ad61f371 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/03 15:54 linux-next fd3ecedb365c ad61f371 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/03 03:12 linux-next fd3ecedb365c 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/03 03:12 linux-next fd3ecedb365c 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/03 03:12 linux-next fd3ecedb365c 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/30 03:42 linux-next 74f961f4e4c0 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/30 03:42 linux-next 74f961f4e4c0 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/30 03:42 linux-next 74f961f4e4c0 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/29 05:52 linux-next 9e5cff2a1315 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/29 05:52 linux-next 9e5cff2a1315 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/29 05:52 linux-next 9e5cff2a1315 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 14:04 linux-next a5fb44b89809 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 14:04 linux-next a5fb44b89809 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 14:04 linux-next a5fb44b89809 77e2b668 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 12:27 linux-next a5fb44b89809 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 12:27 linux-next a5fb44b89809 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/28 12:27 linux-next a5fb44b89809 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/27 07:52 linux-next c83540783e90 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/27 07:52 linux-next c83540783e90 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
ci-upstream-linux-next-kasan-gce-root 2021/04/27 07:52 linux-next c83540783e90 805b5003 .config console log report linux-next test error: WARNING in __nf_unregister_net_hook
* Struck through repros no longer work on HEAD.