============================================ WARNING: possible recursive locking detected 5.9.0-rc3-syzkaller #0 Not tainted -------------------------------------------- kworker/0:4/8151 is trying to acquire lock: ffff888094b6d130 (&runtime->sleep){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff888094b6d130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x143/0x3b0 fs/io_uring.c:4730 but task is already holding lock: ffff88809324b130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:122 [inline] ffff88809324b130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up+0xb8/0x150 kernel/sched/wait.c:142 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&runtime->sleep); lock(&runtime->sleep); *** DEADLOCK *** May be due to missing lock nesting notation 6 locks held by kworker/0:4/8151: #0: ffff8880aa463d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x6f4/0xfc0 kernel/workqueue.c:2242 #1: ffffc9000a47fd80 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x733/0xfc0 kernel/workqueue.c:2244 #2: ffffffff897d5d68 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:250 #3: ffffffff894fc8a0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x1e8/0x370 kernel/printk/printk.c:2028 #4: ffff888214e4a108 (&group->lock){..-.}-{2:2}, at: snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1799 #5: ffff88809324b130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:122 [inline] #5: ffff88809324b130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up+0xb8/0x150 kernel/sched/wait.c:142 stack backtrace: CPU: 0 PID: 8151 Comm: kworker/0:4 Not tainted 5.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events linkwatch_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d6/0x29e lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:2391 [inline] check_deadlock kernel/locking/lockdep.c:2432 [inline] validate_chain+0x69a4/0x88a0 kernel/locking/lockdep.c:3202 __lock_acquire+0x110b/0x2ae0 kernel/locking/lockdep.c:4426 lock_acquire+0x140/0x6f0 kernel/locking/lockdep.c:5006 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] io_poll_double_wake+0x143/0x3b0 fs/io_uring.c:4730 __wake_up_common+0x30a/0x4e0 kernel/sched/wait.c:93 __wake_up_common_lock kernel/sched/wait.c:123 [inline] __wake_up+0xd4/0x150 kernel/sched/wait.c:142 snd_pcm_update_state+0x3e9/0x440 sound/core/pcm_lib.c:203 snd_pcm_update_hw_ptr0+0xffc/0x19e0 sound/core/pcm_lib.c:464 snd_pcm_period_elapsed+0xfb/0x210 sound/core/pcm_lib.c:1805 dummy_hrtimer_callback+0x87/0x190 sound/drivers/dummy.c:378 __run_hrtimer kernel/time/hrtimer.c:1524 [inline] __hrtimer_run_queues+0x47f/0x930 kernel/time/hrtimer.c:1588 hrtimer_run_softirq+0x15a/0x1b0 kernel/time/hrtimer.c:1605 __do_softirq+0x256/0x6d5 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x91/0xe0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0x21f/0x230 kernel/softirq.c:423 irq_exit_rcu+0x5/0x20 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0xd5/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] RIP: 0010:console_unlock+0xa60/0xe20 kernel/printk/printk.c:2509 Code: 8b 44 24 48 42 80 3c 20 00 74 0c 48 c7 c7 b8 17 4d 89 e8 73 8c 56 00 48 83 3d 13 e2 ee 07 00 0f 84 9c 03 00 00 48 89 df 57 9d <0f> 1f 44 00 00 f6 44 24 0f 01 74 24 e8 cf c7 16 00 48 c7 c7 bf d1 RSP: 0018:ffffc9000a47f8a0 EFLAGS: 00000286 RAX: 1ffffffff129a2f7 RBX: 0000000000000286 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000286 RBP: ffffc9000a47f970 R08: dffffc0000000000 R09: fffffbfff167d899 R10: fffffbfff167d899 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff896f8070 vprintk_emit+0x205/0x370 kernel/printk/printk.c:2029 printk+0x62/0x83 kernel/printk/printk.c:2078 addrconf_notify+0x2af4/0x3a60 net/ipv6/addrconf.c:3567 notifier_call_chain kernel/notifier.c:83 [inline] __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:368 call_netdevice_notifiers_info net/core/dev.c:2033 [inline] netdev_state_change+0x13e/0x1e0 net/core/dev.c:1463 linkwatch_do_dev+0x10a/0x160 net/core/link_watch.c:167 __linkwatch_run_queue+0x44d/0x770 net/core/link_watch.c:212 linkwatch_event+0x48/0x50 net/core/link_watch.c:251 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294