syzbot


possible deadlock in snd_hrtimer_callback (2)

Status: fixed on 2023/02/24 13:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+8285e973a41b5aa68902@syzkaller.appspotmail.com
Fix commit: 96b097091c66 ALSA: pcm: Use deferred fasync helper 95cc637c1afd ALSA: timer: Use deferred fasync helper
First crash: 1064d, last: 797d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: possible deadlock in kill_fasync (log)
Repro: C syz .config
  
Discussions (16)
Title Replies (including bot) Last reply
[PATCH 5.4 000/389] 5.4.211-rc1 review 396 (396) 2022/10/26 16:43
[PATCH 5.19 000/365] 5.19.4-rc1 review 384 (384) 2022/08/29 09:33
[PATCH 4.19 000/287] 4.19.256-rc1 review 298 (298) 2022/08/25 10:11
[PATCH 4.9 000/101] 4.9.326-rc1 review 108 (108) 2022/08/24 07:24
[PATCH 4.14 000/229] 4.14.291-rc1 review 232 (232) 2022/08/24 06:23
[PATCH 5.15 000/244] 5.15.63-rc1 review 247 (247) 2022/08/23 21:46
[PATCH AUTOSEL 5.15 01/28] lib/list_debug.c: Detect uninitialized lists 29 (29) 2022/08/23 09:34
[PATCH 5.10 000/158] 5.10.138-rc1 review 159 (159) 2022/08/23 08:28
[PATCH AUTOSEL 5.19 01/48] lib/list_debug.c: Detect uninitialized lists 50 (50) 2022/08/20 14:33
[PATCH AUTOSEL 4.9 1/8] tty: serial: Fix refcount leak bug in ucc_uart.c 8 (8) 2022/08/14 16:30
[PATCH AUTOSEL 4.14 1/9] tty: serial: Fix refcount leak bug in ucc_uart.c 9 (9) 2022/08/14 16:29
[PATCH AUTOSEL 4.19 01/14] lib/list_debug.c: Detect uninitialized lists 14 (14) 2022/08/14 16:29
[PATCH AUTOSEL 5.4 01/16] lib/list_debug.c: Detect uninitialized lists 16 (16) 2022/08/14 16:28
[PATCH AUTOSEL 5.10 01/19] lib/list_debug.c: Detect uninitialized lists 19 (19) 2022/08/14 16:27
[PATCH AUTOSEL 5.18 01/39] lib/list_debug.c: Detect uninitialized lists 39 (39) 2022/08/14 16:23
[syzbot] possible deadlock in snd_hrtimer_callback (2) 0 (2) 2022/02/03 19:44
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 possible deadlock in snd_hrtimer_callback 1 185d 185d 0/3 auto-obsoleted due to no activity on 2024/07/15 04:27
upstream possible deadlock in snd_hrtimer_callback fs C done 571 1065d 1172d 20/28 fixed on 2021/11/10 00:50

Sample crash report:
=====================================================
WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected
5.19.0-rc7-syzkaller-00199-g515f71412bb7 #0 Not tainted
-----------------------------------------------------
syz-executor316/3608 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
ffffffff8ba0a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xab/0x380 fs/fcntl.c:791

and this task is already holding:
ffff888026885df0 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x24/0x380 fs/fcntl.c:777
which would create a new lock dependency:
 (&f->f_owner.lock){....}-{2:2} -> (tasklist_lock){.+.+}-{2:2}

but this new dependency connects a HARDIRQ-irq-safe lock:
 (&timer->lock){-...}-{2:2}

