===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.19.0-rc5-syzkaller-00200-ga471da3100ef #0 Not tainted ----------------------------------------------------- syz-executor.1/13120 [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: ffff88801ca3b630 (&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+0x40/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 nf_hook+0x0/0x5b0 include/linux/skbuff.h:1275 __ip_local_out+0x262/0x520 net/ipv4/ip_output.c:115 ip_local_out net/ipv4/ip_output.c:124 [inline] __ip_queue_xmit+0x853/0x1be0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x190e/0x38c0 net/ipv4/tcp_output.c:1405 __tcp_send_ack.part.0+0x3a7/0x760 net/ipv4/tcp_output.c:3973 __tcp_send_ack net/ipv4/tcp_output.c:3979 [inline] tcp_send_ack+0x7d/0xa0 net/ipv4/tcp_output.c:3979 tcp_delack_timer_handler+0x5be/0x8c0 net/ipv4/tcp_timer.c:317 tcp_delack_timer+0xa2/0x320 net/ipv4/tcp_timer.c:344 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/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] snd_seq_timer_start+0x1ef/0x290 sound/core/seq/seq_timer.c:406 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 snd_seq_oss_timer_ioctl+0x3e3/0x620 sound/core/seq/oss/seq_oss_timer.c:237 snd_seq_oss_ioctl+0x737/0xd70 sound/core/seq/oss/seq_oss_ioctl.c:77 odev_ioctl+0x92/0x110 sound/core/seq/oss/seq_oss.c:184 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+0x46/0xb0 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:302 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); lock(&timer->lock); *** DEADLOCK *** 6 locks held by syz-executor.1/13120: #0: ffff8880749a3170 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff8880749a3170 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_recvmsg+0xf4/0x620 net/ipv4/tcp.c:2553 #1: ffffffff8bd83b60 (rcu_read_lock){....}-{1:2}, at: sock_def_readable+0x0/0x4e0 net/core/sock.c:2234 #2: ffffffff8bd83b60 (rcu_read_lock){....}-{1:2}, at: rcu_read_unlock include/linux/rcupdate.h:724 [inline] #2: ffffffff8bd83b60 (rcu_read_lock){....}-{1:2}, at: sock_def_readable+0x2aa/0x4e0 net/core/sock.c:3220 #3: ffffffff8bd83b60 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x41/0x470 fs/fcntl.c:1014 #4: ffff888072c2b600 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:995 [inline] #4: ffff888072c2b600 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1016 [inline] #4: ffff888072c2b600 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x136/0x470 fs/fcntl.c:1009 #5: ffff88801ca3b630 (&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+0x40/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 nf_hook+0x0/0x5b0 include/linux/skbuff.h:1275 __ip_local_out+0x262/0x520 net/ipv4/ip_output.c:115 ip_local_out net/ipv4/ip_output.c:124 [inline] __ip_queue_xmit+0x853/0x1be0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x190e/0x38c0 net/ipv4/tcp_output.c:1405 __tcp_send_ack.part.0+0x3a7/0x760 net/ipv4/tcp_output.c:3973 __tcp_send_ack net/ipv4/tcp_output.c:3979 [inline] tcp_send_ack+0x7d/0xa0 net/ipv4/tcp_output.c:3979 tcp_delack_timer_handler+0x5be/0x8c0 net/ipv4/tcp_timer.c:317 tcp_delack_timer+0xa2/0x320 net/ipv4/tcp_timer.c:344 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/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] snd_seq_timer_start+0x1ef/0x290 sound/core/seq/seq_timer.c:406 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 snd_seq_oss_timer_ioctl+0x3e3/0x620 sound/core/seq/oss/seq_oss_timer.c:237 snd_seq_oss_ioctl+0x737/0xd70 sound/core/seq/oss/seq_oss_ioctl.c:77 odev_ioctl+0x92/0x110 sound/core/seq/oss/seq_oss.c:184 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+0x46/0xb0 IN-SOFTIRQ-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+0x40/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 nf_hook+0x0/0x5b0 include/linux/skbuff.h:1275 __ip_local_out+0x262/0x520 net/ipv4/ip_output.c:115 ip_local_out net/ipv4/ip_output.c:124 [inline] __ip_queue_xmit+0x853/0x1be0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x190e/0x38c0 net/ipv4/tcp_output.c:1405 __tcp_send_ack.part.0+0x3a7/0x760 net/ipv4/tcp_output.c:3973 __tcp_send_ack net/ipv4/tcp_output.c:3979 [inline] tcp_send_ack+0x7d/0xa0 net/ipv4/tcp_output.c:3979 tcp_delack_timer_handler+0x5be/0x8c0 net/ipv4/tcp_timer.c:317 tcp_delack_timer+0xa2/0x320 net/ipv4/tcp_timer.c:344 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/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] snd_seq_timer_start+0x1ef/0x290 sound/core/seq/seq_timer.c:406 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 snd_seq_oss_timer_ioctl+0x3e3/0x620 sound/core/seq/oss/seq_oss_timer.c:237 snd_seq_oss_ioctl+0x737/0xd70 sound/core/seq/oss/seq_oss_ioctl.c:77 odev_ioctl+0x92/0x110 sound/core/seq/oss/seq_oss.c:184 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+0x46/0xb0 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0x32/0x50 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:374 [inline] snd_pcm_detach_substream+0x16b/0x360 sound/core/pcm.c:1001 snd_pcm_release_substream sound/core/pcm_native.c:2698 [inline] snd_pcm_release+0x111/0x230 sound/core/pcm_native.c:2893 __fput+0x277/0x9d0 fs/file_table.c:317 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 } ... key at: [] __key.10+0x0/0x40 -> (&new->fa_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 fasync_remove_entry+0xb6/0x1e0 fs/fcntl.c:872 fasync_helper+0x9e/0xb0 fs/fcntl.c:975 lease_modify fs/locks.c:1400 [inline] lease_modify+0x28a/0x370 fs/locks.c:1387 locks_remove_lease fs/locks.c:2643 [inline] locks_remove_file+0x29c/0x570 fs/locks.c:2668 __fput+0x1b0/0x9d0 fs/file_table.c:309 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 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+0x45/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 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_error_report+0x34b/0x4e0 net/core/sock.c:3206 sk_error_report+0x35/0x310 net/core/sock.c:345 sock_queue_err_skb+0x36b/0x7c0 net/core/skbuff.c:4671 __skb_complete_tx_timestamp+0x306/0x470 net/core/skbuff.c:4765 __skb_tstamp_tx+0x408/0x800 net/core/skbuff.c:4854 __dev_queue_xmit+0x22f2/0x3900 net/core/dev.c:4173 dev_queue_xmit include/linux/netdevice.h:2994 [inline] neigh_resolve_output net/core/neighbour.c:1528 [inline] neigh_resolve_output+0x517/0x840 net/core/neighbour.c:1508 neigh_output include/net/neighbour.h:549 [inline] ip_finish_output2+0x782/0x2170 net/ipv4/ip_output.c:228 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x32/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x19f/0x310 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0xd4/0x260 net/ipv4/ip_output.c:1571 udp_send_skb+0x725/0x1430 net/ipv4/udp.c:967 udp_sendmsg+0x1bee/0x2760 net/ipv4/udp.c:1254 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 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+0x46/0xb0 } ... key at: [] __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_stop1+0x496/0x860 sound/core/timer.c:657 snd_timer_stop sound/core/timer.c:710 [inline] snd_timer_close_locked+0x20f/0xbb0 sound/core/timer.c:408 snd_timer_close+0x87/0xf0 sound/core/timer.c:463 __snd_timer_user_ioctl.isra.0+0x10de/0x2490 sound/core/timer.c:1762 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+0x46/0xb0 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R 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+0x45/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x1e/0xaf0 fs/fcntl.c:816 sk_send_sigurg+0x76/0x310 net/core/sock.c:3275 tcp_check_urg net/ipv4/tcp_input.c:5596 [inline] tcp_urg+0x38e/0xb40 net/ipv4/tcp_input.c:5637 tcp_rcv_established+0x81d/0x20e0 net/ipv4/tcp_input.c:5984 tcp_v6_do_rcv+0x810/0x13c0 net/ipv6/tcp_ipv6.c:1476 tcp_v6_rcv+0x2d9b/0x37f0 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x2f9/0x1950 net/ipv6/ip6_input.c:436 ip6_input_finish+0x14c/0x2c0 net/ipv6/ip6_input.c:481 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:490 dst_input include/net/dst.h:461 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:76 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ipv6_rcv+0x27f/0x3b0 net/ipv6/ip6_input.c:306 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5480 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5594 process_backlog+0x3a0/0x7c0 net/core/dev.c:5922 __napi_poll+0xb3/0x6e0 net/core/dev.c:6488 napi_poll net/core/dev.c:6555 [inline] net_rx_action+0x9c1/0xd90 net/core/dev.c:6666 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:934 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:926 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 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 generic_add_lease fs/locks.c:1820 [inline] generic_setlease+0x11bc/0x1760 fs/locks.c:1899 vfs_setlease+0xfd/0x120 fs/locks.c:1989 do_fcntl_add_lease fs/locks.c:2010 [inline] fcntl_setlease+0x134/0x2c0 fs/locks.c:2032 do_fcntl+0x299/0x1040 fs/fcntl.c:402 __do_sys_fcntl fs/fcntl.c:453 [inline] __se_sys_fcntl fs/fcntl.c:438 [inline] __x64_sys_fcntl+0x15f/0x1d0 fs/fcntl.c:438 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+0x46/0xb0 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_sigurg+0x1e/0xaf0 fs/fcntl.c:816 sk_send_sigurg+0x76/0x310 net/core/sock.c:3275 tcp_check_urg net/ipv4/tcp_input.c:5596 [inline] tcp_urg+0x38e/0xb40 net/ipv4/tcp_input.c:5637 tcp_rcv_established+0x81d/0x20e0 net/ipv4/tcp_input.c:5984 tcp_v6_do_rcv+0x810/0x13c0 net/ipv6/tcp_ipv6.c:1476 sk_backlog_rcv include/net/sock.h:1047 [inline] __release_sock+0x134/0x3b0 net/core/sock.c:2849 release_sock+0x54/0x1b0 net/core/sock.c:3404 sk_stream_wait_memory+0x608/0xed0 net/core/stream.c:145 tcp_sendmsg_locked+0x7d5/0x2fd0 net/ipv4/tcp.c:1410 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1448 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:652 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 __sys_sendto+0x21a/0x320 net/socket.c:2119 __do_sys_sendto net/socket.c:2131 [inline] __se_sys_sendto net/socket.c:2127 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2127 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+0x46/0xb0 } ... key at: [] __key.5+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x45/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 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_error_report+0x34b/0x4e0 net/core/sock.c:3206 sk_error_report+0x35/0x310 net/core/sock.c:345 sock_queue_err_skb+0x36b/0x7c0 net/core/skbuff.c:4671 __skb_complete_tx_timestamp+0x306/0x470 net/core/skbuff.c:4765 __skb_tstamp_tx+0x408/0x800 net/core/skbuff.c:4854 __dev_queue_xmit+0x22f2/0x3900 net/core/dev.c:4173 dev_queue_xmit include/linux/netdevice.h:2994 [inline] neigh_resolve_output net/core/neighbour.c:1528 [inline] neigh_resolve_output+0x517/0x840 net/core/neighbour.c:1508 neigh_output include/net/neighbour.h:549 [inline] ip_finish_output2+0x782/0x2170 net/ipv4/ip_output.c:228 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x32/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x19f/0x310 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0xd4/0x260 net/ipv4/ip_output.c:1571 udp_send_skb+0x725/0x1430 net/ipv4/udp.c:967 udp_sendmsg+0x1bee/0x2760 net/ipv4/udp.c:1254 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 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+0x46/0xb0 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:302 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:302 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:302 } ... key at: [] 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 tcp_data_ready+0x106/0x520 net/ipv4/tcp_input.c:4986 tcp_data_queue+0x1bb2/0x4c60 net/ipv4/tcp_input.c:5060 tcp_rcv_established+0x82f/0x20e0 net/ipv4/tcp_input.c:5987 tcp_v4_do_rcv+0x66c/0x9b0 net/ipv4/tcp_ipv4.c:1659 sk_backlog_rcv include/net/sock.h:1047 [inline] __release_sock+0x134/0x3b0 net/core/sock.c:2849 release_sock+0x54/0x1b0 net/core/sock.c:3404 tcp_recvmsg+0x11d/0x620 net/ipv4/tcp.c:2555 inet_recvmsg+0x115/0x5e0 net/ipv4/af_inet.c:850 sock_recvmsg_nosec net/socket.c:995 [inline] sock_recvmsg net/socket.c:1013 [inline] sock_recvmsg net/socket.c:1009 [inline] __sys_recvfrom+0x226/0x380 net/socket.c:2171 __do_sys_recvfrom net/socket.c:2189 [inline] __se_sys_recvfrom net/socket.c:2185 [inline] __x64_sys_recvfrom+0xdd/0x1b0 net/socket.c:2185 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+0x46/0xb0 stack backtrace: CPU: 3 PID: 13120 Comm: syz-executor.1 Not tainted 5.19.0-rc5-syzkaller-00200-ga471da3100ef #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __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 tcp_data_ready+0x106/0x520 net/ipv4/tcp_input.c:4986 tcp_data_queue+0x1bb2/0x4c60 net/ipv4/tcp_input.c:5060 tcp_rcv_established+0x82f/0x20e0 net/ipv4/tcp_input.c:5987 tcp_v4_do_rcv+0x66c/0x9b0 net/ipv4/tcp_ipv4.c:1659 sk_backlog_rcv include/net/sock.h:1047 [inline] __release_sock+0x134/0x3b0 net/core/sock.c:2849 release_sock+0x54/0x1b0 net/core/sock.c:3404 tcp_recvmsg+0x11d/0x620 net/ipv4/tcp.c:2555 inet_recvmsg+0x115/0x5e0 net/ipv4/af_inet.c:850 sock_recvmsg_nosec net/socket.c:995 [inline] sock_recvmsg net/socket.c:1013 [inline] sock_recvmsg net/socket.c:1009 [inline] __sys_recvfrom+0x226/0x380 net/socket.c:2171 __do_sys_recvfrom net/socket.c:2189 [inline] __se_sys_recvfrom net/socket.c:2185 [inline] __x64_sys_recvfrom+0xdd/0x1b0 net/socket.c:2185 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+0x46/0xb0 RIP: 0033:0x7f4be1e89109 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:00007f4be2f34168 EFLAGS: 00000246 ORIG_RAX: 000000000000002d RAX: ffffffffffffffda RBX: 00007f4be1f9c030 RCX: 00007f4be1e89109 RDX: 00000000fffffe32 RSI: 0000000020000480 RDI: 0000000000000003 RBP: 00007f4be1ee305d R08: 0000000000000000 R09: ffffffffffffff39 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc8fe1c7ff R14: 00007f4be2f34300 R15: 0000000000022000