===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.15.0-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.1/30906 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8b60a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xab/0x380 fs/fcntl.c:810 and this task is already holding: ffff888088cc9a38 (&f->f_owner.lock){.-.-}-{2:2}, at: send_sigio+0x24/0x380 fs/fcntl.c:796 which would create a new lock dependency: (&f->f_owner.lock){.-.-}-{2:2} -> (tasklist_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 kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __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_notify sound/core/timer.c:1087 [inline] snd_timer_notify+0x10c/0x3d0 sound/core/timer.c:1074 snd_pcm_timer_notify sound/core/pcm_native.c:595 [inline] snd_pcm_post_stop+0x195/0x1f0 sound/core/pcm_native.c:1453 snd_pcm_action_single sound/core/pcm_native.c:1229 [inline] snd_pcm_action+0x143/0x170 sound/core/pcm_native.c:1310 __snd_pcm_xrun+0x150/0x650 sound/core/pcm_lib.c:155 snd_pcm_update_state+0x4ad/0x540 sound/core/pcm_lib.c:196 snd_pcm_update_hw_ptr0+0xa75/0x1a50 sound/core/pcm_lib.c:465 snd_pcm_period_elapsed_under_stream_lock+0x15a/0x230 sound/core/pcm_lib.c:1817 snd_pcm_period_elapsed+0x28/0x50 sound/core/pcm_lib.c:1849 dummy_hrtimer_callback+0x94/0x1b0 sound/drivers/dummy.c:377 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 do_softirq.part.0+0xde/0x130 kernel/softirq.c:459 do_softirq kernel/softirq.c:451 [inline] __local_bh_enable_ip+0x102/0x120 kernel/softirq.c:383 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x2a5/0x3a0 net/batman-adv/network-coding.c:475 batadv_nc_worker+0x930/0xfa0 net/batman-adv/network-coding.c:726 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 do_wait+0x284/0xce0 kernel/exit.c:1511 kernel_wait+0x9c/0x150 kernel/exit.c:1701 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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 *** 7 locks held by syz-executor.1/30906: #0: ffff88806d3a8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffff888010c790b8 (&buf->lock){+.+.}-{3:3}, at: paste_selection+0x110/0x4c0 drivers/tty/vt/selection.c:390 #2: ffffffff8c39bb88 (vc_sel.lock){+.+.}-{3:3}, at: paste_selection+0x146/0x4c0 drivers/tty/vt/selection.c:393 #3: ffff88806d3a82e8 (&tty->termios_rwsem){++++}-{3:3}, at: isig+0x37d/0x430 drivers/tty/n_tty.c:1149 #4: ffffffff8b983960 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x41/0x470 fs/fcntl.c:1033 #5: ffff888071cf9558 (&new->fa_lock){.-..}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1014 [inline] #5: ffff888071cf9558 (&new->fa_lock){.-..}-{2:2}, at: kill_fasync fs/fcntl.c:1035 [inline] #5: ffff888071cf9558 (&new->fa_lock){.-..}-{2:2}, at: kill_fasync+0x136/0x470 fs/fcntl.c:1028 #6: ffff888088cc9a38 (&f->f_owner.lock){.-.-}-{2:2}, at: send_sigio+0x24/0x380 fs/fcntl.c:796 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&timer->lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __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_notify sound/core/timer.c:1087 [inline] snd_timer_notify+0x10c/0x3d0 sound/core/timer.c:1074 snd_pcm_timer_notify sound/core/pcm_native.c:595 [inline] snd_pcm_post_stop+0x195/0x1f0 sound/core/pcm_native.c:1453 snd_pcm_action_single sound/core/pcm_native.c:1229 [inline] snd_pcm_action+0x143/0x170 sound/core/pcm_native.c:1310 __snd_pcm_xrun+0x150/0x650 sound/core/pcm_lib.c:155 snd_pcm_update_state+0x4ad/0x540 sound/core/pcm_lib.c:196 snd_pcm_update_hw_ptr0+0xa75/0x1a50 sound/core/pcm_lib.c:465 snd_pcm_period_elapsed_under_stream_lock+0x15a/0x230 sound/core/pcm_lib.c:1817 snd_pcm_period_elapsed+0x28/0x50 sound/core/pcm_lib.c:1849 dummy_hrtimer_callback+0x94/0x1b0 sound/drivers/dummy.c:377 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 do_softirq.part.0+0xde/0x130 kernel/softirq.c:459 do_softirq kernel/softirq.c:451 [inline] __local_bh_enable_ip+0x102/0x120 kernel/softirq.c:383 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x2a5/0x3a0 net/batman-adv/network-coding.c:475 batadv_nc_worker+0x930/0xfa0 net/batman-adv/network-coding.c:726 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __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:375 [inline] snd_timer_close_locked+0x63/0xbb0 sound/core/timer.c:396 snd_timer_close+0x87/0xf0 sound/core/timer.c:463 snd_seq_timer_close+0x8c/0xe0 sound/core/seq/seq_timer.c:326 queue_delete+0x4a/0xa0 sound/core/seq/seq_queue.c:134 snd_seq_queue_delete+0x45/0x60 sound/core/seq/seq_queue.c:196 snd_seq_kernel_client_ctl+0x102/0x1e0 sound/core/seq/seq_clientmgr.c:2369 delete_seq_queue.part.0.isra.0+0xa2/0x110 sound/core/seq/oss/seq_oss_init.c:377 delete_seq_queue sound/core/seq/oss/seq_oss_init.c:373 [inline] snd_seq_oss_release+0x10b/0x1a0 sound/core/seq/oss/seq_oss_init.c:422 odev_release+0x4f/0x70 sound/core/seq/oss/seq_oss.c:144 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __key.12+0x0/0x40 -> (&new->fa_lock){.-..}-{2:2} { IN-HARDIRQ-R at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x45/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x136/0x470 fs/fcntl.c:1028 perf_event_wakeup kernel/events/core.c:6434 [inline] perf_pending_event+0x432/0x560 kernel/events/core.c:6517 irq_work_single+0x120/0x270 kernel/irq_work.c:211 irq_work_run_list+0x91/0xc0 kernel/irq_work.c:242 irq_work_run+0x54/0xd0 kernel/irq_work.c:251 __sysvec_irq_work+0x95/0x3d0 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8e/0xc0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:664 native_apic_mem_write arch/x86/include/asm/apic.h:107 [inline] __default_send_IPI_shortcut arch/x86/kernel/apic/ipi.c:139 [inline] default_send_IPI_self+0x5d/0xe0 arch/x86/kernel/apic/ipi.c:242 arch_irq_work_raise+0x92/0x110 arch/x86/kernel/irq_work.c:31 __irq_work_queue_local+0x15a/0x1b0 kernel/irq_work.c:102 irq_work_queue kernel/irq_work.c:114 [inline] irq_work_queue+0x47/0x80 kernel/irq_work.c:106 __perf_event_overflow+0x239/0x3d0 kernel/events/core.c:9211 perf_swevent_overflow kernel/events/core.c:9283 [inline] perf_swevent_event+0x4b9/0x550 kernel/events/core.c:9321 do_perf_sw_event kernel/events/core.c:9424 [inline] ___perf_sw_event+0x31a/0x570 kernel/events/core.c:9455 __perf_sw_event+0x54/0x130 kernel/events/core.c:9467 perf_sw_event include/linux/perf_event.h:1174 [inline] do_user_addr_fault+0x5ea/0x11c0 arch/x86/mm/fault.c:1301 handle_page_fault arch/x86/mm/fault.c:1485 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1541 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 copy_user_generic_string+0x2c/0x40 arch/x86/lib/copy_user_64.S:168 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] copyin.part.0+0xe4/0x110 lib/iov_iter.c:168 copyin lib/iov_iter.c:767 [inline] _copy_from_iter+0x2a3/0x1320 lib/iov_iter.c:767 copy_from_iter include/linux/uio.h:164 [inline] copy_from_iter_full include/linux/uio.h:170 [inline] skb_do_copy_data_nocache include/net/sock.h:2145 [inline] skb_copy_to_page_nocache include/net/sock.h:2171 [inline] tcp_sendmsg_locked+0x11ed/0x2c60 net/ipv4/tcp.c:1325 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1423 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 __sys_sendto+0x21c/0x320 net/socket.c:2036 __do_sys_sendto net/socket.c:2048 [inline] __se_sys_sendto net/socket.c:2044 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044 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+0x44/0xae INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_write_lock_irq include/linux/rwlock_api_smp.h:194 [inline] _raw_write_lock_irq+0x32/0x50 kernel/locking/spinlock.c:316 fasync_remove_entry+0xb6/0x1f0 fs/fcntl.c:891 fasync_helper+0x9e/0xb0 fs/fcntl.c:994 sock_fasync+0x94/0x140 net/socket.c:1339 __fput+0x846/0x9f0 fs/file_table.c:277 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xc14/0x2b40 kernel/exit.c:832 do_group_exit+0x125/0x310 kernel/exit.c:929 get_signal+0x47d/0x21d0 kernel/signal.c:2820 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x136/0x470 fs/fcntl.c:1028 sock_wake_async+0xd2/0x160 net/socket.c:1368 sk_wake_async include/net/sock.h:2400 [inline] sk_wake_async+0x108/0x290 include/net/sock.h:2396 unix_release_sock+0x79d/0xbc0 net/unix/af_unix.c:570 unix_release+0x84/0xe0 net/unix/af_unix.c:949 __sock_release+0xcd/0x280 net/socket.c:649 sock_close+0x18/0x20 net/socket.c:1314 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 get_signal+0x1b80/0x21d0 kernel/signal.c:2593 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x136/0x470 fs/fcntl.c:1028 snd_timer_user_ccallback+0x298/0x330 sound/core/timer.c:1387 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:697 [inline] snd_timer_start sound/core/timer.c:690 [inline] snd_timer_user_start.isra.0+0x1e3/0x260 sound/core/timer.c:1985 __snd_timer_user_ioctl.isra.0+0xda8/0x2490 sound/core/timer.c:2108 snd_timer_user_ioctl+0x77/0xb0 sound/core/timer.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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+0x44/0xae -> (&f->f_owner.lock){.-.-}-{2:2} { IN-HARDIRQ-R at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x45/0x90 kernel/locking/spinlock.c:236 send_sigio+0x24/0x380 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x1f8/0x470 fs/fcntl.c:1028 perf_event_wakeup kernel/events/core.c:6434 [inline] perf_pending_event+0x432/0x560 kernel/events/core.c:6517 irq_work_single+0x120/0x270 kernel/irq_work.c:211 irq_work_run_list+0x91/0xc0 kernel/irq_work.c:242 irq_work_run+0x54/0xd0 kernel/irq_work.c:251 __sysvec_irq_work+0x95/0x3d0 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8e/0xc0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:664 native_apic_mem_write arch/x86/include/asm/apic.h:107 [inline] __default_send_IPI_shortcut arch/x86/kernel/apic/ipi.c:139 [inline] default_send_IPI_self+0x5d/0xe0 arch/x86/kernel/apic/ipi.c:242 arch_irq_work_raise+0x92/0x110 arch/x86/kernel/irq_work.c:31 __irq_work_queue_local+0x15a/0x1b0 kernel/irq_work.c:102 irq_work_queue kernel/irq_work.c:114 [inline] irq_work_queue+0x47/0x80 kernel/irq_work.c:106 __perf_event_overflow+0x239/0x3d0 kernel/events/core.c:9211 perf_swevent_overflow kernel/events/core.c:9283 [inline] perf_swevent_event+0x4b9/0x550 kernel/events/core.c:9321 do_perf_sw_event kernel/events/core.c:9424 [inline] ___perf_sw_event+0x31a/0x570 kernel/events/core.c:9455 __perf_sw_event+0x54/0x130 kernel/events/core.c:9467 perf_sw_event include/linux/perf_event.h:1174 [inline] do_user_addr_fault+0x5ea/0x11c0 arch/x86/mm/fault.c:1301 handle_page_fault arch/x86/mm/fault.c:1485 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1541 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 copy_user_generic_string+0x2c/0x40 arch/x86/lib/copy_user_64.S:168 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] copyin.part.0+0xe4/0x110 lib/iov_iter.c:168 copyin lib/iov_iter.c:767 [inline] _copy_from_iter+0x2a3/0x1320 lib/iov_iter.c:767 copy_from_iter include/linux/uio.h:164 [inline] copy_from_iter_full include/linux/uio.h:170 [inline] skb_do_copy_data_nocache include/net/sock.h:2145 [inline] skb_copy_to_page_nocache include/net/sock.h:2171 [inline] tcp_sendmsg_locked+0x11ed/0x2c60 net/ipv4/tcp.c:1325 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1423 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 __sys_sendto+0x21c/0x320 net/socket.c:2036 __do_sys_sendto net/socket.c:2048 [inline] __se_sys_sendto net/socket.c:2044 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044 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+0x44/0xae IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x45/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x1e/0xaf0 fs/fcntl.c:835 sk_send_sigurg+0x76/0x310 net/core/sock.c:3172 tcp_check_urg.isra.0+0x1f3/0x710 net/ipv4/tcp_input.c:5567 tcp_urg net/ipv4/tcp_input.c:5608 [inline] tcp_rcv_established+0x12ab/0x2130 net/ipv4/tcp_input.c:5942 tcp_v4_do_rcv+0x600/0x8d0 net/ipv4/tcp_ipv4.c:1716 tcp_v4_rcv+0x2768/0x3080 net/ipv4/tcp_ipv4.c:2110 ip_protocol_deliver_rcu+0xa7/0xee0 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x20a/0x370 net/ipv4/ip_input.c:231 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip_local_deliver+0x1b3/0x200 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:460 [inline] ip_rcv_finish+0x1da/0x2f0 net/ipv4/ip_input.c:429 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip_rcv+0xaa/0xd0 net/ipv4/ip_input.c:540 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5462 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5576 process_backlog+0x2a5/0x6c0 net/core/dev.c:6452 __napi_poll+0xaf/0x440 net/core/dev.c:7017 napi_poll net/core/dev.c:7084 [inline] net_rx_action+0x801/0xb40 net/core/dev.c:7171 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 run_ksoftirqd kernel/softirq.c:920 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:912 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_write_lock_irq include/linux/rwlock_api_smp.h:194 [inline] _raw_write_lock_irq+0x32/0x50 kernel/locking/spinlock.c:316 f_modown+0x2a/0x390 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown+0xd7/0x230 fs/fcntl.c:138 sock_ioctl+0x37e/0x640 net/socket.c:1178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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+0x44/0xae INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x1e/0xaf0 fs/fcntl.c:835 sk_send_sigurg+0x76/0x310 net/core/sock.c:3172 tcp_check_urg.isra.0+0x1f3/0x710 net/ipv4/tcp_input.c:5567 tcp_urg net/ipv4/tcp_input.c:5608 [inline] tcp_rcv_established+0x12ab/0x2130 net/ipv4/tcp_input.c:5942 tcp_v6_do_rcv+0x461/0x1320 net/ipv6/tcp_ipv6.c:1522 sk_backlog_rcv include/net/sock.h:1030 [inline] __release_sock+0x134/0x3b0 net/core/sock.c:2768 release_sock+0x54/0x1b0 net/core/sock.c:3300 sk_stream_wait_memory+0x604/0xed0 net/core/stream.c:145 tcp_sendmsg_locked+0x7c1/0x2c60 net/ipv4/tcp.c:1385 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1423 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:644 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 __sys_sendto+0x21c/0x320 net/socket.c:2036 __do_sys_sendto net/socket.c:2048 [inline] __se_sys_sendto net/socket.c:2044 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044 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+0x44/0xae } ... key at: [] __key.5+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 send_sigio+0x24/0x380 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x1f8/0x470 fs/fcntl.c:1028 sock_wake_async+0xd2/0x160 net/socket.c:1368 sk_wake_async include/net/sock.h:2400 [inline] sk_wake_async+0x108/0x290 include/net/sock.h:2396 unix_release_sock+0x79d/0xbc0 net/unix/af_unix.c:570 unix_release+0x84/0xe0 net/unix/af_unix.c:949 __sock_release+0xcd/0x280 net/socket.c:649 sock_close+0x18/0x20 net/socket.c:1314 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 get_signal+0x1b80/0x21d0 kernel/signal.c:2593 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 do_wait+0x284/0xce0 kernel/exit.c:1511 kernel_wait+0x9c/0x150 kernel/exit.c:1701 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 do_wait+0x284/0xce0 kernel/exit.c:1511 kernel_wait+0x9c/0x150 kernel/exit.c:1701 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_write_lock_irq include/linux/rwlock_api_smp.h:194 [inline] _raw_write_lock_irq+0x32/0x50 kernel/locking/spinlock.c:316 copy_process+0x36c0/0x75a0 kernel/fork.c:2310 kernel_clone+0xe7/0xab0 kernel/fork.c:2581 kernel_thread+0xb5/0xf0 kernel/fork.c:2633 rest_init+0x23/0x3e0 init/main.c:690 start_kernel+0x47a/0x49b init/main.c:1133 secondary_startup_64_no_verify+0xb0/0xbb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 do_wait+0x284/0xce0 kernel/exit.c:1511 kernel_wait+0x9c/0x150 kernel/exit.c:1701 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:166 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 send_sigio+0xab/0x380 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x1f8/0x470 fs/fcntl.c:1028 __receive_buf drivers/tty/n_tty.c:1591 [inline] n_tty_receive_buf_common+0x12d7/0x4780 drivers/tty/n_tty.c:1674 tty_ldisc_receive_buf+0xa3/0x190 drivers/tty/tty_buffer.c:471 paste_selection+0x1de/0x4c0 drivers/tty/vt/selection.c:408 tioclinux+0x126/0x560 drivers/tty/vt/vt.c:3204 vt_ioctl+0x229a/0x2b10 drivers/tty/vt/vt_ioctl.c:762 tty_ioctl+0xbbd/0x1670 drivers/tty/tty_io.c:2805 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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+0x44/0xae stack backtrace: CPU: 0 PID: 30906 Comm: syz-executor.1 Not tainted 5.15.0-syzkaller #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+0xcd/0x134 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2565 [inline] check_irq_usage.cold+0x4c1/0x6b0 kernel/locking/lockdep.c:2804 check_prev_add kernel/locking/lockdep.c:3055 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain kernel/locking/lockdep.c:3789 [inline] __lock_acquire+0x2a1f/0x54a0 kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:228 send_sigio+0xab/0x380 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x1f8/0x470 fs/fcntl.c:1028 __receive_buf drivers/tty/n_tty.c:1591 [inline] n_tty_receive_buf_common+0x12d7/0x4780 drivers/tty/n_tty.c:1674 tty_ldisc_receive_buf+0xa3/0x190 drivers/tty/tty_buffer.c:471 paste_selection+0x1de/0x4c0 drivers/tty/vt/selection.c:408 tioclinux+0x126/0x560 drivers/tty/vt/vt.c:3204 vt_ioctl+0x229a/0x2b10 drivers/tty/vt/vt_ioctl.c:762 tty_ioctl+0xbbd/0x1670 drivers/tty/tty_io.c:2805 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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+0x44/0xae RIP: 0033:0x7fe65c57aae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe659acf188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe65c68e020 RCX: 00007fe65c57aae9 RDX: 0000000020000240 RSI: 000000000000541c RDI: 0000000000000004 RBP: 00007fe65c5d4f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe7f74375f R14: 00007fe659acf300 R15: 0000000000022000