... which became HARDIRQ-irq-safe at:
  lock_acquire kernel/locking/lockdep.c:5665 [inline]
  lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
  __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
  _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
  spin_lock include/linux/spinlock.h:349 [inline]
  snd_hrtimer_callback+0x4f/0x3c0 sound/core/hrtimer.c:38
  __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
  __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749
  hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
  local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
  __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112
  sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106
  asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
  __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
  _raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194
  spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
  queueptr+0x9a/0xd0 sound/core/seq/seq_queue.c:214
  snd_seq_enqueue_event+0x5f/0x3e0 sound/core/seq/seq_queue.c:308
  snd_seq_client_enqueue_event.constprop.0+0x230/0x440 sound/core/seq/seq_clientmgr.c:976
  snd_seq_kernel_client_enqueue sound/core/seq/seq_clientmgr.c:2298 [inline]
  snd_seq_kernel_client_enqueue+0x191/0x1e0 sound/core/seq/seq_clientmgr.c:2270
  insert_queue sound/core/seq/oss/seq_oss_rw.c:174 [inline]
  snd_seq_oss_write+0x5d7/0x780 sound/core/seq/oss/seq_oss_rw.c:135
  odev_write+0x55/0x90 sound/core/seq/oss/seq_oss.c:168
  vfs_write+0x269/0xac0 fs/read_write.c:589
  ksys_write+0x127/0x250 fs/read_write.c:644
  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+0x63/0xcd

to a HARDIRQ-irq-unsafe lock:
 (tasklist_lock){.+.+}-{2:2}

... which became HARDIRQ-irq-unsafe at:
...
  lock_acquire kernel/locking/lockdep.c:5665 [inline]
  lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
  __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
  _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
  do_wait+0x284/0xce0 kernel/exit.c:1508
  kernel_wait+0x9c/0x150 kernel/exit.c:1698
  call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
  call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166
  process_one_work+0x996/0x1610 kernel/workqueue.c:2289
  worker_thread+0x665/0x1080 kernel/workqueue.c:2436
  kthread+0x2e9/0x3a0 kernel/kthread.c:376
  ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

other info that might help us debug this:

Chain exists of:
  &timer->lock --> &f->f_owner.lock --> tasklist_lock

 Possible interrupt unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(tasklist_lock);
                               local_irq_disable();
                               lock(&timer->lock);
                               lock(&f->f_owner.lock);
  <Interrupt>
    lock(&timer->lock);

 *** DEADLOCK ***

5 locks held by syz-executor316/3608:
 #0: ffffffff8bd84620 (rcu_read_lock){....}-{1:2}, at: sock_def_readable+0x0/0x4e0 net/core/sock.c:2234
 #1: ffffffff8bd84620 (rcu_read_lock){....}-{1:2}, at: rcu_read_unlock include/linux/rcupdate.h:724 [inline]
 #1: ffffffff8bd84620 (rcu_read_lock){....}-{1:2}, at: sock_def_readable+0x2aa/0x4e0 net/core/sock.c:3220
 #2: ffffffff8bd84620 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x41/0x470 fs/fcntl.c:1014
 #3: ffff888024d5f948 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:995 [inline]
 #3: ffff888024d5f948 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1016 [inline]
 #3: ffff888024d5f948 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x136/0x470 fs/fcntl.c:1009
 #4: ffff888026885df0 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x24/0x380 fs/fcntl.c:777

