===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.18.0-rc7-syzkaller-00181-geaea45fc0e7b #0 Not tainted ----------------------------------------------------- syz-executor.5/20214 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff8880521756a8 (&new->fa_lock){...-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:996 [inline] ffff8880521756a8 (&new->fa_lock){...-}-{2:2}, at: kill_fasync+0x13b/0x430 fs/fcntl.c:1017 and this task is already holding: ffff8881494e7948 (&timer->lock){..-.}-{2:2}, at: snd_timer_start1+0x5b/0x640 sound/core/timer.c:541 which would create a new lock dependency: (&timer->lock){..-.}-{2:2} -> (&new->fa_lock){...-}-{2:2} but this new dependency connects a SOFTIRQ-irq-safe lock: (&timer->lock){..-.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_timer_notify+0x105/0x3e0 sound/core/timer.c:1086 snd_pcm_timer_notify sound/core/pcm_native.c:608 [inline] snd_pcm_post_stop sound/core/pcm_native.c:1512 [inline] snd_pcm_action sound/core/pcm_native.c:1364 [inline] snd_pcm_stop+0x3b8/0x4c0 sound/core/pcm_native.c:1535 __snd_pcm_xrun+0x208/0x570 sound/core/pcm_lib.c:155 snd_pcm_update_state+0x354/0x430 sound/core/pcm_lib.c:196 snd_pcm_update_hw_ptr0+0xfca/0x1860 sound/core/pcm_lib.c:465 snd_pcm_period_elapsed_under_stream_lock sound/core/pcm_lib.c:1817 [inline] snd_pcm_period_elapsed+0xfb/0x210 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+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x382/0x793 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 console_unlock+0xc58/0x1150 kernel/printk/printk.c:2779 vprintk_emit+0xd1/0x1e0 kernel/printk/printk.c:2272 _printk+0xcf/0x10f kernel/printk/printk.c:2293 blk_print_req_error+0x176/0x210 block/blk-mq.c:702 blk_update_request+0xd2e/0x1040 block/blk-mq.c:799 blk_mq_end_request block/blk-mq.c:941 [inline] blk_mq_plug_issue_direct+0x2f9/0x700 block/blk-mq.c:2551 blk_mq_flush_plug_list+0x609/0xb10 block/blk-mq.c:2632 __blk_flush_plug+0x4e5/0x570 block/blk-core.c:1240 blk_finish_plug+0x5a/0x80 block/blk-core.c:1264 read_pages+0x38d/0x460 mm/readahead.c:179 page_cache_ra_unbounded+0x535/0x640 mm/readahead.c:261 do_page_cache_ra mm/readahead.c:291 [inline] force_page_cache_ra+0x2d6/0x340 mm/readahead.c:322 page_cache_sync_readahead include/linux/pagemap.h:1185 [inline] filemap_get_pages+0x468/0x1140 mm/filemap.c:2592 filemap_read+0x3d3/0xed0 mm/filemap.c:2679 blkdev_read_iter+0x3de/0x520 block/fops.c:611 call_read_iter include/linux/fs.h:2044 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0xa01/0xd10 fs/read_write.c:482 ksys_read+0x19b/0x2c0 fs/read_write.c:620 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 other info that might help us debug this: Chain exists of: &timer->lock --> &new->fa_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&timer->lock); lock(&new->fa_lock); lock(&timer->lock); *** DEADLOCK *** 3 locks held by syz-executor.5/20214: #0: ffff88801bba8968 (&tu->ioctl_lock){+.+.}-{3:3}, at: snd_timer_user_ioctl+0x4d/0x80 sound/core/timer.c:2127 #1: ffff8881494e7948 (&timer->lock){..-.}-{2:2}, at: snd_timer_start1+0x5b/0x640 sound/core/timer.c:541 #2: ffffffff8cb1b020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:267 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&timer->lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_timer_notify+0x105/0x3e0 sound/core/timer.c:1086 snd_pcm_timer_notify sound/core/pcm_native.c:608 [inline] snd_pcm_post_stop sound/core/pcm_native.c:1512 [inline] snd_pcm_action sound/core/pcm_native.c:1364 [inline] snd_pcm_stop+0x3b8/0x4c0 sound/core/pcm_native.c:1535 __snd_pcm_xrun+0x208/0x570 sound/core/pcm_lib.c:155 snd_pcm_update_state+0x354/0x430 sound/core/pcm_lib.c:196 snd_pcm_update_hw_ptr0+0xfca/0x1860 sound/core/pcm_lib.c:465 snd_pcm_period_elapsed_under_stream_lock sound/core/pcm_lib.c:1817 [inline] snd_pcm_period_elapsed+0xfb/0x210 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+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x382/0x793 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 console_unlock+0xc58/0x1150 kernel/printk/printk.c:2779 vprintk_emit+0xd1/0x1e0 kernel/printk/printk.c:2272 _printk+0xcf/0x10f kernel/printk/printk.c:2293 blk_print_req_error+0x176/0x210 block/blk-mq.c:702 blk_update_request+0xd2e/0x1040 block/blk-mq.c:799 blk_mq_end_request block/blk-mq.c:941 [inline] blk_mq_plug_issue_direct+0x2f9/0x700 block/blk-mq.c:2551 blk_mq_flush_plug_list+0x609/0xb10 block/blk-mq.c:2632 __blk_flush_plug+0x4e5/0x570 block/blk-core.c:1240 blk_finish_plug+0x5a/0x80 block/blk-core.c:1264 read_pages+0x38d/0x460 mm/readahead.c:179 page_cache_ra_unbounded+0x535/0x640 mm/readahead.c:261 do_page_cache_ra mm/readahead.c:291 [inline] force_page_cache_ra+0x2d6/0x340 mm/readahead.c:322 page_cache_sync_readahead include/linux/pagemap.h:1185 [inline] filemap_get_pages+0x468/0x1140 mm/filemap.c:2592 filemap_read+0x3d3/0xed0 mm/filemap.c:2679 blkdev_read_iter+0x3de/0x520 block/fops.c:611 call_read_iter include/linux/fs.h:2044 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0xa01/0xd10 fs/read_write.c:482 ksys_read+0x19b/0x2c0 fs/read_write.c:620 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:374 [inline] snd_timer_close_locked+0x58/0x8e0 sound/core/timer.c:396 snd_timer_close+0xaa/0x120 sound/core/timer.c:463 snd_seq_timer_close+0x9b/0xd0 sound/core/seq/seq_timer.c:326 queue_delete sound/core/seq/seq_queue.c:134 [inline] snd_seq_queue_delete+0x8b/0xf0 sound/core/seq/seq_queue.c:196 delete_seq_queue sound/core/seq/oss/seq_oss_init.c:376 [inline] snd_seq_oss_release+0x1ca/0x300 sound/core/seq/oss/seq_oss_init.c:421 odev_release+0x52/0x70 sound/core/seq/oss/seq_oss.c:144 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] snd_timer_new.__key+0x0/0x20 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 SOFTIRQ-ON-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 copy_process+0x234d/0x3f70 kernel/fork.c:2368 kernel_clone+0x22f/0x7a0 kernel/fork.c:2639 kernel_thread+0x167/0x1e0 kernel/fork.c:2691 rest_init+0x21/0x270 init/main.c:691 start_kernel+0x0/0x56e init/main.c:882 start_kernel+0x4bf/0x56e init/main.c:1140 secondary_startup_64_no_verify+0xc4/0xcb INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xbe/0x300 fs/fcntl.c:792 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 rcu_read_unlock include/linux/rcupdate.h:723 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2459 sock_def_readable+0x152/0x200 net/core/sock.c:3164 unix_dgram_sendmsg+0x1553/0x1fc0 net/unix/af_unix.c:2029 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x597/0x8e0 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmmsg+0x3d7/0x770 net/socket.c:2553 __do_sys_sendmmsg net/socket.c:2582 [inline] __se_sys_sendmmsg net/socket.c:2579 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2579 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x370 fs/fcntl.c:817 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3198 tcp_check_urg+0x1f6/0x720 net/ipv4/tcp_input.c:5597 tcp_urg+0x152/0x440 net/ipv4/tcp_input.c:5638 tcp_rcv_established+0x9db/0x1a50 net/ipv4/tcp_input.c:5976 tcp_v4_do_rcv+0x479/0xa60 net/ipv4/tcp_ipv4.c:1660 tcp_v4_rcv+0x2a64/0x32b0 net/ipv4/tcp_ipv4.c:2074 ip_protocol_deliver_rcu+0x391/0x750 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x25d/0x420 net/ipv4/ip_input.c:233 __netif_receive_skb_one_core net/core/dev.c:5405 [inline] __netif_receive_skb+0x1c5/0x500 net/core/dev.c:5519 process_backlog+0x4f8/0x8b0 net/core/dev.c:5847 __napi_poll+0xbe/0x4b0 net/core/dev.c:6413 napi_poll net/core/dev.c:6480 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:6567 __do_softirq+0x382/0x793 kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:921 smpboot_thread_fn+0x533/0x9d0 kernel/smpboot.c:164 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 f_modown+0x38/0x340 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown+0x113/0x1a0 fs/fcntl.c:138 sock_ioctl+0x591/0x770 net/socket.c:1182 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x370 fs/fcntl.c:817 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3198 queue_oob+0x411/0x580 net/unix/af_unix.c:2091 unix_stream_sendmsg+0xeab/0x1130 net/unix/af_unix.c:2191 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x597/0x8e0 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmsg+0x27e/0x370 net/socket.c:2496 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x300 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 rcu_read_unlock include/linux/rcupdate.h:723 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2459 unix_release_sock+0x4fe/0xaa0 net/unix/af_unix.c:612 unix_release+0x88/0xc0 net/unix/af_unix.c:990 __sock_release net/socket.c:650 [inline] sock_close+0xd7/0x260 net/socket.c:1318 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 get_signal+0x15d9/0x1780 kernel/signal.c:2641 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:867 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:166 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 rcu_read_unlock include/linux/rcupdate.h:723 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2459 sock_def_readable+0x152/0x200 net/core/sock.c:3164 dccp_fin net/dccp/input.c:40 [inline] dccp_rcv_reset+0x143/0x260 net/dccp/input.c:152 dccp_rcv_established+0x29d/0x310 net/dccp/input.c:376 dccp_v4_do_rcv+0xcc/0x1a0 net/dccp/ipv4.c:667 sk_backlog_rcv include/net/sock.h:1051 [inline] __sk_receive_skb+0x43f/0x9e0 net/core/sock.c:542 ip_protocol_deliver_rcu+0x391/0x750 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x25d/0x420 net/ipv4/ip_input.c:233 __netif_receive_skb_one_core net/core/dev.c:5405 [inline] __netif_receive_skb+0x1c5/0x500 net/core/dev.c:5519 process_backlog+0x4f8/0x8b0 net/core/dev.c:5847 __napi_poll+0xbe/0x4b0 net/core/dev.c:6413 napi_poll net/core/dev.c:6480 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:6567 __do_softirq+0x382/0x793 kernel/softirq.c:558 do_softirq+0x161/0x240 kernel/softirq.c:459 __local_bh_enable_ip+0x1b0/0x1f0 kernel/softirq.c:383 inet_csk_listen_stop+0x74a/0xab0 net/ipv4/inet_connection_sock.c:1220 dccp_close+0x534/0xfc0 net/dccp/proto.c:988 inet_release+0x184/0x1e0 net/ipv4/af_inet.c:428 __sock_release net/socket.c:650 [inline] sock_close+0xd7/0x260 net/socket.c:1318 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:873 sock_fasync+0x86/0xf0 net/socket.c:1343 __fput+0x6cd/0x820 fs/file_table.c:314 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 rcu_read_unlock include/linux/rcupdate.h:723 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2459 unix_release_sock+0x4fe/0xaa0 net/unix/af_unix.c:612 unix_release+0x88/0xc0 net/unix/af_unix.c:990 __sock_release net/socket.c:650 [inline] sock_close+0xd7/0x260 net/socket.c:1318 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 get_signal+0x15d9/0x1780 kernel/signal.c:2641 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:867 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:166 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 snd_timer_user_ccallback+0x370/0x540 sound/core/timer.c:1386 snd_timer_notify1+0x1ad/0x350 sound/core/timer.c:516 snd_timer_start1+0x53d/0x640 sound/core/timer.c:578 snd_timer_start sound/core/timer.c:696 [inline] snd_timer_user_start sound/core/timer.c:1984 [inline] __snd_timer_user_ioctl+0xae7/0x54c0 sound/core/timer.c:2107 snd_timer_user_ioctl+0x5d/0x80 sound/core/timer.c:2128 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae stack backtrace: CPU: 0 PID: 20214 Comm: syz-executor.5 Not tainted 5.18.0-rc7-syzkaller-00181-geaea45fc0e7b #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+0x1e3/0x2cb lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2579 [inline] check_irq_usage kernel/locking/lockdep.c:2818 [inline] check_prev_add kernel/locking/lockdep.c:3069 [inline] check_prevs_add kernel/locking/lockdep.c:3188 [inline] validate_chain+0x571e/0x65c0 kernel/locking/lockdep.c:3803 __lock_acquire+0x129a/0x1f80 kernel/locking/lockdep.c:5029 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 snd_timer_user_ccallback+0x370/0x540 sound/core/timer.c:1386 snd_timer_notify1+0x1ad/0x350 sound/core/timer.c:516 snd_timer_start1+0x53d/0x640 sound/core/timer.c:578 snd_timer_start sound/core/timer.c:696 [inline] snd_timer_user_start sound/core/timer.c:1984 [inline] __snd_timer_user_ioctl+0xae7/0x54c0 sound/core/timer.c:2107 snd_timer_user_ioctl+0x5d/0x80 sound/core/timer.c:2128 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f89cf0890e9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f89d024e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f89cf19bf60 RCX: 00007f89cf0890e9 RDX: 0000000000000000 RSI: 00000000000054a0 RDI: 0000000000000003 RBP: 00007f89cf0e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9bdb787f R14: 00007f89d024e300 R15: 0000000000022000