============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- kworker/u8:5/152 is trying to acquire lock: ffff8880949dcf30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff8880949dcf30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: hsr_dev_xmit+0x237/0x360 net/hsr/hsr_device.c:235 but task is already holding lock: ffff888094dc4f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff888094dc4f30 (&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 14 locks held by kworker/u8:5/152: #0: ffff88801aedf148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3238 [inline] #0: ffff88801aedf148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3346 #1: ffffc90002f17ba0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3239 [inline] #1: ffffc90002f17ba0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3346 #2: ffffffff8f2bf730 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x820 net/core/net_namespace.c:670 #3: ffffffff8f2cc6c8 (rtnl_mutex){+.+.}-{4:4}, at: ops_exit_rtnl_list net/core/net_namespace.c:173 [inline] #3: ffffffff8f2cc6c8 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x2a4/0x990 net/core/net_namespace.c:248 #4: ffff88801c6b0188 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x3d/0x130 fs/kernfs/dir.c:1712 #5: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #5: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #5: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1195 [inline] #5: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: kernfs_root+0x1c/0x230 fs/kernfs/kernfs-internal.h:75 #6: ffffc90000007be0 ((&hsr->announce_timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x5f0 kernel/time/timer.c:1744 #7: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #7: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #7: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: hsr_announce+0x83/0x360 net/hsr/hsr_device.c:419 #8: ffff888094dc4f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] #8: ffff888094dc4f30 (&hsr->seqnr_lock){+.-.}-{3:3}, at: send_hsr_supervision_frame+0x380/0xcb0 net/hsr/hsr_device.c:330 #9: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #9: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #9: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: hsr_forward_skb+0x9e/0x2860 net/hsr/hsr_forward.c:736 #10: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #10: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:918 [inline] #10: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x284/0x3740 net/core/dev.c:4736 #11: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #11: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #11: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: br_dev_xmit+0x185/0x1840 net/bridge/br_device.c:52 #12: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #12: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:918 [inline] #12: ffffffff8df3d740 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x284/0x3740 net/core/dev.c:4736 #13: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #13: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #13: ffffffff8df3d6e0 (rcu_read_lock){....}-{1:3}, at: hsr_dev_xmit+0x2d/0x360 net/hsr/hsr_device.c:229 stack backtrace: CPU: 0 UID: 0 PID: 152 Comm: kworker/u8:5 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: netns cleanup_net 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:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 dev_queue_xmit include/linux/netdevice.h:3368 [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:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 dev_queue_xmit include/linux/netdevice.h:3368 [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:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x61a/0x860 kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403 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:debug_lockdep_rcu_enabled+0x2a/0x40 kernel/rcu/update.c:321 Code: f3 0f 1e fa 31 c0 83 3d a7 bc 35 04 00 74 1e 83 3d aa eb 35 04 00 74 15 65 48 8b 0c 25 08 b0 6e 92 31 c0 83 b9 2c 0b 00 00 00 <0f> 94 c0 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc RSP: 0018:ffffc90002f17348 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffffff82607f5c RCX: ffff888020b19e40 RDX: 0000000000000000 RSI: ffffffff8d8f8695 RDI: ffffffff8bbf08e0 RBP: ffffc90002f17498 R08: 0000000000000000 R09: ffffffff82607f5c R10: dffffc0000000000 R11: ffffed100fed0497 R12: 1ffffffff1efa692 R13: dffffc0000000000 R14: ffff88807f6824b0 R15: 0000000000000001 rcu_read_lock include/linux/rcupdate.h:868 [inline] class_rcu_constructor include/linux/rcupdate.h:1195 [inline] kernfs_root+0x41/0x230 fs/kernfs/kernfs-internal.h:75 kernfs_active fs/kernfs/dir.c:39 [inline] kernfs_drain+0x122/0x5e0 fs/kernfs/dir.c:496 __kernfs_remove+0x33b/0x570 fs/kernfs/dir.c:1508 kernfs_remove_by_name_ns+0xaf/0x130 fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfc/0x2c0 fs/sysfs/group.c:322 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:346 device_remove_groups drivers/base/core.c:2843 [inline] device_remove_attrs+0x208/0x260 drivers/base/core.c:2979 device_del+0x509/0x8e0 drivers/base/core.c:3877 unregister_netdevice_many_notify+0x1df2/0x2390 net/core/dev.c:12408 ops_exit_rtnl_list net/core/net_namespace.c:187 [inline] ops_undo_list+0x3dc/0x990 net/core/net_namespace.c:248 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 ---------------- Code disassembly (best guess): 0: f3 0f 1e fa endbr64 4: 31 c0 xor %eax,%eax 6: 83 3d a7 bc 35 04 00 cmpl $0x0,0x435bca7(%rip) # 0x435bcb4 d: 74 1e je 0x2d f: 83 3d aa eb 35 04 00 cmpl $0x0,0x435ebaa(%rip) # 0x435ebc0 16: 74 15 je 0x2d 18: 65 48 8b 0c 25 08 b0 mov %gs:0xffffffff926eb008,%rcx 1f: 6e 92 21: 31 c0 xor %eax,%eax 23: 83 b9 2c 0b 00 00 00 cmpl $0x0,0xb2c(%rcx) * 2a: 0f 94 c0 sete %al <-- trapping instruction 2d: c3 ret 2e: cc int3 2f: cc int3 30: cc int3 31: cc int3 32: cc int3 33: cc int3 34: cc int3 35: cc int3 36: cc int3 37: cc int3 38: cc int3 39: cc int3 3a: cc int3 3b: cc int3 3c: cc int3 3d: cc int3 3e: cc int3 3f: cc int3