the dependencies between HARDIRQ-irq-safe lock and the holding lock:
  -> (&timer->lock){-...}-{2:2} {
     IN-HARDIRQ-W at:
                        lock_acquire kernel/locking/lockdep.c:5665 [inline]
                        lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                        __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
                        _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
                        spin_lock include/linux/spinlock.h:349 [inline]
                        snd_hrtimer_callback+0x4f/0x3c0 sound/core/hrtimer.c:38
                        __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
                        __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749
                        hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
                        local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
                        __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112
                        sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106
                        asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
                        __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
                        _raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194
                        spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
                        queueptr+0x9a/0xd0 sound/core/seq/seq_queue.c:214
                        snd_seq_enqueue_event+0x5f/0x3e0 sound/core/seq/seq_queue.c:308
                        snd_seq_client_enqueue_event.constprop.0+0x230/0x440 sound/core/seq/seq_clientmgr.c:976
                        snd_seq_kernel_client_enqueue sound/core/seq/seq_clientmgr.c:2298 [inline]
                        snd_seq_kernel_client_enqueue+0x191/0x1e0 sound/core/seq/seq_clientmgr.c:2270
                        insert_queue sound/core/seq/oss/seq_oss_rw.c:174 [inline]
                        snd_seq_oss_write+0x5d7/0x780 sound/core/seq/oss/seq_oss_rw.c:135
                        odev_write+0x55/0x90 sound/core/seq/oss/seq_oss.c:168
                        vfs_write+0x269/0xac0 fs/read_write.c:589
                        ksys_write+0x127/0x250 fs/read_write.c:644
                        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+0x63/0xcd
     INITIAL USE at:
                       lock_acquire kernel/locking/lockdep.c:5665 [inline]
                       lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                       __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
                       _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
                       snd_timer_resolution+0x55/0x100 sound/core/timer.c:489
                       initialize_timer+0x183/0x290 sound/core/seq/seq_timer.c:373
                       seq_timer_start sound/core/seq/seq_timer.c:391 [inline]
                       snd_seq_timer_start+0x151/0x290 sound/core/seq/seq_timer.c:405
                       snd_seq_queue_process_event sound/core/seq/seq_queue.c:660 [inline]
                       snd_seq_control_queue+0x872/0xaa0 sound/core/seq/seq_queue.c:721
                       snd_seq_deliver_single_event.constprop.0+0x42b/0x820 sound/core/seq/seq_clientmgr.c:640
                       snd_seq_deliver_event+0x4e7/0x970 sound/core/seq/seq_clientmgr.c:841
                       snd_seq_kernel_client_dispatch+0x145/0x180 sound/core/seq/seq_clientmgr.c:2339
                       send_timer_event.isra.0+0x10b/0x160 sound/core/seq/oss/seq_oss_timer.c:140
                       snd_seq_oss_timer_start+0x1c3/0x310 sound/core/seq/oss/seq_oss_timer.c:161
                       old_event sound/core/seq/oss/seq_oss_event.c:113 [inline]
                       snd_seq_oss_process_event+0xc08/0x25a0 sound/core/seq/oss/seq_oss_event.c:88
                       insert_queue sound/core/seq/oss/seq_oss_rw.c:167 [inline]
                       snd_seq_oss_write+0x227/0x780 sound/core/seq/oss/seq_oss_rw.c:135
                       odev_write+0x55/0x90 sound/core/seq/oss/seq_oss.c:168
                       vfs_write+0x269/0xac0 fs/read_write.c:589
                       ksys_write+0x127/0x250 fs/read_write.c:644
                       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+0x63/0xcd
   }
   ... key      at: [<ffffffff912ce200>] __key.10+0x0/0x40
 -> (&new->fa_lock){....}-{2:2} {
    INITIAL READ USE at:
                          lock_acquire kernel/locking/lockdep.c:5665 [inline]
                          lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                          __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
                          _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236
                          kill_fasync_rcu fs/fcntl.c:995 [inline]
                          kill_fasync fs/fcntl.c:1016 [inline]
                          kill_fasync+0x136/0x470 fs/fcntl.c:1009
                          snd_timer_user_ccallback+0x298/0x330 sound/core/timer.c:1386
                          snd_timer_notify1+0x11c/0x3b0 sound/core/timer.c:516
                          snd_timer_start1+0x4d4/0x800 sound/core/timer.c:578
                          snd_timer_start sound/core/timer.c:696 [inline]
                          snd_timer_start sound/core/timer.c:689 [inline]
                          snd_timer_user_start.isra.0+0x1e3/0x260 sound/core/timer.c:1984
                          __snd_timer_user_ioctl.isra.0+0xda4/0x2490 sound/core/timer.c:2107
                          snd_timer_user_ioctl+0x77/0xb0 sound/core/timer.c:2128
                          vfs_ioctl fs/ioctl.c:51 [inline]
                          __do_sys_ioctl fs/ioctl.c:870 [inline]
                          __se_sys_ioctl fs/ioctl.c:856 [inline]
                          __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
                          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+0x63/0xcd
  }
  ... key      at: [<ffffffff90fc21a0>] __key.0+0x0/0x40
  ... acquired at:
   __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
   _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236
   kill_fasync_rcu fs/fcntl.c:995 [inline]
   kill_fasync fs/fcntl.c:1016 [inline]
   kill_fasync+0x136/0x470 fs/fcntl.c:1009
   snd_timer_user_ccallback+0x298/0x330 sound/core/timer.c:1386
   snd_timer_notify1+0x11c/0x3b0 sound/core/timer.c:516
   snd_timer_start1+0x4d4/0x800 sound/core/timer.c:578
   snd_timer_start sound/core/timer.c:696 [inline]
   snd_timer_start sound/core/timer.c:689 [inline]
   snd_timer_user_start.isra.0+0x1e3/0x260 sound/core/timer.c:1984
   __snd_timer_user_ioctl.isra.0+0xda4/0x2490 sound/core/timer.c:2107
   snd_timer_user_ioctl+0x77/0xb0 sound/core/timer.c:2128
   vfs_ioctl fs/ioctl.c:51 [inline]
   __do_sys_ioctl fs/ioctl.c:870 [inline]
   __se_sys_ioctl fs/ioctl.c:856 [inline]
   __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
   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+0x63/0xcd

