============================================ WARNING: possible recursive locking detected 5.9.0-rc3-syzkaller #0 Not tainted -------------------------------------------- syz-executor.1/14270 is trying to acquire lock: ffff88808e623130 (&runtime->sleep){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88808e623130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x143/0x3b0 fs/io_uring.c:4730 but task is already holding lock: ffff88804b63d130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:122 [inline] ffff88804b63d130 (&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 2 locks held by syz-executor.1/14270: #0: ffff888214caa908 (&group->lock){..-.}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:379 [inline] #0: ffff888214caa908 (&group->lock){..-.}-{2:2}, at: snd_pcm_group_lock_irq sound/core/pcm_native.c:97 [inline] #0: ffff888214caa908 (&group->lock){..-.}-{2:2}, at: snd_pcm_stream_lock_irq sound/core/pcm_native.c:136 [inline] #0: ffff888214caa908 (&group->lock){..-.}-{2:2}, at: snd_pcm_drop+0x1d0/0x290 sound/core/pcm_native.c:2128 #1: ffff88804b63d130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:122 [inline] #1: ffff88804b63d130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up+0xb8/0x150 kernel/sched/wait.c:142 stack backtrace: CPU: 0 PID: 14270 Comm: syz-executor.1 Not tainted 5.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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_post_stop sound/core/pcm_native.c:1434 [inline] snd_pcm_action_single sound/core/pcm_native.c:1209 [inline] snd_pcm_action sound/core/pcm_native.c:1290 [inline] snd_pcm_stop+0x374/0x460 sound/core/pcm_native.c:1455 snd_pcm_drop+0x16d/0x290 sound/core/pcm_native.c:2133 snd_pcm_oss_sync+0x1dc/0x900 sound/core/oss/pcm_oss.c:1711 snd_pcm_oss_ioctl+0x89a/0x4630 sound/core/oss/pcm_oss.c:2590 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5b9 Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4e7533dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000015f80 RCX: 000000000045d5b9 RDX: 0000000000000000 RSI: 0000000000005001 RDI: 0000000000000003 RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007ffcc0985a6f R14: 00007f4e7533e9c0 R15: 000000000118cf4c