============================================
WARNING: possible recursive locking detected
5.16.0-rc7-syzkaller #0 Not tainted
--------------------------------------------
syz-executor.3/21249 is trying to acquire lock:
ffff88801b4da130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x2ba/0x7c0 fs/io_uring.c:5467
but task is already holding lock:
ffff888078ba5130 (&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.3/21249:
#0: ffff888078e960a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __do_sys_io_uring_enter+0xf60/0x1f50 fs/io_uring.c:10075
#1: ffff88814a9be110 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 sound/core/pcm_native.c:170
#2: ffff888078ba5130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:137
stack backtrace:
CPU: 0 PID: 21249 Comm: syz-executor.3 Not tainted 5.16.0-rc7-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+0x2ba/0x7c0 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_update_state+0x46a/0x540 sound/core/pcm_lib.c:204
snd_pcm_update_hw_ptr0+0xa75/0x1a50 sound/core/pcm_lib.c:465
snd_pcm_period_elapsed_under_stream_lock+0x15a/0x230 sound/core/pcm_lib.c:1817
snd_pcm_period_elapsed+0x28/0x50 sound/core/pcm_lib.c:1849
dummy_hrtimer_callback+0x94/0x1b0 sound/drivers/dummy.c:377
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:phys_addr_valid arch/x86/mm/physaddr.h:7 [inline]
RIP: 0010:__phys_addr+0x77/0x140 arch/x86/mm/physaddr.c:28
Code: 00 4c 39 e5 72 7b e8 e8 e9 41 00 48 c7 c0 75 13 91 8d 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 0f b6 14 11 <38> c2 7f 08 84 d2 0f 85 99 00 00 00 44 0f b6 2d 2a 35 5c 0c bf 3f
RSP: 0018:ffffc90011197a90 EFLAGS: 00000a03
RAX: 0000000000000005 RBX: ffff88801f1ccd00 RCX: 1ffffffff1b2226e
RDX: 0000000000000000 RSI: ffffffff8134de18 RDI: 0000000000000003
RBP: ffff88809f1ccd00 R08: ffff88809f1ccd00 R09: 0000000000000000
R10: ffffffff8134de0e R11: 0000000000000000 R12: 000000001f1ccd00
R13: 0000000000000002 R14: ffffc90011197c60 R15: ffffea0001e7eec0
virt_to_head_page include/linux/mm.h:861 [inline]
memcg_slab_post_alloc_hook+0x4b/0x3e0 mm/slab.h:310
slab_post_alloc_hook mm/slab.h:526 [inline]
kmem_cache_alloc_bulk+0x34a/0x480 mm/slab.c:3554
__io_alloc_req_refill fs/io_uring.c:2015 [inline]
io_alloc_req_refill fs/io_uring.c:2041 [inline]
io_submit_sqes.cold+0x1fe/0x444 fs/io_uring.c:7360
__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:0x7f3cc729be99
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:00007f3cc5c11168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 00007f3cc73aef60 RCX: 00007f3cc729be99
RDX: 0000000000000000 RSI: 00000000000000b7 RDI: 0000000000000003
RBP: 00007f3cc72f5ff1 R08: 0000000000000000 R09: 2000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffce963c7df R14: 00007f3cc5c11300 R15: 0000000000022000
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
----------------
Code disassembly (best guess):
0: 00 4c 39 e5 add %cl,-0x1b(%rcx,%rdi,1)
4: 72 7b jb 0x81
6: e8 e8 e9 41 00 callq 0x41e9f3
b: 48 c7 c0 75 13 91 8d mov $0xffffffff8d911375,%rax
12: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
19: fc ff df
1c: 48 89 c1 mov %rax,%rcx
1f: 83 e0 07 and $0x7,%eax
22: 48 c1 e9 03 shr $0x3,%rcx
26: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx
* 2a: 38 c2 cmp %al,%dl <-- trapping instruction
2c: 7f 08 jg 0x36
2e: 84 d2 test %dl,%dl
30: 0f 85 99 00 00 00 jne 0xcf
36: 44 0f b6 2d 2a 35 5c movzbl 0xc5c352a(%rip),%r13d # 0xc5c3568
3d: 0c
3e: bf .byte 0xbf
3f: 3f (bad)