-> (&f->f_owner.lock){....}-{2:2} {
   INITIAL USE at:
                   lock_acquire kernel/locking/lockdep.c:5665 [inline]
                   lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                   __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline]
                   _raw_write_lock_irq+0x32/0x50 kernel/locking/spinlock.c:326
                   f_modown+0x2a/0x390 fs/fcntl.c:90
                   __f_setown fs/fcntl.c:109 [inline]
                   f_setown+0xd7/0x230 fs/fcntl.c:137
                   sock_ioctl+0x37e/0x640 net/socket.c:1229
                   vfs_ioctl fs/ioctl.c:51 [inline]
                   __do_sys_ioctl fs/ioctl.c:870 [inline]
                   __se_sys_ioctl fs/ioctl.c:856 [inline]
                   __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
                   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+0x63/0xcd
   INITIAL READ USE at:
                        lock_acquire kernel/locking/lockdep.c:5665 [inline]
                        lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                        __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
                        _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236
                        send_sigio+0x24/0x380 fs/fcntl.c:777
                        kill_fasync_rcu fs/fcntl.c:1002 [inline]
                        kill_fasync fs/fcntl.c:1016 [inline]
                        kill_fasync+0x1f8/0x470 fs/fcntl.c:1009
                        snd_timer_user_ccallback+0x298/0x330 sound/core/timer.c:1386
                        snd_timer_notify1+0x11c/0x3b0 sound/core/timer.c:516
                        snd_timer_start1+0x4d4/0x800 sound/core/timer.c:578
                        snd_timer_start sound/core/timer.c:696 [inline]
                        snd_timer_start sound/core/timer.c:689 [inline]
                        snd_timer_user_start.isra.0+0x1e3/0x260 sound/core/timer.c:1984
                        __snd_timer_user_ioctl.isra.0+0xda4/0x2490 sound/core/timer.c:2107
                        snd_timer_user_ioctl+0x77/0xb0 sound/core/timer.c:2128
                        vfs_ioctl fs/ioctl.c:51 [inline]
                        __do_sys_ioctl fs/ioctl.c:870 [inline]
                        __se_sys_ioctl fs/ioctl.c:856 [inline]
                        __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
                        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+0x63/0xcd
 }
 ... key      at: [<ffffffff90fc13c0>] __key.5+0x0/0x40
 ... acquired at:
   __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
   _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236
   send_sigio+0x24/0x380 fs/fcntl.c:777
   kill_fasync_rcu fs/fcntl.c:1002 [inline]
   kill_fasync fs/fcntl.c:1016 [inline]
   kill_fasync+0x1f8/0x470 fs/fcntl.c:1009
   snd_timer_user_ccallback+0x298/0x330 sound/core/timer.c:1386
   snd_timer_notify1+0x11c/0x3b0 sound/core/timer.c:516
   snd_timer_start1+0x4d4/0x800 sound/core/timer.c:578
   snd_timer_start sound/core/timer.c:696 [inline]
   snd_timer_start sound/core/timer.c:689 [inline]
   snd_timer_user_start.isra.0+0x1e3/0x260 sound/core/timer.c:1984
   __snd_timer_user_ioctl.isra.0+0xda4/0x2490 sound/core/timer.c:2107
   snd_timer_user_ioctl+0x77/0xb0 sound/core/timer.c:2128
   vfs_ioctl fs/ioctl.c:51 [inline]
   __do_sys_ioctl fs/ioctl.c:870 [inline]
   __se_sys_ioctl fs/ioctl.c:856 [inline]
   __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
   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+0x63/0xcd


