syzbot


WARNING in __nf_unregister_net_hook (7)

Status: upstream: reported on 2024/10/09 07:47
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+90c2972f9dd6cdcf7b07@syzkaller.appspotmail.com
First crash: 10d, last: 6d15h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (7) 0 (1) 2024/10/09 07:47
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __nf_unregister_net_hook (4) netfilter C error 66 954d 1284d 20/28 fixed on 2022/03/08 16:11
upstream WARNING in __nf_unregister_net_hook netfilter 1 1636d 1631d 0/28 auto-closed as invalid on 2020/06/22 17:41
upstream WARNING in __nf_unregister_net_hook (6) netfilter C error 2 247d 364d 25/28 fixed on 2024/03/26 17:39
upstream WARNING in __nf_unregister_net_hook (5) netfilter 183 867d 951d 0/28 auto-closed as invalid on 2022/07/31 13:33
upstream WARNING in __nf_unregister_net_hook (2) netfilter C done 9 1556d 1554d 15/28 fixed on 2020/09/16 22:51
upstream WARNING in __nf_unregister_net_hook (3) netfilter 1 1489d 1489d 0/28 auto-closed as invalid on 2020/12/16 11:13

Sample crash report:
------------[ cut here ]------------
hook not found, pf 2 num 0
WARNING: CPU: 1 PID: 12001 at net/netfilter/core.c:517 __nf_unregister_net_hook+0x482/0x800 net/netfilter/core.c:517
Modules linked in:
CPU: 1 UID: 0 PID: 12001 Comm: syz.0.1176 Not tainted 6.12.0-rc1-syzkaller-00173-g08c8acc9d8f3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__nf_unregister_net_hook+0x482/0x800 net/netfilter/core.c:517
Code: 01 90 48 8b 44 24 10 0f b6 04 28 84 c0 0f 85 6d 03 00 00 48 8b 04 24 8b 10 48 c7 c7 c0 3f 13 8d 8b 74 24 1c e8 9f 02 7c f7 90 <0f> 0b 90 90 e9 39 01 00 00 e8 30 06 bb f7 e9 5e fc ff ff e8 26 06
RSP: 0018:ffffc90003ac6f00 EFLAGS: 00010246
RAX: d1a1aff13076a100 RBX: ffff88802d43a000 RCX: 0000000000040000
RDX: ffffc9001829d000 RSI: 00000000000025b6 RDI: 00000000000025b7
RBP: dffffc0000000000 R08: ffffffff8155daa2 R09: fffffbfff1cf9fd8
R10: dffffc0000000000 R11: fffffbfff1cf9fd8 R12: ffff88807a50bb80
R13: ffff88807a50cc90 R14: 0000000000000004 R15: ffff88805d84d600
FS:  00007f33a14906c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c34b2ed CR3: 000000006b31e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nf_unregister_net_hook+0x98/0xe0 net/netfilter/core.c:535
 __nf_tables_unregister_hook net/netfilter/nf_tables_api.c:384 [inline]
 nf_tables_unregister_hook net/netfilter/nf_tables_api.c:391 [inline]
 nft_table_disable+0x305/0x3c0 net/netfilter/nf_tables_api.c:1221
 nf_tables_table_disable net/netfilter/nf_tables_api.c:1253 [inline]
 nf_tables_commit+0x4e7e/0x91e0 net/netfilter/nf_tables_api.c:10415
 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:574 [inline]
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:647 [inline]
 nfnetlink_rcv+0xc77/0x2ab0 net/netfilter/nfnetlink.c:665
 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:729 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:744
 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2607
 ___sys_sendmsg net/socket.c:2661 [inline]
 __sys_sendmsg+0x292/0x380 net/socket.c:2690
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f33a077dff9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f33a1490038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f33a0935f80 RCX: 00007f33a077dff9
RDX: 0000000000040010 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00007f33a07f0296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f33a0935f80 R15: 00007fff761b5218
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/09 09:20 net 08c8acc9d8f3 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __nf_unregister_net_hook
2024/10/05 07:43 net 9234a2549cb6 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __nf_unregister_net_hook
* Struck through repros no longer work on HEAD.