syzbot


WARNING in __nf_unregister_net_hook

Status: auto-closed as invalid on 2020/06/22 17:41
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+01d3835be1106c3083ba@syzkaller.appspotmail.com
First crash: 1462d, last: 1462d
Discussions (1)
Title Replies (including bot) Last reply
WARNING in __nf_unregister_net_hook 0 (1) 2020/04/28 04:57
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __nf_unregister_net_hook (4) netfilter C error 66 780d 1110d 20/26 fixed on 2022/03/08 16:11
upstream WARNING in __nf_unregister_net_hook (6) netfilter C error 2 73d 190d 26/26 fixed on 2024/03/26 17:39
upstream WARNING in __nf_unregister_net_hook (5) netfilter 183 693d 778d 0/26 auto-closed as invalid on 2022/07/31 13:33
upstream WARNING in __nf_unregister_net_hook (2) netfilter C done 9 1382d 1381d 15/26 fixed on 2020/09/16 22:51
upstream WARNING in __nf_unregister_net_hook (3) netfilter 1 1316d 1316d 0/26 auto-closed as invalid on 2020/12/16 11:13

Sample crash report:
------------[ cut here ]------------
hook not found, pf 2 num 4
WARNING: CPU: 1 PID: 25658 at net/netfilter/core.c:413 __nf_unregister_net_hook+0x1ef/0x470 net/netfilter/core.c:413
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 25658 Comm: syz-executor.0 Not tainted 5.7.0-rc1-next-20200415-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 fixup_bug arch/x86/kernel/traps.c:170 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:__nf_unregister_net_hook+0x1ef/0x470 net/netfilter/core.c:413
Code: 0f b6 14 02 4c 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 83 02 00 00 8b 53 1c 89 ee 48 c7 c7 c0 cd e1 88 e8 19 4e e5 fa <0f> 0b e9 ec 00 00 00 e8 35 19 14 fb 48 8b 04 24 48 c1 e0 04 49 8d
RSP: 0018:ffffc900056b73b8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff888094aa6600 RCX: 0000000000000000
RDX: 000000000000ad97 RSI: ffffffff815ce211 RDI: fffff52000ad6e69
RBP: 0000000000000002 R08: ffff888046f3c100 R09: fffffbfff1862745
R10: ffffffff8c313a27 R11: fffffbfff1862744 R12: ffff88808e97cfa8
R13: 0000000000000000 R14: ffff8880931a2300 R15: ffff888094aa661c
 nf_unregister_net_hook+0x59/0xa0 net/netfilter/core.c:431
 nft_unregister_basechain_hooks net/netfilter/nf_tables_api.c:206 [inline]
 nft_table_disable+0x262/0x2c0 net/netfilter/nf_tables_api.c:835
 nf_tables_table_disable net/netfilter/nf_tables_api.c:868 [inline]
 nf_tables_commit+0x2cf8/0x3a20 net/netfilter/nf_tables_api.c:7350
 nfnetlink_rcv_batch+0xcd7/0x1610 net/netfilter/nfnetlink.c:485
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:543 [inline]
 nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:561
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6bf/0x7e0 net/socket.c:2362
 ___sys_sendmsg+0x100/0x170 net/socket.c:2416
 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c829
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fd703062c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004fe200 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 000000002000c2c0 RDI: 0000000000000005
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000095d R14: 00000000004cc104 R15: 00007fd7030636d4
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/23 17:41 linux-next ac935d227366 2e44d63e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.