the dependencies between the lock to be acquired
 and HARDIRQ-irq-unsafe lock:
-> (tasklist_lock){.+.+}-{2:2} {
   HARDIRQ-ON-R at:
                    lock_acquire kernel/locking/lockdep.c:5665 [inline]
                    lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                    __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
                    _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
                    do_wait+0x284/0xce0 kernel/exit.c:1508
                    kernel_wait+0x9c/0x150 kernel/exit.c:1698
                    call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
                    call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166
                    process_one_work+0x996/0x1610 kernel/workqueue.c:2289
                    worker_thread+0x665/0x1080 kernel/workqueue.c:2436
                    kthread+0x2e9/0x3a0 kernel/kthread.c:376
                    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
   SOFTIRQ-ON-R at:
                    lock_acquire kernel/locking/lockdep.c:5665 [inline]
                    lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                    __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
                    _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
                    do_wait+0x284/0xce0 kernel/exit.c:1508
                    kernel_wait+0x9c/0x150 kernel/exit.c:1698
                    call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
                    call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166
                    process_one_work+0x996/0x1610 kernel/workqueue.c:2289
                    worker_thread+0x665/0x1080 kernel/workqueue.c:2436
                    kthread+0x2e9/0x3a0 kernel/kthread.c:376
                    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
   INITIAL USE at:
                   lock_acquire kernel/locking/lockdep.c:5665 [inline]
                   lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                   __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline]
                   _raw_write_lock_irq+0x32/0x50 kernel/locking/spinlock.c:326
                   copy_process+0x445e/0x7020 kernel/fork.c:2374
                   kernel_clone+0xe7/0xab0 kernel/fork.c:2655
                   user_mode_thread+0xad/0xe0 kernel/fork.c:2724
                   rest_init+0x23/0x270 init/main.c:691
                   arch_call_rest_init+0xf/0x14 init/main.c:882
                   start_kernel+0x46e/0x48f init/main.c:1137
                   secondary_startup_64_no_verify+0xce/0xdb
   INITIAL READ USE at:
                        lock_acquire kernel/locking/lockdep.c:5665 [inline]
                        lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
                        __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
                        _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
                        do_wait+0x284/0xce0 kernel/exit.c:1508
                        kernel_wait+0x9c/0x150 kernel/exit.c:1698
                        call_usermodehelper_exec_sync kernel/umh.c:139 [inline]
                        call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166
                        process_one_work+0x996/0x1610 kernel/workqueue.c:2289
                        worker_thread+0x665/0x1080 kernel/workqueue.c:2436
                        kthread+0x2e9/0x3a0 kernel/kthread.c:376
                        ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 }
 ... key      at: [<ffffffff8ba0a098>] tasklist_lock+0x18/0x40
 ... acquired at:
   lock_acquire kernel/locking/lockdep.c:5665 [inline]
   lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
   __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
   _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
   send_sigio+0xab/0x380 fs/fcntl.c:791
   kill_fasync_rcu fs/fcntl.c:1002 [inline]
   kill_fasync fs/fcntl.c:1016 [inline]
   kill_fasync+0x1f8/0x470 fs/fcntl.c:1009
   sock_wake_async+0xd2/0x160 net/socket.c:1419
   sk_wake_async include/net/sock.h:2466 [inline]
   sk_wake_async include/net/sock.h:2462 [inline]
   sock_def_readable+0x349/0x4e0 net/core/sock.c:3219
   unix_dgram_sendmsg+0xf69/0x1ad0 net/unix/af_unix.c:2028
   sock_sendmsg_nosec net/socket.c:714 [inline]
   sock_sendmsg+0xcf/0x120 net/socket.c:734
   ____sys_sendmsg+0x334/0x810 net/socket.c:2488
   ___sys_sendmsg+0xf3/0x170 net/socket.c:2542
   __sys_sendmmsg+0x195/0x470 net/socket.c:2628
   __do_sys_sendmmsg net/socket.c:2657 [inline]
   __se_sys_sendmmsg net/socket.c:2654 [inline]
   __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2654
   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+0x63/0xcd


