===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.19.0-rc4-syzkaller-00208-g69cb6c6556ad #0 Not tainted ----------------------------------------------------- syz-executor.3/10768 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88807b5c0c90 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:995 [inline] ffff88807b5c0c90 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x13b/0x430 fs/fcntl.c:1016 and this task is already holding: ffff88814a142148 (&timer->lock){....}-{2:2}, at: snd_timer_stop1+0x5c/0x950 sound/core/timer.c:626 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: (&group->lock){..-.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 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:571 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 get_lock_parent_ip include/linux/ftrace.h:907 [inline] preempt_latency_start kernel/sched/core.c:5588 [inline] preempt_count_add+0x8d/0x180 kernel/sched/core.c:5613 unwind_next_frame+0xc3/0x24c0 arch/x86/kernel/unwind_orc.c:428 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] __kasan_slab_alloc+0xb2/0xe0 mm/kasan/common.c:469 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:750 [inline] slab_alloc_node mm/slub.c:3243 [inline] slab_alloc mm/slub.c:3251 [inline] __kmem_cache_alloc_lru mm/slub.c:3258 [inline] kmem_cache_alloc_lru+0x175/0x2d0 mm/slub.c:3275 alloc_inode_sb include/linux/fs.h:2965 [inline] ext4_alloc_inode+0x27/0x570 fs/ext4/super.c:1327 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x61/0x210 fs/inode.c:1018 new_inode+0x25/0x1d0 fs/inode.c:1047 __ext4_new_inode+0x29a/0x4740 fs/ext4/ialloc.c:960 ext4_mknod+0x286/0x5a0 fs/ext4/namei.c:2808 vfs_mknod+0x3a8/0x440 fs/namei.c:3853 unix_bind_bsd net/unix/af_unix.c:1171 [inline] unix_bind+0x5f7/0xeb0 net/unix/af_unix.c:1261 __sys_bind+0x233/0x2e0 net/socket.c:1776 __do_sys_bind net/socket.c:1787 [inline] __se_sys_bind net/socket.c:1785 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1785 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+0x46/0xb0 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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: &group->lock --> &timer->lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&group->lock); lock(&timer->lock); lock(&group->lock); *** DEADLOCK *** 4 locks held by syz-executor.3/10768: #0: ffff88804e848568 (&tu->ioctl_lock){+.+.}-{3:3}, at: snd_timer_user_ioctl+0x4d/0x80 sound/core/timer.c:2127 #1: ffffffff8db1d168 (register_mutex){+.+.}-{3:3}, at: snd_timer_close sound/core/timer.c:462 [inline] #1: ffffffff8db1d168 (register_mutex){+.+.}-{3:3}, at: snd_timer_user_tselect sound/core/timer.c:1762 [inline] #1: ffffffff8db1d168 (register_mutex){+.+.}-{3:3}, at: __snd_timer_user_ioctl+0x355/0x54c0 sound/core/timer.c:2096 #2: ffff88814a142148 (&timer->lock){....}-{2:2}, at: snd_timer_stop1+0x5c/0x950 sound/core/timer.c:626 #3: ffffffff8cb1e820 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:268 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&group->lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 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:571 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 get_lock_parent_ip include/linux/ftrace.h:907 [inline] preempt_latency_start kernel/sched/core.c:5588 [inline] preempt_count_add+0x8d/0x180 kernel/sched/core.c:5613 unwind_next_frame+0xc3/0x24c0 arch/x86/kernel/unwind_orc.c:428 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] __kasan_slab_alloc+0xb2/0xe0 mm/kasan/common.c:469 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:750 [inline] slab_alloc_node mm/slub.c:3243 [inline] slab_alloc mm/slub.c:3251 [inline] __kmem_cache_alloc_lru mm/slub.c:3258 [inline] kmem_cache_alloc_lru+0x175/0x2d0 mm/slub.c:3275 alloc_inode_sb include/linux/fs.h:2965 [inline] ext4_alloc_inode+0x27/0x570 fs/ext4/super.c:1327 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x61/0x210 fs/inode.c:1018 new_inode+0x25/0x1d0 fs/inode.c:1047 __ext4_new_inode+0x29a/0x4740 fs/ext4/ialloc.c:960 ext4_mknod+0x286/0x5a0 fs/ext4/namei.c:2808 vfs_mknod+0x3a8/0x440 fs/namei.c:3853 unix_bind_bsd net/unix/af_unix.c:1171 [inline] unix_bind+0x5f7/0xeb0 net/unix/af_unix.c:1261 __sys_bind+0x233/0x2e0 net/socket.c:1776 __do_sys_bind net/socket.c:1787 [inline] __se_sys_bind net/socket.c:1785 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1785 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+0x46/0xb0 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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_pcm_group_lock_irq sound/core/pcm_native.c:97 [inline] snd_pcm_stream_lock_irq sound/core/pcm_native.c:136 [inline] snd_pcm_hw_params+0x164/0x1860 sound/core/pcm_native.c:726 snd_pcm_oss_change_params_locked+0x1f21/0x3c80 sound/core/oss/pcm_oss.c:976 snd_pcm_oss_change_params sound/core/oss/pcm_oss.c:1116 [inline] snd_pcm_oss_make_ready sound/core/oss/pcm_oss.c:1175 [inline] snd_pcm_oss_sync+0x46f/0xf00 sound/core/oss/pcm_oss.c:1742 snd_pcm_oss_release+0x119/0x270 sound/core/oss/pcm_oss.c:2590 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x547/0x1ed0 kernel/exit.c:795 do_group_exit+0x23b/0x2f0 kernel/exit.c:925 get_signal+0x172f/0x1780 kernel/signal.c:2857 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:869 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/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 } ... key at: [] snd_pcm_group_init.__key+0x0/0x20 -> (&timer->lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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_drop+0x431/0x580 sound/core/pcm_native.c:2218 snd_pcm_oss_sync+0x254/0xf00 sound/core/oss/pcm_oss.c:1746 snd_pcm_oss_release+0x119/0x270 sound/core/oss/pcm_oss.c:2590 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x547/0x1ed0 kernel/exit.c:795 do_group_exit+0x23b/0x2f0 kernel/exit.c:925 get_signal+0x172f/0x1780 kernel/signal.c:2857 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:869 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/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 } ... key at: [] snd_timer_new.__key+0x0/0x20 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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_drop+0x431/0x580 sound/core/pcm_native.c:2218 snd_pcm_oss_sync+0x254/0xf00 sound/core/oss/pcm_oss.c:1746 snd_pcm_oss_release+0x119/0x270 sound/core/oss/pcm_oss.c:2590 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x547/0x1ed0 kernel/exit.c:795 do_group_exit+0x23b/0x2f0 kernel/exit.c:925 get_signal+0x172f/0x1780 kernel/signal.c:2857 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:869 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/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 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:5665 __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:5665 __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:5665 __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+0x2414/0x3fa0 kernel/fork.c:2374 kernel_clone+0x22f/0x7a0 kernel/fork.c:2655 user_mode_thread+0x12d/0x190 kernel/fork.c:2724 rest_init+0x21/0x270 init/main.c:691 start_kernel+0x0/0x55b init/main.c:882 start_kernel+0x4ac/0x55b init/main.c:1137 secondary_startup_64_no_verify+0xcf/0xdb INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:5665 __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:791 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1016 lease_break_callback+0x22/0x30 fs/locks.c:535 __break_lease+0xe32/0x1980 fs/locks.c:1535 break_lease include/linux/fs.h:2503 [inline] do_dentry_open+0x6f4/0x1040 fs/open.c:839 do_open fs/namei.c:3520 [inline] path_openat+0x26c0/0x2ec0 fs/namei.c:3653 do_filp_open+0x277/0x4f0 fs/namei.c:3680 do_sys_openat2+0x13b/0x500 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_open fs/open.c:1302 [inline] __se_sys_open fs/open.c:1298 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1298 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+0x46/0xb0 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:816 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3275 tcp_check_urg+0x1f6/0x720 net/ipv4/tcp_input.c:5596 tcp_urg+0x152/0x440 net/ipv4/tcp_input.c:5637 tcp_rcv_established+0x9f0/0x1a10 net/ipv4/tcp_input.c:5984 tcp_v4_do_rcv+0x479/0xac0 net/ipv4/tcp_ipv4.c:1659 tcp_v4_rcv+0x2ac3/0x3370 net/ipv4/tcp_ipv4.c:2076 ip_protocol_deliver_rcu+0x391/0x750 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x269/0x480 net/ipv4/ip_input.c:233 __netif_receive_skb_one_core net/core/dev.c:5480 [inline] __netif_receive_skb+0x1c5/0x500 net/core/dev.c:5594 process_backlog+0x4f8/0x8b0 net/core/dev.c:5922 __napi_poll+0xbe/0x4b0 net/core/dev.c:6488 napi_poll net/core/dev.c:6555 [inline] net_rx_action+0x76c/0x10b0 net/core/dev.c:6666 __do_softirq+0x382/0x793 kernel/softirq.c:571 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:934 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:5665 __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:90 __f_setown fs/fcntl.c:109 [inline] f_setown_ex fs/fcntl.c:199 [inline] do_fcntl+0x103b/0x1370 fs/fcntl.c:382 __do_sys_fcntl fs/fcntl.c:453 [inline] __se_sys_fcntl+0xd5/0x1b0 fs/fcntl.c:438 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+0x46/0xb0 INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:816 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3275 tcp_check_urg+0x1f6/0x720 net/ipv4/tcp_input.c:5596 tcp_urg+0x152/0x440 net/ipv4/tcp_input.c:5637 tcp_rcv_established+0x9f0/0x1a10 net/ipv4/tcp_input.c:5984 tcp_v4_do_rcv+0x479/0xac0 net/ipv4/tcp_ipv4.c:1659 sk_backlog_rcv include/net/sock.h:1047 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2849 release_sock+0x5d/0x1c0 net/core/sock.c:3404 sk_stream_wait_memory+0x700/0xdc0 net/core/stream.c:145 tcp_sendmsg_locked+0x111d/0x3fc0 net/ipv4/tcp.c:1410 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1448 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] __sys_sendto+0x439/0x5c0 net/socket.c:2119 __do_sys_sendto net/socket.c:2131 [inline] __se_sys_sendto net/socket.c:2127 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2127 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+0x46/0xb0 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:777 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1016 lease_break_callback+0x22/0x30 fs/locks.c:535 __break_lease+0xe32/0x1980 fs/locks.c:1535 break_lease include/linux/fs.h:2503 [inline] do_dentry_open+0x6f4/0x1040 fs/open.c:839 do_open fs/namei.c:3520 [inline] path_openat+0x26c0/0x2ec0 fs/namei.c:3653 do_filp_open+0x277/0x4f0 fs/namei.c:3680 do_sys_openat2+0x13b/0x500 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_open fs/open.c:1302 [inline] __se_sys_open fs/open.c:1298 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1298 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+0x46/0xb0 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:872 lease_modify+0x4dd/0x6a0 fs/locks.c:1400 locks_remove_lease fs/locks.c:2643 [inline] locks_remove_file+0x52e/0xfd0 fs/locks.c:2668 __fput+0x325/0x820 fs/file_table.c:309 task_work_run+0x146/0x1c0 kernel/task_work.c:177 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/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:995 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1016 lease_break_callback+0x22/0x30 fs/locks.c:535 __break_lease+0xe32/0x1980 fs/locks.c:1535 break_lease include/linux/fs.h:2503 [inline] do_dentry_open+0x6f4/0x1040 fs/open.c:839 do_open fs/namei.c:3520 [inline] path_openat+0x26c0/0x2ec0 fs/namei.c:3653 do_filp_open+0x277/0x4f0 fs/namei.c:3680 do_sys_openat2+0x13b/0x500 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_open fs/open.c:1302 [inline] __se_sys_open fs/open.c:1298 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1298 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+0x46/0xb0 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:995 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1016 snd_timer_user_ccallback+0x370/0x540 sound/core/timer.c:1386 snd_timer_notify1+0x1ad/0x350 sound/core/timer.c:516 snd_timer_stop1+0x7eb/0x950 sound/core/timer.c:657 snd_timer_stop sound/core/timer.c:710 [inline] snd_timer_close_locked+0x213/0x8e0 sound/core/timer.c:408 snd_timer_close sound/core/timer.c:463 [inline] snd_timer_user_tselect sound/core/timer.c:1762 [inline] __snd_timer_user_ioctl+0x360/0x54c0 sound/core/timer.c:2096 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+0x46/0xb0 stack backtrace: CPU: 0 PID: 10768 Comm: syz-executor.3 Not tainted 5.19.0-rc4-syzkaller-00208-g69cb6c6556ad #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 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:2609 [inline] check_irq_usage kernel/locking/lockdep.c:2848 [inline] check_prev_add kernel/locking/lockdep.c:3099 [inline] check_prevs_add kernel/locking/lockdep.c:3214 [inline] validate_chain+0x571e/0x65c0 kernel/locking/lockdep.c:3829 __lock_acquire+0x129a/0x1f80 kernel/locking/lockdep.c:5053 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __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:995 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1016 snd_timer_user_ccallback+0x370/0x540 sound/core/timer.c:1386 snd_timer_notify1+0x1ad/0x350 sound/core/timer.c:516 snd_timer_stop1+0x7eb/0x950 sound/core/timer.c:657 snd_timer_stop sound/core/timer.c:710 [inline] snd_timer_close_locked+0x213/0x8e0 sound/core/timer.c:408 snd_timer_close sound/core/timer.c:463 [inline] snd_timer_user_tselect sound/core/timer.c:1762 [inline] __snd_timer_user_ioctl+0x360/0x54c0 sound/core/timer.c:2096 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+0x46/0xb0 RIP: 0033:0x7f45b7689109 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:00007f45b88c4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f45b779bf60 RCX: 00007f45b7689109 RDX: 00000000200000c0 RSI: 0000000040345410 RDI: 0000000000000003 RBP: 00007f45b76e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2902c6af R14: 00007f45b88c4300 R15: 0000000000022000