netlink: 5 bytes leftover after parsing attributes in process `syz.4.107'. net_ratelimit: 162 callbacks suppressed ============================= [ BUG: Invalid wait context ] 6.12.0-rc6-next-20241105-syzkaller #0 Not tainted ----------------------------- syz.4.107/6285 is trying to lock: ffff88807d304200 (&trie->lock){....}-{3:3}, at: trie_delete_elem+0x96/0x6a0 kernel/bpf/lpm_trie.c:462 other info that might help us debug this: context-{5:5} 3 locks held by syz.4.107/6285: #0: ffffffff8fd39b90 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fcd6058 (net_ratelimit_state.lock){....}-{2:2}, at: ___ratelimit+0x184/0x690 lib/ratelimit.c:47 #2: ffffffff8e93c160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8e93c160 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8e93c160 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2339 [inline] #2: ffffffff8e93c160 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x1fc/0x540 kernel/trace/bpf_trace.c:2381 stack backtrace: CPU: 1 UID: 0 PID: 6285 Comm: syz.4.107 Not tainted 6.12.0-rc6-next-20241105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 trie_delete_elem+0x96/0x6a0 kernel/bpf/lpm_trie.c:462 bpf_prog_1c0c44170264bb34+0x46/0x4a bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2340 [inline] bpf_trace_run2+0x2ec/0x540 kernel/trace/bpf_trace.c:2381 trace_console include/trace/events/printk.h:10 [inline] printk_sprint+0x44b/0x4b0 kernel/printk/printk.c:2234 vprintk_store+0x984/0x1160 kernel/printk/printk.c:2329 vprintk_emit+0x271/0xa10 kernel/printk/printk.c:2401 vprintk_deferred kernel/printk/printk.c:4559 [inline] _printk_deferred+0xdc/0x120 kernel/printk/printk.c:4568 ___ratelimit+0x4d9/0x690 lib/ratelimit.c:56 ovs_ct_limit_get_zone_limit net/openvswitch/conntrack.c:1804 [inline] ovs_ct_limit_cmd_get+0x491/0x14f0 net/openvswitch/conntrack.c:1943 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline] genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0xb14/0xec0 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2556 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1362 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1906 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:726 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2669 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:0x7f3eed17e719 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:00007f3eede96038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f3eed336130 RCX: 00007f3eed17e719 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000006 RBP: 00007f3eed1f139e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3eed336130 R15: 00007ffea129c8a8 netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range