stack backtrace:
CPU: 0 PID: 3608 Comm: syz-executor316 Not tainted 5.19.0-rc7-syzkaller-00199-g515f71412bb7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_bad_irq_dependency kernel/locking/lockdep.c:2609 [inline]
 check_irq_usage.cold+0x4c1/0x6b0 kernel/locking/lockdep.c:2848
 check_prev_add kernel/locking/lockdep.c:3099 [inline]
 check_prevs_add kernel/locking/lockdep.c:3214 [inline]
 validate_chain kernel/locking/lockdep.c:3829 [inline]
 __lock_acquire+0x2ad6/0x5660 kernel/locking/lockdep.c:5053
 lock_acquire kernel/locking/lockdep.c:5665 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline]
 _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228
 send_sigio+0xab/0x380 fs/fcntl.c:791
 kill_fasync_rcu fs/fcntl.c:1002 [inline]
 kill_fasync fs/fcntl.c:1016 [inline]
 kill_fasync+0x1f8/0x470 fs/fcntl.c:1009
 sock_wake_async+0xd2/0x160 net/socket.c:1419
 sk_wake_async include/net/sock.h:2466 [inline]
 sk_wake_async include/net/sock.h:2462 [inline]
 sock_def_readable+0x349/0x4e0 net/core/sock.c:3219
 unix_dgram_sendmsg+0xf69/0x1ad0 net/unix/af_unix.c:2028
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x334/0x810 net/socket.c:2488
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2542
 __sys_sendmmsg+0x195/0x470 net/socket.c:2628
 __do_sys_sendmmsg net/socket.c:2657 [inline]
 __se_sys_sendmmsg net/socket.c:2654 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2654
 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+0x63/0xcd
RIP: 0033:0x7f2f6c6f6039
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2ced65e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RA

