============================================ WARNING: possible recursive locking detected 5.12.0-rc5-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/11862 is trying to acquire lock: ffff88802c5d6130 (&runtime->sleep){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88802c5d6130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x25f/0x6a0 fs/io_uring.c:4979 but task is already holding lock: ffff888015876130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:137 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 3 locks held by syz-executor.2/11862: #0: ffff888015876440 (&runtime->oss.params_lock){+.+.}-{3:3}, at: snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1087 [inline] #0: ffff888015876440 (&runtime->oss.params_lock){+.+.}-{3:3}, at: snd_pcm_oss_get_active_substream+0x142/0x1c0 sound/core/oss/pcm_oss.c:1107 #1: ffff8881477c1908 (&group->lock){....}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:379 [inline] #1: ffff8881477c1908 (&group->lock){....}-{2:2}, at: snd_pcm_group_lock_irq sound/core/pcm_native.c:97 [inline] #1: ffff8881477c1908 (&group->lock){....}-{2:2}, at: snd_pcm_stream_lock_irq sound/core/pcm_native.c:136 [inline] #1: ffff8881477c1908 (&group->lock){....}-{2:2}, at: snd_pcm_drop+0x131/0x320 sound/core/pcm_native.c:2135 #2: ffff888015876130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:137 stack backtrace: CPU: 1 PID: 11862 Comm: syz-executor.2 Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_deadlock_bug kernel/locking/lockdep.c:2829 [inline] check_deadlock kernel/locking/lockdep.c:2872 [inline] validate_chain kernel/locking/lockdep.c:3661 [inline] __lock_acquire.cold+0x14c/0x3b4 kernel/locking/lockdep.c:4900 lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __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+0x25f/0x6a0 fs/io_uring.c:4979 __wake_up_common+0x147/0x650 kernel/sched/wait.c:108 __wake_up_common_lock+0xd0/0x130 kernel/sched/wait.c:138 snd_pcm_post_stop+0xb9/0x1f0 sound/core/pcm_native.c:1440 snd_pcm_action_single sound/core/pcm_native.c:1214 [inline] snd_pcm_action+0x143/0x170 sound/core/pcm_native.c:1295 snd_pcm_stop sound/core/pcm_native.c:1461 [inline] snd_pcm_drop+0x1ab/0x320 sound/core/pcm_native.c:2140 snd_pcm_kernel_ioctl+0x12f/0x240 sound/core/pcm_native.c:3342 snd_pcm_oss_change_params_locked+0x194b/0x39a0 sound/core/oss/pcm_oss.c:945 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1090 [inline] snd_pcm_oss_get_active_substream+0x164/0x1c0 sound/core/oss/pcm_oss.c:1107 snd_pcm_oss_get_rate sound/core/oss/pcm_oss.c:1761 [inline] snd_pcm_oss_set_rate sound/core/oss/pcm_oss.c:1753 [inline] snd_pcm_oss_ioctl+0x144f/0x3430 sound/core/oss/pcm_oss.c:2604 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe359e38188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000020000000 RSI: 00000000c0045002 RDI: 0000000000000004 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffd1c32b3ff R14: 00007fe359e38300 R15: 0000000000022000