============================================ WARNING: possible recursive locking detected 6.1.143-syzkaller #0 Not tainted -------------------------------------------- kworker/u4:4/14804 is trying to acquire lock: ffff88803098b1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88803098b1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: unix_collect_skb+0x15a/0x550 net/unix/garbage.c:361 but task is already holding lock: ffff88803098c1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88803098c1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: unix_collect_skb+0xb7/0x550 net/unix/garbage.c:353 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(rlock-AF_UNIX); lock(rlock-AF_UNIX); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by kworker/u4:4/14804: #0: ffff888017479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #1: ffffc90003b57d00 (unix_gc_work){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #2: ffffffff8de41c38 (unix_gc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffffffff8de41c38 (unix_gc_lock){+.+.}-{2:2}, at: __unix_gc+0x9e/0x1850 net/unix/garbage.c:555 #3: ffff88803098c1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff88803098c1e8 (rlock-AF_UNIX){+.+.}-{2:2}, at: unix_collect_skb+0xb7/0x550 net/unix/garbage.c:353 stack backtrace: CPU: 1 PID: 14804 Comm: kworker/u4:4 Not tainted 6.1.143-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: events_unbound __unix_gc Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 __lock_acquire+0x122f/0x7c50 kernel/locking/lockdep.c:-1 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] unix_collect_skb+0x15a/0x550 net/unix/garbage.c:361 __unix_walk_scc net/unix/garbage.c:484 [inline] unix_walk_scc net/unix/garbage.c:509 [inline] __unix_gc+0x106a/0x1850 net/unix/garbage.c:567 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295