Crashes (582):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/24 10:27 upstream 515f71412bb7 22343af4 .config strace log report syz C ci-upstream-kasan-gce-selinux-root possible deadlock in snd_hrtimer_callback
2022/02/03 19:44 upstream 88808fbbead4 4ebb2798 .config console log report syz C ci-upstream-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/08/03 20:38 upstream e2b542100719 1c9013ac .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/08/02 13:42 upstream 9de1f9c8ca51 1c9013ac .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/27 07:50 upstream 39c3c396f813 da9d0366 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/18 20:39 upstream 80e19f34c288 ff988920 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/12 17:07 upstream 72a8e05d4f66 d91dd8ea .config console log report info ci-upstream-kasan-gce-selinux-root possible deadlock in snd_hrtimer_callback
2022/07/12 04:32 upstream 5a29232d870d da3d6955 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/11 11:18 upstream 32346491ddf2 da3d6955 .config console log report info ci-upstream-kasan-gce-smack-root possible deadlock in snd_hrtimer_callback
2022/07/09 12:41 upstream e5524c2a1fc4 b5765a15 .config console log report info ci-upstream-kasan-gce-selinux-root possible deadlock in snd_hrtimer_callback
2022/07/09 01:40 upstream a471da3100ef b5765a15 .config console log report info ci-qemu-upstream possible deadlock in snd_hrtimer_callback
2022/07/08 19:59 upstream a471da3100ef 8442e655 .config console log report info ci-qemu-upstream possible deadlock in snd_hrtimer_callback
2022/07/07 22:16 upstream e8a4e1c1bb69 bff65f44 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/07 00:00 upstream 9f09069cde34 bff65f44 .config console log report info ci-qemu-upstream possible deadlock in snd_hrtimer_callback
2022/07/04 07:25 upstream 88084a3df167 1434eec0 .config console log report info ci-upstream-kasan-gce-smack-root possible deadlock in snd_hrtimer_callback
2022/07/03 18:13 upstream 69cb6c6556ad 1434eec0 .config console log report info ci-upstream-kasan-gce-smack-root possible deadlock in snd_hrtimer_callback
2022/07/03 16:28 upstream 69cb6c6556ad 1434eec0 .config console log report info ci-upstream-kasan-gce-selinux-root possible deadlock in snd_hrtimer_callback
2022/07/03 01:56 upstream 34074da5424c 1434eec0 .config console log report info ci-upstream-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/02 23:30 upstream 34074da5424c 1434eec0 .config console log report info ci-upstream-kasan-gce-selinux-root possible deadlock in snd_hrtimer_callback
2022/07/02 21:32 upstream 089866061428 1434eec0 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/30 09:20 upstream d9b2ba67917c 1434eec0 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/27 01:42 upstream 03c765b0e3b4 a371c43c .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/26 23:46 upstream 03c765b0e3b4 a371c43c .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/25 02:07 upstream 6a0a17e6c6d1 a371c43c .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/24 07:32 upstream 92f20ff72066 912f5df7 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/22 21:38 upstream 3abc3ae553c7 912f5df7 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/19 19:39 upstream 05c6ca8512f2 8f633d84 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/19 16:35 upstream 05c6ca8512f2 8f633d84 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/17 13:58 upstream 47700948a4ab cb58b3b2 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/17 08:06 upstream 47700948a4ab 1719ee24 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/16 22:18 upstream 48a23ec6ff2b 1719ee24 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/16 16:36 upstream 30306f6194ca 1719ee24 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/16 09:59 upstream 30306f6194ca 1719ee24 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/15 15:37 upstream 018ab4fabddd 1719ee24 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/15 03:15 upstream 018ab4fabddd 127d1faf .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/15 01:40 upstream 018ab4fabddd 127d1faf .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/14 18:12 upstream 24625f7d91fb 127d1faf .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/12 18:58 upstream 7a68065eb9cd 0d5abf15 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/10 19:36 upstream fe43c0188911 0d5abf15 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/08 00:37 upstream 9886142c7a22 b2706118 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/04 12:54 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/04 03:58 upstream 50fd82b3a9a9 c8857892 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/06/03 15:36 upstream 50fd82b3a9a9 eee80d3c .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2021/11/10 16:00 upstream cb690f5238d7 75b04091 .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2021/11/10 01:56 upstream cb690f5238d7 55fa030c .config console log report info ci-upstream-kasan-gce possible deadlock in snd_hrtimer_callback
2022/07/13 08:21 linux-next cb71b93c2dc3 5d921b08 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/11 13:28 linux-next cb71b93c2dc3 da3d6955 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/08 16:31 linux-next cb71b93c2dc3 b5765a15 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/04 16:14 linux-next cb71b93c2dc3 bff65f44 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/03 22:16 linux-next cb71b93c2dc3 1434eec0 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
2022/07/01 16:49 linux-next cb71b93c2dc3 1434eec0 .config console log report info ci-upstream-linux-next-kasan-gce-root possible deadlock in snd_hrtimer_callback
* Struck through repros no longer work on HEAD.