ODEBUG: Out of memory. ODEBUG disabled ====================================================== WARNING: possible circular locking dependency detected 5.15.189-syzkaller #0 Not tainted ------------------------------------------------------ syz.4.88/4597 is trying to acquire lock: ffffffff8c110da0 (console_owner){....}-{0:0}, at: console_trylock_spinning+0x150/0x350 kernel/printk/printk.c:1879 but task is already holding lock: ffff8880607811b8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc7/0xc50 kernel/bpf/lpm_trie.c:323 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&trie->lock){....}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 trie_delete_elem+0x90/0x710 kernel/bpf/lpm_trie.c:467 0xffffffffa0028aa2 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1878 [inline] bpf_trace_run2+0x15b/0x2d0 kernel/trace/bpf_trace.c:1915 trace_console_rcuidle include/trace/events/printk.h:10 [inline] call_console_drivers kernel/printk/printk.c:1932 [inline] console_unlock+0x101f/0x1200 kernel/printk/printk.c:2744 vprintk_emit+0xc0/0x150 kernel/printk/printk.c:2274 _printk+0xcc/0x110 kernel/printk/printk.c:2299 __dev_set_promiscuity+0x1d3/0x5b0 net/core/dev.c:8644 __dev_change_flags+0x40e/0x6a0 net/core/dev.c:8862 dev_change_flags+0x82/0x1a0 net/core/dev.c:8924 dev_ifsioc+0x147/0xe70 net/core/dev_ioctl.c:324 dev_ioctl+0x55f/0xe50 net/core/dev_ioctl.c:587 sock_do_ioctl+0x222/0x2f0 net/socket.c:1154 sock_ioctl+0x4ed/0x6e0 net/socket.c:1257 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #0 (console_owner){....}-{0:0}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c33/0x7c60 kernel/locking/lockdep.c:5012 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 console_trylock_spinning+0x170/0x350 kernel/printk/printk.c:1896 vprintk_emit+0xa7/0x150 kernel/printk/printk.c:2273 _printk+0xcc/0x110 kernel/printk/printk.c:2299 debug_objects_oom+0x89/0x2f0 lib/debugobjects.c:473 debug_object_activate+0x409/0x480 lib/debugobjects.c:699 debug_rcu_head_queue kernel/rcu/rcu.h:176 [inline] kvfree_call_rcu+0xb5/0x7c0 kernel/rcu/tree.c:3591 trie_update_elem+0x86e/0xc50 kernel/bpf/lpm_trie.c:396 bpf_map_update_value+0x57d/0x650 kernel/bpf/syscall.c:221 generic_map_update_batch+0x525/0x7c0 kernel/bpf/syscall.c:1424 bpf_map_do_batch+0x466/0x600 kernel/bpf/syscall.c:-1 __sys_bpf+0x601/0x670 kernel/bpf/syscall.c:-1 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&trie->lock); lock(console_owner); lock(&trie->lock); lock(console_owner); *** DEADLOCK *** 2 locks held by syz.4.88/4597: #0: ffffffff8c11c360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #1: ffff8880607811b8 (&trie->lock){....}-{2:2}, at: trie_update_elem+0xc7/0xc50 kernel/bpf/lpm_trie.c:323 stack backtrace: CPU: 1 PID: 4597 Comm: syz.4.88 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 check_noncircular+0x274/0x310 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x2c33/0x7c60 kernel/locking/lockdep.c:5012 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 console_trylock_spinning+0x170/0x350 kernel/printk/printk.c:1896 vprintk_emit+0xa7/0x150 kernel/printk/printk.c:2273 _printk+0xcc/0x110 kernel/printk/printk.c:2299 debug_objects_oom+0x89/0x2f0 lib/debugobjects.c:473 debug_object_activate+0x409/0x480 lib/debugobjects.c:699 debug_rcu_head_queue kernel/rcu/rcu.h:176 [inline] kvfree_call_rcu+0xb5/0x7c0 kernel/rcu/tree.c:3591 trie_update_elem+0x86e/0xc50 kernel/bpf/lpm_trie.c:396 bpf_map_update_value+0x57d/0x650 kernel/bpf/syscall.c:221 generic_map_update_batch+0x525/0x7c0 kernel/bpf/syscall.c:1424 bpf_map_do_batch+0x466/0x600 kernel/bpf/syscall.c:-1 __sys_bpf+0x601/0x670 kernel/bpf/syscall.c:-1 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f188d28db69 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:00007f188b0f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f188d4b4fa0 RCX: 00007f188d28db69 RDX: 0000000000000038 RSI: 0000200000000000 RDI: 000000000000001a RBP: 00007f188d310df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f188d4b4fa0 R15: 00007ffd7be87418