public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
@ 2025-07-30  5:30 syzbot
  2025-10-30 12:37 ` syzbot
  0 siblings, 1 reply; 9+ messages in thread
From: syzbot @ 2025-07-30  5:30 UTC (permalink / raw)
  To: coreteam, davem, edumazet, horms, kadlec, kuba, linux-kernel,
	netdev, netfilter-devel, pabeni, pablo, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    9312ee76490d octeontx2-af: use unsigned int as iterator fo..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=114b88a2580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=4b71a7f00d74e4f3
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b381ecf9ad30/disk-9312ee76.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ebd0e7846e92/vmlinux-9312ee76.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b9c68d721e9c/bzImage-9312ee76.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com

x_tables: ip6_tables: mh match: only valid for protocol 135
------------[ cut here ]------------
hook not found, pf 10 num 1
WARNING: CPU: 0 PID: 7813 at net/netfilter/core.c:514 __nf_unregister_net_hook+0x30a/0x700 net/netfilter/core.c:514
Modules linked in:
CPU: 0 UID: 0 PID: 7813 Comm: syz.1.502 Not tainted 6.16.0-rc7-syzkaller-01904-g9312ee76490d #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__nf_unregister_net_hook+0x30a/0x700 net/netfilter/core.c:514
Code: 58 59 ef 05 01 90 48 8b 44 24 10 0f b6 04 28 84 c0 0f 85 e3 03 00 00 41 8b 17 48 c7 c7 60 8f 98 8c 44 89 ee e8 07 46 e7 f7 90 <0f> 0b 90 90 e9 d8 01 00 00 e8 98 bf d3 01 89 c3 31 ff 89 c6 e8 1d
RSP: 0018:ffffc9000e8a7768 EFLAGS: 00010246
RAX: d399e8c7c2db4300 RBX: ffff8880688c2400 RCX: ffff88802c435a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1bfaa6c R12: ffff888029a72440
R13: 000000000000000a R14: ffff888029a736c0 R15: ffffffff8c9a21fc
FS:  00007f5152aa66c0(0000) GS:ffff888125c12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c34c54a CR3: 0000000027c74000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nf_unregister_net_hook net/netfilter/core.c:-1 [inline]
 nf_unregister_net_hooks+0xcb/0x140 net/netfilter/core.c:610
 synproxy_tg6_destroy+0x58/0xb0 net/ipv6/netfilter/ip6t_SYNPROXY.c:94
 cleanup_entry+0x265/0x320 net/ipv6/netfilter/ip6_tables.c:669
 translate_table+0x1e5f/0x2040 net/ipv6/netfilter/ip6_tables.c:744
 do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline]
 do_ip6t_set_ctl+0x970/0xce0 net/ipv6/netfilter/ip6_tables.c:1644
 nf_setsockopt+0x26f/0x290 net/netfilter/nf_sockopt.c:101
 do_sock_setsockopt+0x179/0x1b0 net/socket.c:2344
 __sys_setsockopt net/socket.c:2369 [inline]
 __do_sys_setsockopt net/socket.c:2375 [inline]
 __se_sys_setsockopt net/socket.c:2372 [inline]
 __x64_sys_setsockopt+0x13f/0x1b0 net/socket.c:2372
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5151b8e9a9
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:00007f5152aa6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f5151db6080 RCX: 00007f5151b8e9a9
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 000000000000000d
RBP: 00007f5151c10d69 R08: 0000000000000470 R09: 0000000000000000
R10: 0000200000000480 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5151db6080 R15: 00007ffc85b4e498
 </TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
  2025-07-30  5:30 syzbot
@ 2025-10-30 12:37 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2025-10-30 12:37 UTC (permalink / raw)
  To: coreteam, davem, edumazet, fw, horms, kadlec, kuba, linux-kernel,
	netdev, netfilter-devel, pabeni, pablo, phil, syzkaller-bugs

syzbot has found a reproducer for the following issue on:

HEAD commit:    efd3e30e651d Merge branch 'net-stmmac-hwif-c-cleanups'
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=17ea1704580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=5683686a5f7ee53f
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=12afbc92580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a6eb09423004/disk-efd3e30e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f8a2fb326497/vmlinux-efd3e30e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a8cdcb8113e1/bzImage-efd3e30e.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com

------------[ cut here ]------------
hook not found, pf 5 num 0
WARNING: CPU: 1 PID: 9032 at net/netfilter/core.c:514 __nf_unregister_net_hook+0x30a/0x700 net/netfilter/core.c:514
Modules linked in:
CPU: 1 UID: 0 PID: 9032 Comm: syz.0.994 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__nf_unregister_net_hook+0x30a/0x700 net/netfilter/core.c:514
Code: d5 18 f8 05 01 90 48 8b 44 24 10 0f b6 04 28 84 c0 0f 85 e3 03 00 00 41 8b 17 48 c7 c7 00 72 72 8c 44 89 ee e8 67 4f 14 f8 90 <0f> 0b 90 90 e9 d8 01 00 00 e8 a8 17 d7 01 89 c3 31 ff 89 c6 e8 fd
RSP: 0018:ffffc9000c396938 EFLAGS: 00010246
RAX: a02a0e56549ab800 RBX: ffff8880583d1480 RCX: ffff888059800000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: dffffc0000000000 R08: ffff8880b8924293 R09: 1ffff11017124852
R10: dffffc0000000000 R11: ffffed1017124853 R12: ffff88807acf2480
R13: 0000000000000005 R14: ffff88802701a488 R15: ffff88807796ae3c
FS:  00007fba157656c0(0000) GS:ffff888126240000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555576f79808 CR3: 000000007f6c4000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8979 [inline]
 nft_flowtable_event net/netfilter/nf_tables_api.c:9758 [inline]
 __nf_tables_flowtable_event+0x5bf/0x8c0 net/netfilter/nf_tables_api.c:9803
 nf_tables_flowtable_event+0x103/0x160 net/netfilter/nf_tables_api.c:9834
 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline]
 call_netdevice_notifiers net/core/dev.c:2281 [inline]
 unregister_netdevice_many_notify+0x1860/0x2390 net/core/dev.c:12333
 unregister_netdevice_many net/core/dev.c:12396 [inline]
 unregister_netdevice_queue+0x33c/0x380 net/core/dev.c:12210
 unregister_netdevice include/linux/netdevice.h:3390 [inline]
 hsr_dev_finalize+0x707/0xaa0 net/hsr/hsr_device.c:800
 hsr_newlink+0x8ad/0x9f0 net/hsr/hsr_netlink.c:128
 rtnl_newlink_create+0x310/0xb00 net/core/rtnetlink.c:3833
 __rtnl_newlink net/core/rtnetlink.c:3950 [inline]
 rtnl_newlink+0x16e4/0x1c80 net/core/rtnetlink.c:4065
 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6951
 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg+0x21c/0x270 net/socket.c:742
 ____sys_sendmsg+0x505/0x830 net/socket.c:2630
 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2684
 __sys_sendmsg net/socket.c:2716 [inline]
 __do_sys_sendmsg net/socket.c:2721 [inline]
 __se_sys_sendmsg net/socket.c:2719 [inline]
 __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2719
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fba1498efc9
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:00007fba15765038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fba14be5fa0 RCX: 00007fba1498efc9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000005
RBP: 00007fba14a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fba14be6038 R14: 00007fba14be5fa0 R15: 00007ffcbfaff8c8
 </TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aQQLJtqY44w1iD2b@orbyte.nwl.cc>
@ 2025-10-31  1:51 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2025-10-31  1:51 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com
Tested-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com

Tested on:

commit:         12a7c6a9 Merge tag 'nf-next-25-10-30' of https://git.k..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=12f74e14580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=5683686a5f7ee53f
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=11b3cbcd980000

Note: testing is done by a robot and is best-effort only.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aQSN9-E4Q7fdlQ2C@orbyte.nwl.cc>
@ 2025-10-31 11:31 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2025-10-31 11:31 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in nf_hook_entry_head

------------[ cut here ]------------
WARNING: CPU: 0 PID: 36 at net/netfilter/core.c:329 nf_hook_entry_head+0x23e/0x2c0 net/netfilter/core.c:329
Modules linked in:
CPU: 0 UID: 0 PID: 36 Comm: kworker/u8:2 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: netns cleanup_net
RIP: 0010:nf_hook_entry_head+0x23e/0x2c0 net/netfilter/core.c:329
Code: 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ff e8 7d b9 b6 f8 4d 39 37 74 36 e8 53 04 51 f8 90 <0f> 0b 90 31 db 48 89 d8 5b 41 5e 41 5f 5d c3 cc cc cc cc cc e8 39
RSP: 0018:ffffc90000ac7768 EFLAGS: 00010293
RAX: ffffffff896eff5b RBX: ffff888030a98000 RCX: ffff8881416b9e40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff8881416b9e40 R09: 0000000000000006
R10: 000000000000000a R11: 0000000000000000 R12: ffff888020ec8000
R13: 0000000000000005 R14: ffff888020ec8000 R15: ffff888030a98108
FS:  0000000000000000(0000) GS:ffff88812613e000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e4b7156c0 CR3: 000000000dd38000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __nf_unregister_net_hook+0x74/0x700 net/netfilter/core.c:491
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8977 [inline]
 __nft_unregister_flowtable_net_hooks net/netfilter/nf_tables_api.c:8992 [inline]
 __nft_release_hook+0x180/0x350 net/netfilter/nf_tables_api.c:11985
 __nft_release_hooks net/netfilter/nf_tables_api.c:11999 [inline]
 nf_tables_pre_exit_net+0xa7/0x110 net/netfilter/nf_tables_api.c:12150
 ops_pre_exit_list net/core/net_namespace.c:161 [inline]
 ops_undo_list+0x187/0x990 net/core/net_namespace.c:234
 cleanup_net+0x4d8/0x820 net/core/net_namespace.c:696
 process_one_work kernel/workqueue.c:3263 [inline]
 process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>


Tested on:

commit:         0d0eb186 cxgb4: flower: add support for fragmentation
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=162a7fe2580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=5683686a5f7ee53f
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Note: no patches were applied.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aQTg3jUfRB9cCBv2@orbyte.nwl.cc>
@ 2025-10-31 18:54 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2025-10-31 18:54 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in nf_hook_entry_head

------------[ cut here ]------------
WARNING: CPU: 1 PID: 13 at net/netfilter/core.c:329 nf_hook_entry_head+0x23e/0x2c0 net/netfilter/core.c:329
Modules linked in:
CPU: 1 UID: 0 PID: 13 Comm: kworker/u8:1 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: netns cleanup_net
RIP: 0010:nf_hook_entry_head+0x23e/0x2c0 net/netfilter/core.c:329
Code: 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 ff e8 4d a5 b6 f8 4d 39 37 74 36 e8 23 f0 50 f8 90 <0f> 0b 90 31 db 48 89 d8 5b 41 5e 41 5f 5d e9 3f 00 da 01 cc e8 09
RSP: 0018:ffffc90000127768 EFLAGS: 00010293
RAX: ffffffff896f140b RBX: ffff888031eda000 RCX: ffff88801caa0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff88801caa0000 R09: 0000000000000006
R10: 000000000000000a R11: 0000000000000000 R12: ffff8880742e8000
R13: 0000000000000005 R14: ffff8880742e8000 R15: ffff888031eda108
FS:  0000000000000000(0000) GS:ffff88812623e000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555728d3588 CR3: 0000000026f40000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __nf_unregister_net_hook+0x74/0x700 net/netfilter/core.c:491
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8977 [inline]
 __nft_unregister_flowtable_net_hooks net/netfilter/nf_tables_api.c:8992 [inline]
 __nft_release_hook+0x180/0x350 net/netfilter/nf_tables_api.c:11985
 __nft_release_hooks net/netfilter/nf_tables_api.c:11999 [inline]
 nf_tables_pre_exit_net+0xa7/0x110 net/netfilter/nf_tables_api.c:12150
 ops_pre_exit_list net/core/net_namespace.c:161 [inline]
 ops_undo_list+0x187/0x990 net/core/net_namespace.c:234
 cleanup_net+0x4d8/0x820 net/core/net_namespace.c:696
 process_one_work kernel/workqueue.c:3263 [inline]
 process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>


Tested on:

commit:         1a2352ad Merge git://git.kernel.org/pub/scm/linux/kern..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1557d932580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=810aeb811fb1cca1
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Note: no patches were applied.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aWpDy3rhKZLmx4Ii@orbyte.nwl.cc>
@ 2026-01-16 15:06 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2026-01-16 15:06 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in __nf_unregister_net_hook

------------[ cut here ]------------
hook not found, pf 5 num 0
WARNING: net/netfilter/core.c:516 at __nf_unregister_net_hook+0x2c5/0x6f0 net/netfilter/core.c:516, CPU#1: syz.2.927/9538
Modules linked in:
CPU: 1 UID: 0 PID: 9538 Comm: syz.2.927 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__nf_unregister_net_hook+0x2dc/0x6f0 net/netfilter/core.c:516
Code: 24 30 48 8b 5c 24 08 44 8b 6c 24 04 48 8d 3d 1b e4 10 06 48 8b 44 24 10 0f b6 04 28 84 c0 0f 85 f1 02 00 00 41 8b 17 44 89 ee <67> 48 0f b9 3a e9 db 01 00 00 e8 15 4e da 01 89 c3 31 ff 89 c6 e8
RSP: 0018:ffffc9000bb86938 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888024644d00 RCX: ffff88801e7e9e80
RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff8f90dc70
RBP: dffffc0000000000 R08: ffffffff8f823877 R09: 1ffffffff1f0470e
R10: dffffc0000000000 R11: fffffbfff1f0470f R12: ffff88801dbea5c0
R13: 0000000000000005 R14: ffff88807cc48488 R15: ffff888077a0e53c
FS:  00007f13330c66c0(0000) GS:ffff888125f1c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000200 CR3: 000000007b3ee000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:9039 [inline]
 nft_flowtable_event net/netfilter/nf_tables_api.c:9818 [inline]
 __nf_tables_flowtable_event+0x5bf/0x8c0 net/netfilter/nf_tables_api.c:9863
 nf_tables_flowtable_event+0x103/0x160 net/netfilter/nf_tables_api.c:9894
 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2280 [inline]
 call_netdevice_notifiers net/core/dev.c:2294 [inline]
 unregister_netdevice_many_notify+0x1867/0x2340 net/core/dev.c:12395
 unregister_netdevice_many net/core/dev.c:12458 [inline]
 unregister_netdevice_queue+0x317/0x350 net/core/dev.c:12272
 unregister_netdevice include/linux/netdevice.h:3405 [inline]
 hsr_dev_finalize+0x707/0xaa0 net/hsr/hsr_device.c:823
 hsr_newlink+0x8ad/0x9f0 net/hsr/hsr_netlink.c:128
 rtnl_newlink_create+0x310/0xb00 net/core/rtnetlink.c:3840
 __rtnl_newlink net/core/rtnetlink.c:3957 [inline]
 rtnl_newlink+0x16e7/0x1c90 net/core/rtnetlink.c:4072
 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958
 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg+0x21c/0x270 net/socket.c:742
 ____sys_sendmsg+0x505/0x820 net/socket.c:2592
 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2646
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2683 [inline]
 __se_sys_sendmsg net/socket.c:2681 [inline]
 __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2681
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f133218efc9
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:00007f13330c6038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f13323e5fa0 RCX: 00007f133218efc9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000005
RBP: 00007f1332211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f13323e6038 R14: 00007f13323e5fa0 R15: 00007ffc243e1258
 </TASK>
----------------
Code disassembly (best guess):
   0:	24 30                	and    $0x30,%al
   2:	48 8b 5c 24 08       	mov    0x8(%rsp),%rbx
   7:	44 8b 6c 24 04       	mov    0x4(%rsp),%r13d
   c:	48 8d 3d 1b e4 10 06 	lea    0x610e41b(%rip),%rdi        # 0x610e42e
  13:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  18:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax
  1c:	84 c0                	test   %al,%al
  1e:	0f 85 f1 02 00 00    	jne    0x315
  24:	41 8b 17             	mov    (%r15),%edx
  27:	44 89 ee             	mov    %r13d,%esi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e9 db 01 00 00       	jmp    0x20f
  34:	e8 15 4e da 01       	call   0x1da4e4e
  39:	89 c3                	mov    %eax,%ebx
  3b:	31 ff                	xor    %edi,%edi
  3d:	89 c6                	mov    %eax,%esi
  3f:	e8                   	.byte 0xe8


Tested on:

commit:         74ecff77 xgbe: Use netlink extack to report errors to ..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=163f0852580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=70d5cf3628e49ccb
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=13e15a3a580000


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aaB3QhwYC6psSM-p@orbyte.nwl.cc>
@ 2026-02-26 18:55 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2026-02-26 18:55 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com
Tested-by: syzbot+78ac1e46d2966eb70fda@syzkaller.appspotmail.com

Tested on:

commit:         4916f2e2 bonding: print churn state via netlink
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=14974d5a580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=cebe37a6c1a9e335
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=15a0124a580000

Note: testing is done by a robot and is best-effort only.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aaFxCF4ia6k1Umo1@orbyte.nwl.cc>
@ 2026-02-27 11:52 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2026-02-27 11:52 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in __nf_unregister_net_hook

------------[ cut here ]------------
hook not found, pf 5 num 0
WARNING: CPU: 1 PID: 9010 at net/netfilter/core.c:517 __nf_unregister_net_hook+0x328/0x740 net/netfilter/core.c:517
Modules linked in:
CPU: 1 UID: 0 PID: 9010 Comm: syz.0.750 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:__nf_unregister_net_hook+0x328/0x740 net/netfilter/core.c:517
Code: 06 01 90 48 8b 44 24 08 42 0f b6 04 38 84 c0 0f 85 09 04 00 00 48 8b 04 24 8b 10 48 c7 c7 60 c0 b2 8c 89 ee e8 39 b6 e5 f7 90 <0f> 0b 90 90 e9 e9 01 00 00 e8 9a 07 e1 01 89 c3 31 ff 89 c6 e8 ef
RSP: 0018:ffffc90005016b38 EFLAGS: 00010246
RAX: 9d569200b7b5bf00 RBX: dffffc0000000000 RCX: ffff8880300a0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 0000000000000005 R08: ffff8880b8724293 R09: 1ffff110170e4852
R10: dffffc0000000000 R11: ffffed10170e4853 R12: ffff888057f16580
R13: ffff88807af62480 R14: ffff888021be0488 R15: dffffc0000000000
FS:  00007fbad7ffe6c0(0000) GS:ffff888125be7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c008884020 CR3: 0000000075906000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8979 [inline]
 nft_flowtable_event net/netfilter/nf_tables_api.c:9758 [inline]
 __nf_tables_flowtable_event+0x5bf/0x8c0 net/netfilter/nf_tables_api.c:9803
 nf_tables_flowtable_event+0x103/0x160 net/netfilter/nf_tables_api.c:9834
 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline]
 call_netdevice_notifiers net/core/dev.c:2281 [inline]
 unregister_netdevice_many_notify+0x1863/0x23d0 net/core/dev.c:12333
 rtnl_newlink_create+0x84b/0xb70 net/core/rtnetlink.c:3861
 __rtnl_newlink net/core/rtnetlink.c:3950 [inline]
 rtnl_newlink+0x1663/0x1be0 net/core/rtnetlink.c:4065
 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6951
 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg net/socket.c:742 [inline]
 ____sys_sendmsg+0xa84/0xaf0 net/socket.c:2630
 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2684
 __sys_sendmsg net/socket.c:2716 [inline]
 __do_sys_sendmsg net/socket.c:2721 [inline]
 __se_sys_sendmsg net/socket.c:2719 [inline]
 __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2719
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf0/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fbad899aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbad7ffe028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fbad8c15fa0 RCX: 00007fbad899aeb9
RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000000003
RBP: 00007fbad8a08c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbad8c16038 R14: 00007fbad8c15fa0 R15: 00007ffc697d6c08
 </TASK>


Tested on:

commit:         efd3e30e Merge branch 'net-stmmac-hwif-c-cleanups'
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
console output: https://syzkaller.appspot.com/x/log.txt?x=12d20952580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=365838d2488d91f6
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=117e755a580000


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9)
       [not found] <aaGSG1ermkScHc-3@orbyte.nwl.cc>
@ 2026-02-27 13:18 ` syzbot
  0 siblings, 0 replies; 9+ messages in thread
