============================================
WARNING: possible recursive locking detected
5.16.0-rc8-syzkaller #0 Not tainted
--------------------------------------------
syz-executor.4/26307 is trying to acquire lock:
ffff88801f1a6130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x2bf/0x690 fs/io_uring.c:5467
but task is already holding lock:
ffff88801f1a5130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:137 [inline]
ffff88801f1a5130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up+0xf8/0x1c0 kernel/sched/wait.c:157
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.4/26307:
#0: ffff88801f4a4678 (&u->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
#0: ffff88801f4a4678 (&u->lock){+.+.}-{2:2}, at: unix_dgram_sendmsg+0xdf9/0x2a50 net/unix/af_unix.c:1849
#1: ffff888149ec5910 (&group->lock){..-.}-{2:2}, at: snd_pcm_period_elapsed+0x1d/0x50 sound/core/pcm_lib.c:1848
#2: ffff88801f1a5130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:137 [inline]
#2: ffff88801f1a5130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up+0xf8/0x1c0 kernel/sched/wait.c:157
stack backtrace:
CPU: 1 PID: 26307 Comm: syz-executor.4 Not tainted 5.16.0-rc8-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+0x1dc/0x2d8 lib/dump_stack.c:106
print_deadlock_bug kernel/locking/lockdep.c:2956 [inline]
check_deadlock kernel/locking/lockdep.c:2999 [inline]
validate_chain+0x5984/0x8240 kernel/locking/lockdep.c:3788
__lock_acquire+0x1382/0x2b00 kernel/locking/lockdep.c:5027
lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5637
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
io_poll_double_wake+0x2bf/0x690 fs/io_uring.c:5467
__wake_up_common+0x2aa/0x4e0 kernel/sched/wait.c:108
__wake_up_common_lock kernel/sched/wait.c:138 [inline]
__wake_up+0x115/0x1c0 kernel/sched/wait.c:157
snd_pcm_update_state+0x3e9/0x440
snd_pcm_update_hw_ptr0+0xfff/0x1980 sound/core/pcm_lib.c:465
snd_pcm_period_elapsed_under_stream_lock+0xed/0x1f0 sound/core/pcm_lib.c:1817
snd_pcm_period_elapsed+0x28/0x50 sound/core/pcm_lib.c:1849
dummy_hrtimer_callback+0x87/0x190 sound/drivers/dummy.c:377
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x1b7/0x5d0 kernel/time/hrtimer.c:1766
__do_softirq+0x392/0x7a3 kernel/softirq.c:558
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:smack_privileged_cred+0x79/0x300 security/smack/smack_access.c:660
Code: 0f 85 7a 02 00 00 48 63 05 04 7e 88 08 48 01 c5 48 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 ef e8 1b 56 fb fd 4c 8b 65 00 <48> 89 df 48 c7 c6 e0 a8 9c 8c 44 89 f2 31 c9 e8 93 54 fd ff 89 c3
RSP: 0018:ffffc9000af17530 EFLAGS: 00000246
RAX: 1ffff11007647281 RBX: ffff888075075a00 RCX: 0000000000040000
RDX: ffffc900036b6000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff88803b239408 R08: ffffffff83d387be R09: ffffc9000af17610
R10: fffff520015e2ec9 R11: 0000000000000000 R12: ffffffff8d0cb840
R13: dffffc0000000000 R14: 0000000000000020 R15: dffffc0000000000
smack_unix_may_send+0x1f9/0x2e0 security/smack/smack_lsm.c:3647
security_unix_may_send+0x53/0xb0 security/security.c:2163
unix_dgram_sendmsg+0xf9e/0x2a50 net/unix/af_unix.c:1892
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x5b9/0x910 net/socket.c:2409
___sys_sendmsg net/socket.c:2463 [inline]
__sys_sendmmsg+0x3ba/0x750 net/socket.c:2549
__do_sys_sendmmsg net/socket.c:2578 [inline]
__se_sys_sendmmsg net/socket.c:2575 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2575
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f2713f6fe99
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:00007f27128e5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2714082f60 RCX: 00007f2713f6fe99
RDX: 0000000000000318 RSI: 00000000200bd000 RDI: 0000000000000004
RBP: 00007f2713fc9ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe8657e61f R14: 00007f27128e5300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 0f 85 7a 02 00 00 jne 0x280
6: 48 63 05 04 7e 88 08 movslq 0x8887e04(%rip),%rax # 0x8887e11
d: 48 01 c5 add %rax,%rbp
10: 48 89 e8 mov %rbp,%rax
13: 48 c1 e8 03 shr $0x3,%rax
17: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1)
1c: 74 08 je 0x26
1e: 48 89 ef mov %rbp,%rdi
21: e8 1b 56 fb fd callq 0xfdfb5641
26: 4c 8b 65 00 mov 0x0(%rbp),%r12
* 2a: 48 89 df mov %rbx,%rdi <-- trapping instruction
2d: 48 c7 c6 e0 a8 9c 8c mov $0xffffffff8c9ca8e0,%rsi
34: 44 89 f2 mov %r14d,%edx
37: 31 c9 xor %ecx,%ecx
39: e8 93 54 fd ff callq 0xfffd54d1
3e: 89 c3 mov %eax,%ebx