============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- kworker/u8:20/3374 is trying to acquire lock: ffff8880238d6f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff8880238d6f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: hsr_dev_xmit+0x237/0x360 net/hsr/hsr_device.c:235 but task is already holding lock: ffff88807cab8f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff88807cab8f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: send_hsr_supervision_frame+0x380/0xcb0 net/hsr/hsr_device.c:330 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&hsr->seqnr_lock); lock(&hsr->seqnr_lock); *** DEADLOCK *** May be due to missing lock nesting notation 12 locks held by kworker/u8:20/3374: #0: ffff8881436bf948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline] #0: ffff8881436bf948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346 #1: ffffc9000e30fba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline] #1: ffffc9000e30fba0 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346 #2: ffff888066cbe0a8 (&ctx->uring_lock){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:228 [inline] #2: ffff888066cbe0a8 (&ctx->uring_lock){+.+.}-{4:4}, at: io_req_caches_free+0x19/0x60 io_uring/io_uring.c:2837 #3: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #3: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1195 [inline] #3: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xa5/0x2390 arch/x86/kernel/unwind_orc.c:479 #4: ffffc90000007be0 ((&hsr->announce_timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1745 #5: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #5: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #5: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: hsr_announce+0x83/0x360 net/hsr/hsr_device.c:419 #6: ffff88807cab8f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] #6: ffff88807cab8f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: send_hsr_supervision_frame+0x380/0xcb0 net/hsr/hsr_device.c:330 #7: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #7: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #7: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: hsr_forward_skb+0x9e/0x2860 net/hsr/hsr_forward.c:736 #8: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #8: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:918 [inline] #8: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x27b/0x3b50 net/core/dev.c:4688 #9: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #9: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #9: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: br_dev_xmit+0x185/0x1840 net/bridge/br_device.c:52 #10: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #10: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:918 [inline] #10: ffffffff8df3d100 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x27b/0x3b50 net/core/dev.c:4688 #11: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #11: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #11: ffffffff8df3d0a0 (rcu_read_lock){....}-{1:3}, at: hsr_dev_xmit+0x2d/0x360 net/hsr/hsr_device.c:229 stack backtrace: CPU: 0 UID: 0 PID: 3374 Comm: kworker/u8:20 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: iou_exit io_ring_exit_work Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_deadlock_bug+0x28b/0x2a0 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain+0x1a3f/0x2140 kernel/locking/lockdep.c:3895 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] hsr_dev_xmit+0x237/0x360 net/hsr/hsr_device.c:235 __netdev_start_xmit include/linux/netdevice.h:5248 [inline] netdev_start_xmit include/linux/netdevice.h:5257 [inline] xmit_one net/core/dev.c:3845 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3861 __dev_queue_xmit+0x1b8d/0x3b50 net/core/dev.c:4763 dev_queue_xmit include/linux/netdevice.h:3365 [inline] br_dev_queue_push_xmit+0x6c5/0x890 net/bridge/br_forward.c:53 NF_HOOK+0x320/0x3c0 include/linux/netfilter.h:318 br_forward_finish+0xd3/0x130 net/bridge/br_forward.c:66 NF_HOOK+0x320/0x3c0 include/linux/netfilter.h:318 __br_forward+0x41e/0x600 net/bridge/br_forward.c:115 deliver_clone net/bridge/br_forward.c:131 [inline] maybe_deliver+0xb5/0x160 net/bridge/br_forward.c:191 br_flood+0x31a/0x6a0 net/bridge/br_forward.c:238 br_dev_xmit+0x11b3/0x1840 net/bridge/br_device.c:108 __netdev_start_xmit include/linux/netdevice.h:5248 [inline] netdev_start_xmit include/linux/netdevice.h:5257 [inline] xmit_one net/core/dev.c:3845 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3861 __dev_queue_xmit+0x1b8d/0x3b50 net/core/dev.c:4763 dev_queue_xmit include/linux/netdevice.h:3365 [inline] hsr_xmit net/hsr/hsr_forward.c:438 [inline] hsr_forward_do net/hsr/hsr_forward.c:579 [inline] hsr_forward_skb+0x158b/0x2860 net/hsr/hsr_forward.c:741 send_hsr_supervision_frame+0x731/0xcb0 net/hsr/hsr_device.c:364 hsr_announce+0x1d5/0x360 net/hsr/hsr_device.c:421 call_timer_fn+0x17e/0x5f0 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2373 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2385 run_timer_base kernel/time/timer.c:2394 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2404 handle_softirqs+0x286/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:unwind_next_frame+0x199/0x2390 arch/x86/kernel/unwind_orc.c:494 Code: 04 28 84 c0 0f 85 3c 1b 00 00 4c 89 6c 24 50 4c 89 64 24 20 4c 89 7c 24 48 48 89 5c 24 10 0f b6 1b 48 8b 44 24 30 80 3c 28 00 <4c> 8b 7c 24 18 74 08 4c 89 ff e8 08 c2 b2 00 4d 8b 27 48 83 f3 01 RSP: 0018:ffffc9000e30f318 EFLAGS: 00000246 RAX: 1ffff92001c61e86 RBX: 0000000000000000 RCX: 3a706aac09b23a00 RDX: 0000000000000000 RSI: ffffffff8bbf0540 RDI: ffffffff8bbf0500 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffffff81738c45 R10: ffffc9000e30f438 R11: ffffffff81ac89b0 R12: 1ffff92001c61e7d R13: ffffc9000e30f438 R14: ffffc9000e30f3e8 R15: ffffffff81738c45 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __kmalloc_cache_noprof+0x3d5/0x6f0 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] slab_free_hook mm/slub.c:2495 [inline] slab_free mm/slub.c:6642 [inline] kmem_cache_free+0x16f/0x690 mm/slub.c:6752 __io_req_caches_free+0x1c1/0x270 io_uring/io_uring.c:2826 io_req_caches_free+0x21/0x60 io_uring/io_uring.c:2838 io_ring_exit_work+0x415/0x930 io_uring/io_uring.c:3036 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 ---------------- Code disassembly (best guess): 0: 04 28 add $0x28,%al 2: 84 c0 test %al,%al 4: 0f 85 3c 1b 00 00 jne 0x1b46 a: 4c 89 6c 24 50 mov %r13,0x50(%rsp) f: 4c 89 64 24 20 mov %r12,0x20(%rsp) 14: 4c 89 7c 24 48 mov %r15,0x48(%rsp) 19: 48 89 5c 24 10 mov %rbx,0x10(%rsp) 1e: 0f b6 1b movzbl (%rbx),%ebx 21: 48 8b 44 24 30 mov 0x30(%rsp),%rax 26: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) * 2a: 4c 8b 7c 24 18 mov 0x18(%rsp),%r15 <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 08 c2 b2 00 call 0xb2c241 39: 4d 8b 27 mov (%r15),%r12 3c: 48 83 f3 01 xor $0x1,%rbx