From: syzbot @ 2026-02-27 13:18 UTC (permalink / raw)
  To: linux-kernel, phil, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in __nf_unregister_net_hook

------------[ cut here ]------------
hook not found, pf 5 num 0
WARNING: net/netfilter/core.c:514 at __nf_unregister_net_hook+0x2c5/0x6f0 net/netfilter/core.c:514, CPU#1: syz.1.1035/9919
Modules linked in:
CPU: 1 UID: 0 PID: 9919 Comm: syz.1.1035 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:__nf_unregister_net_hook+0x2dc/0x6f0 net/netfilter/core.c:514
Code: 24 30 48 8b 5c 24 08 44 8b 6c 24 04 48 8d 3d fb 0b 5b 06 48 8b 44 24 10 0f b6 04 28 84 c0 0f 85 f1 02 00 00 41 8b 17 44 89 ee <67> 48 0f b9 3a e9 db 01 00 00 e8 55 38 e7 01 89 c3 31 ff 89 c6 e8
RSP: 0018:ffffc9000556eb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888032313d80 RCX: ffff888030ae9e40
RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff9020ab80
RBP: dffffc0000000000 R08: ffffffff901188b7 R09: 1ffffffff2023116
R10: dffffc0000000000 R11: fffffbfff2023117 R12: ffff88807ec62640
R13: 0000000000000005 R14: ffff88802a210490 R15: ffff88807dfd2cbc
FS:  00007fcd31fca6c0(0000) GS:ffff888125567000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2dc0fe8600 CR3: 000000007e876000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8834 [inline]
 nft_flowtable_event net/netfilter/nf_tables_api.c:9613 [inline]
 __nf_tables_flowtable_event+0x5bf/0x8c0 net/netfilter/nf_tables_api.c:9658
 nf_tables_flowtable_event+0x103/0x160 net/netfilter/nf_tables_api.c:9689
 notifier_call_chain+0x1be/0x400 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline]
 call_netdevice_notifiers net/core/dev.c:2301 [inline]
 unregister_netdevice_many_notify+0x186a/0x2370 net/core/dev.c:12412
 rtnl_newlink_create+0x84b/0xb70 net/core/rtnetlink.c:3868
 __rtnl_newlink net/core/rtnetlink.c:3957 [inline]
 rtnl_newlink+0x1666/0x1be0 net/core/rtnetlink.c:4072
 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6958
 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg net/socket.c:742 [inline]
 ____sys_sendmsg+0xa68/0xad0 net/socket.c:2592
 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2683 [inline]
 __se_sys_sendmsg net/socket.c:2681 [inline]
 __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcd3119aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcd31fca028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcd31415fa0 RCX: 00007fcd3119aeb9
RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000000003
RBP: 00007fcd31208c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcd31416038 R14: 00007fcd31415fa0 R15: 00007ffc25796e58
 </TASK>
----------------
Code disassembly (best guess):
   0:	24 30                	and    $0x30,%al
   2:	48 8b 5c 24 08       	mov    0x8(%rsp),%rbx
   7:	44 8b 6c 24 04       	mov    0x4(%rsp),%r13d
   c:	48 8d 3d fb 0b 5b 06 	lea    0x65b0bfb(%rip),%rdi        # 0x65b0c0e
  13:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  18:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax
  1c:	84 c0                	test   %al,%al
  1e:	0f 85 f1 02 00 00    	jne    0x315
  24:	41 8b 17             	mov    (%r15),%edx
  27:	44 89 ee             	mov    %r13d,%esi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e9 db 01 00 00       	jmp    0x20f
  34:	e8 55 38 e7 01       	call   0x1e7388e
  39:	89 c3                	mov    %eax,%ebx
  3b:	31 ff                	xor    %edi,%edi
  3d:	89 c6                	mov    %eax,%esi
  3f:	e8                   	.byte 0xe8


Tested on:

commit:         fd6dad4e netmem: remove the pp fields from net_iov
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1449a8d6580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=75b1f89e973ee407
dashboard link: https://syzkaller.appspot.com/bug?extid=78ac1e46d2966eb70fda
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Note: no patches were applied.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-02-27 13:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <aWpDy3rhKZLmx4Ii@orbyte.nwl.cc>
2026-01-16 15:06 ` [syzbot] [netfilter?] WARNING in __nf_unregister_net_hook (9) syzbot
     [not found] <aaGSG1ermkScHc-3@orbyte.nwl.cc>
2026-02-27 13:18 ` syzbot
     [not found] <aaFxCF4ia6k1Umo1@orbyte.nwl.cc>
2026-02-27 11:52 ` syzbot
     [not found] <aaB3QhwYC6psSM-p@orbyte.nwl.cc>
2026-02-26 18:55 ` syzbot
     [not found] <aQTg3jUfRB9cCBv2@orbyte.nwl.cc>
2025-10-31 18:54 ` syzbot
     [not found] <aQSN9-E4Q7fdlQ2C@orbyte.nwl.cc>
2025-10-31 11:31 ` syzbot
     [not found] <aQQLJtqY44w1iD2b@orbyte.nwl.cc>
2025-10-31  1:51 ` syzbot
2025-07-30  5:30 syzbot
2025-10-30 12:37 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox