============================================ WARNING: possible recursive locking detected 5.16.0-rc6-syzkaller #0 Not tainted -------------------------------------------- syz-executor.1/24899 is trying to acquire lock: ffff88804574b130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x2be/0x820 fs/io_uring.c:5467 but task is already holding lock: ffff88804574a130 (&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 4 locks held by syz-executor.1/24899: #0: ffff8880457490a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __do_sys_io_uring_enter+0xf60/0x1f50 fs/io_uring.c:10075 #1: ffff88804574a440 (&runtime->oss.params_lock){+.+.}-{3:3}, at: snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1101 [inline] #1: ffff88804574a440 (&runtime->oss.params_lock){+.+.}-{3:3}, at: snd_pcm_oss_make_ready+0xc7/0x1b0 sound/core/oss/pcm_oss.c:1163 #2: ffff88814a736910 (&group->lock){..-.}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:374 [inline] #2: ffff88814a736910 (&group->lock){..-.}-{2:2}, at: snd_pcm_group_lock_irq sound/core/pcm_native.c:97 [inline] #2: ffff88814a736910 (&group->lock){..-.}-{2:2}, at: snd_pcm_stream_lock_irq sound/core/pcm_native.c:136 [inline] #2: ffff88814a736910 (&group->lock){..-.}-{2:2}, at: snd_pcm_drop+0x131/0x320 sound/core/pcm_native.c:2150 #3: ffff88804574a130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:137 stack backtrace: CPU: 0 PID: 24899 Comm: syz-executor.1 Not tainted 5.16.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2956 [inline] check_deadlock kernel/locking/lockdep.c:2999 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire.cold+0x149/0x3ab kernel/locking/lockdep.c:5027 lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 io_poll_double_wake+0x2be/0x820 fs/io_uring.c:5467 __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:1455 snd_pcm_action_single sound/core/pcm_native.c:1229 [inline] snd_pcm_action+0x143/0x170 sound/core/pcm_native.c:1310 snd_pcm_stop sound/core/pcm_native.c:1476 [inline] snd_pcm_drop+0x1ab/0x320 sound/core/pcm_native.c:2155 snd_pcm_kernel_ioctl+0x2af/0x310 sound/core/pcm_native.c:3382 snd_pcm_oss_change_params_locked+0x13b8/0x3bf0 sound/core/oss/pcm_oss.c:958 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1104 [inline] snd_pcm_oss_make_ready+0xe7/0x1b0 sound/core/oss/pcm_oss.c:1163 snd_pcm_oss_set_trigger.isra.0+0x30f/0x6e0 sound/core/oss/pcm_oss.c:2080 snd_pcm_oss_poll+0x661/0xb10 sound/core/oss/pcm_oss.c:2872 vfs_poll include/linux/poll.h:90 [inline] __io_arm_poll_handler+0x3a1/0xcf0 fs/io_uring.c:5621 io_arm_poll_handler+0x322/0x800 fs/io_uring.c:5687 io_queue_sqe_arm_apoll+0x61/0x1a0 fs/io_uring.c:6999 __io_queue_sqe fs/io_uring.c:7037 [inline] io_queue_sqe fs/io_uring.c:7064 [inline] io_submit_sqe fs/io_uring.c:7267 [inline] io_submit_sqes+0x796a/0x8a20 fs/io_uring.c:7373 __do_sys_io_uring_enter+0xf6e/0x1f50 fs/io_uring.c:10076 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f7f0b728e99 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:00007f7f0a09e168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007f7f0b83bf60 RCX: 00007f7f0b728e99 RDX: 0000000000000000 RSI: 00000000000002ff RDI: 0000000000000013 RBP: 00007f7f0b782ff1 R08: 0000000000000000 R09: 0001000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7f0bd6fb1f R14: 00007f7f0a09e300 R15: 0000000000022000