============================================
WARNING: possible recursive locking detected
5.13.0-rc5-syzkaller #0 Not tainted
--------------------------------------------
kworker/u4:0/9 is trying to acquire lock:
ffff888041926130 (&runtime->sleep){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline]
ffff888041926130 (&runtime->sleep){..-.}-{2:2}, at: io_poll_double_wake+0x246/0x810 fs/io_uring.c:4975
but task is already holding lock:
ffff8880273d8130 (&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
5 locks held by kworker/u4:0/9:
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline]
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline]
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline]
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
#0: ffff8880256a1938 ((wq_completion)phy9){+.+.}-{0:0}, at: process_one_work+0x771/0x13b0 kernel/workqueue.c:2247
#1: ffffc90000ce7db0 ((work_completion)(&sdata->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x13b0 kernel/workqueue.c:2251
#2: ffff88804199cd00 (&wdev->mtx){+.+.}-{3:3}, at: sdata_lock net/mac80211/ieee80211_i.h:1003 [inline]
#2: ffff88804199cd00 (&wdev->mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0x8d/0xcd0 net/mac80211/ibss.c:1683
#3: ffff888022e9d108 (&group->lock){..-.}-{2:2}, at: snd_pcm_period_elapsed+0x17/0x1c0 sound/core/pcm_lib.c:1799
#4: ffff8880273d8130 (&runtime->sleep){..-.}-{2:2}, at: __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:137
stack backtrace:
CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy9 ieee80211_iface_work
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0xa5/0xe6 lib/dump_stack.c:120
print_deadlock_bug kernel/locking/lockdep.c:2831 [inline]
check_deadlock kernel/locking/lockdep.c:2874 [inline]
validate_chain kernel/locking/lockdep.c:3663 [inline]
__lock_acquire.cold+0x149/0x399 kernel/locking/lockdep.c:4902
lock_acquire kernel/locking/lockdep.c:5512 [inline]
lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5477
__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+0x246/0x810 fs/io_uring.c:4975
__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+0x381/0x4e0 sound/core/pcm_lib.c:203
snd_pcm_update_hw_ptr0+0x73b/0x1a20 sound/core/pcm_lib.c:464
snd_pcm_period_elapsed+0x10d/0x1c0 sound/core/pcm_lib.c:1805
dummy_hrtimer_callback+0x7a/0x170 sound/drivers/dummy.c:377
__run_hrtimer kernel/time/hrtimer.c:1537 [inline]
__hrtimer_run_queues+0x4d7/0xb00 kernel/time/hrtimer.c:1601
hrtimer_run_softirq+0x176/0x340 kernel/time/hrtimer.c:1618
__do_softirq+0x29b/0x9f6 kernel/softirq.c:559
invoke_softirq kernel/softirq.c:433 [inline]
__irq_exit_rcu+0x136/0x200 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:1100
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:191
Code: 74 24 10 e8 ba 22 06 f9 48 89 ef e8 52 9b 06 f9 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 c3 95 fa f8 65 8b 05 1c 99 b5 77 85 c0 74 0a 5b 5d c3 e8 c0 60
RSP: 0018:ffffc90000ce7888 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff1c89eea
RDX: 0000000000000000 RSI: ffffffff88ab0480 RDI: 0000000000000001
RBP: ffff8880ba026380 R08: 0000000000000001 R09: ffffffff8e429907
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888024280d00
R13: 1ffff9200019cf19 R14: ffff8880242831e0 R15: ffff8880242831e0
hrtimer_start include/linux/hrtimer.h:422 [inline]
mac80211_hwsim_bss_info_changed+0xbac/0xdd0 drivers/net/wireless/mac80211_hwsim.c:2026
drv_bss_info_changed+0x194/0x430 net/mac80211/driver-ops.h:177
__ieee80211_sta_join_ibss+0x9bc/0x1430 net/mac80211/ibss.c:381
ieee80211_sta_create_ibss.cold+0xb5/0x101 net/mac80211/ibss.c:1354
ieee80211_sta_find_ibss net/mac80211/ibss.c:1484 [inline]
ieee80211_ibss_work.cold+0x23b/0x4c6 net/mac80211/ibss.c:1708
process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276
worker_thread+0x598/0xf80 kernel/workqueue.c:2422
kthread+0x36f/0x450 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294