===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.15.120-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/16915 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8c60a058 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xd2/0x330 fs/fcntl.c:810 and this task is already holding: ffff8880307868b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x2f/0x330 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: (&client->buffer_lock){..-.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xd3d/0x1600 drivers/input/input.c:426 input_event+0x9d/0xd0 drivers/input/input.c:457 hidinput_hid_event+0x1137/0x18e0 drivers/hid/hid-input.c:1467 hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1532 hid_input_field drivers/hid/hid-core.c:1576 [inline] hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1800 hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1867 hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1670 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1737 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5626 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269 rcu_read_lock include/linux/rcupdate.h:696 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0xc1/0x5b0 net/batman-adv/network-coding.c:723 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 other info that might help us debug this: Chain exists of: &client->buffer_lock --> &f->f_owner.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&client->buffer_lock); lock(&f->f_owner.lock); lock(&client->buffer_lock); *** DEADLOCK *** 6 locks held by syz-executor.0/16915: #0: ffff88807f06a460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffffffff8ca37ed0 (file_rwsem){.+.+}-{0:0}, at: __break_lease+0x186/0x13b0 fs/locks.c:1531 #2: ffff88801e6796f8 (&ctx->flc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #2: ffff88801e6796f8 (&ctx->flc_lock){+.+.}-{2:2}, at: __break_lease+0x193/0x13b0 fs/locks.c:1532 #3: ffffffff8c91e6a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:268 #4: ffff888030c95750 (&new->fa_lock){...-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1014 [inline] #4: ffff888030c95750 (&new->fa_lock){...-}-{2:2}, at: kill_fasync+0x16a/0x490 fs/fcntl.c:1035 #5: ffff8880307868b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x2f/0x330 fs/fcntl.c:796 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xd3d/0x1600 drivers/input/input.c:426 input_event+0x9d/0xd0 drivers/input/input.c:457 hidinput_hid_event+0x1137/0x18e0 drivers/hid/hid-input.c:1467 hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1532 hid_input_field drivers/hid/hid-core.c:1576 [inline] hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1800 hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1867 hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1670 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1737 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5626 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269 rcu_read_lock include/linux/rcupdate.h:696 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0xc1/0x5b0 net/batman-adv/network-coding.c:723 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xd3d/0x1600 drivers/input/input.c:426 input_inject_event+0x1fc/0x300 drivers/input/input.c:487 evdev_do_ioctl drivers/input/evdev.c:1072 [inline] evdev_ioctl_handler+0x1643/0x2090 drivers/input/evdev.c:1272 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] evdev_open.__key.23+0x0/0x20 -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x16a/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2432 sock_def_readable+0x181/0x240 net/core/sock.c:3060 tcp_data_queue+0x2146/0x6f20 net/ipv4/tcp_input.c:5065 tcp_rcv_state_process+0x2c18/0x44b0 net/ipv4/tcp_input.c:6626 tcp_v6_do_rcv+0x867/0x10f0 net/ipv6/tcp_ipv6.c:1551 tcp_v6_rcv+0x2220/0x27b0 net/ipv6/tcp_ipv6.c:1767 ip6_protocol_deliver_rcu+0x93d/0x12d0 net/ipv6/ip6_input.c:425 ip6_input_finish+0xa2/0x130 net/ipv6/ip6_input.c:466 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5462 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5576 process_backlog+0x363/0x7f0 net/core/dev.c:6453 __napi_poll+0xc7/0x440 net/core/dev.c:7012 napi_poll net/core/dev.c:7079 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7166 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 cpu_max_bits_warn include/linux/cpumask.h:108 [inline] cpumask_check include/linux/cpumask.h:115 [inline] cpumask_test_cpu include/linux/cpumask.h:344 [inline] cpu_online include/linux/cpumask.h:895 [inline] trace_skb_copy_datagram_iovec include/trace/events/skb.h:88 [inline] skb_copy_datagram_iter+0x41/0x210 net/core/datagram.c:532 skb_copy_datagram_msg include/linux/skbuff.h:3732 [inline] __unix_dgram_recvmsg+0x7e3/0x1260 net/unix/af_unix.c:2356 ____sys_recvmsg+0x286/0x530 ___sys_recvmsg+0x1ec/0x690 net/socket.c:2673 do_recvmmsg+0x36f/0x8f0 net/socket.c:2767 __sys_recvmmsg net/socket.c:2846 [inline] __do_sys_recvmmsg net/socket.c:2869 [inline] __se_sys_recvmmsg net/socket.c:2862 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2862 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 fasync_remove_entry+0xfb/0x1d0 fs/fcntl.c:891 lease_modify+0x19c/0x380 fs/locks.c:1425 locks_remove_lease fs/locks.c:2658 [inline] locks_remove_file+0x5d3/0x1040 fs/locks.c:2683 __fput+0x32b/0x890 fs/file_table.c:272 task_work_run+0x129/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x16a/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2432 sock_def_error_report+0x183/0x250 net/core/sock.c:3047 sk_error_report+0x3b/0x260 net/core/sock.c:339 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6175 [inline] tcp_rcv_state_process+0x1578/0x44b0 net/ipv4/tcp_input.c:6439 tcp_v6_do_rcv+0x867/0x10f0 net/ipv6/tcp_ipv6.c:1551 sk_backlog_rcv include/net/sock.h:1059 [inline] __release_sock+0x198/0x4b0 net/core/sock.c:2690 release_sock+0x5d/0x1c0 net/core/sock.c:3231 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1463 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x564/0x720 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2047 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x16a/0x490 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x5ad/0xb60 drivers/input/evdev.c:278 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xc9b/0x1600 drivers/input/input.c:415 input_inject_event+0x1fc/0x300 drivers/input/input.c:487 evdev_write+0x668/0x7c0 drivers/input/evdev.c:530 vfs_write+0x30c/0xe50 fs/read_write.c:592 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x380 fs/fcntl.c:835 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3094 tcp_check_urg net/ipv4/tcp_input.c:5586 [inline] tcp_urg+0x2b8/0xb40 net/ipv4/tcp_input.c:5627 tcp_rcv_state_process+0x29f6/0x44b0 net/ipv4/tcp_input.c:6594 tcp_v6_do_rcv+0x867/0x10f0 net/ipv6/tcp_ipv6.c:1551 tcp_v6_rcv+0x2220/0x27b0 net/ipv6/tcp_ipv6.c:1767 ip6_protocol_deliver_rcu+0x93d/0x12d0 net/ipv6/ip6_input.c:425 ip6_input_finish+0xa2/0x130 net/ipv6/ip6_input.c:466 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5462 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5576 process_backlog+0x363/0x7f0 net/core/dev.c:6453 __napi_poll+0xc7/0x440 net/core/dev.c:7012 napi_poll net/core/dev.c:7079 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7166 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 cpu_max_bits_warn include/linux/cpumask.h:108 [inline] cpumask_check include/linux/cpumask.h:115 [inline] cpumask_test_cpu include/linux/cpumask.h:344 [inline] cpu_online include/linux/cpumask.h:895 [inline] trace_skb_copy_datagram_iovec include/trace/events/skb.h:88 [inline] skb_copy_datagram_iter+0x41/0x210 net/core/datagram.c:532 skb_copy_datagram_msg include/linux/skbuff.h:3732 [inline] __unix_dgram_recvmsg+0x7e3/0x1260 net/unix/af_unix.c:2356 ____sys_recvmsg+0x286/0x530 ___sys_recvmsg+0x1ec/0x690 net/socket.c:2673 do_recvmmsg+0x36f/0x8f0 net/socket.c:2767 __sys_recvmmsg net/socket.c:2846 [inline] __do_sys_recvmmsg net/socket.c:2869 [inline] __se_sys_recvmmsg net/socket.c:2862 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2862 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 f_modown+0x38/0x340 fs/fcntl.c:91 generic_add_lease fs/locks.c:1845 [inline] generic_setlease+0xf12/0x1390 fs/locks.c:1925 vfs_setlease fs/locks.c:2015 [inline] do_fcntl_add_lease fs/locks.c:2036 [inline] fcntl_setlease+0x341/0x3f0 fs/locks.c:2058 do_fcntl+0x10a/0x1600 fs/fcntl.c:419 __do_sys_fcntl fs/fcntl.c:472 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:457 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irq include/linux/rwlock_api_smp.h:169 [inline] _raw_read_lock_irq+0xd6/0x120 kernel/locking/spinlock.c:244 f_getown+0x22/0x240 fs/fcntl.c:154 sock_ioctl+0x3ee/0x770 net/socket.c:1185 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x330 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x20c/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2432 sock_def_error_report+0x183/0x250 net/core/sock.c:3047 sk_error_report+0x3b/0x260 net/core/sock.c:339 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6175 [inline] tcp_rcv_state_process+0x1578/0x44b0 net/ipv4/tcp_input.c:6439 tcp_v6_do_rcv+0x867/0x10f0 net/ipv6/tcp_ipv6.c:1551 sk_backlog_rcv include/net/sock.h:1059 [inline] __release_sock+0x198/0x4b0 net/core/sock.c:2690 release_sock+0x5d/0x1c0 net/core/sock.c:3231 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1463 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x564/0x720 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2047 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 SOFTIRQ-ON-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 copy_process+0x22be/0x3ef0 kernel/fork.c:2329 kernel_clone+0x210/0x960 kernel/fork.c:2601 kernel_thread+0x168/0x1e0 kernel/fork.c:2653 rest_init+0x21/0x330 init/main.c:701 start_kernel+0x491/0x53a init/main.c:1144 secondary_startup_64_no_verify+0xb1/0xbb INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xd2/0x330 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x20c/0x490 fs/fcntl.c:1035 lease_break_callback+0x22/0x30 fs/locks.c:585 __break_lease+0x4d1/0x13b0 fs/locks.c:1560 break_lease include/linux/fs.h:2576 [inline] do_dentry_open+0x77a/0xfb0 fs/open.c:817 do_open fs/namei.c:3538 [inline] path_openat+0x2702/0x2f20 fs/namei.c:3672 do_filp_open+0x21c/0x460 fs/namei.c:3699 do_sys_openat2+0x13b/0x500 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_creat fs/open.c:1301 [inline] __se_sys_creat fs/open.c:1295 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1295 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb stack backtrace: CPU: 0 PID: 16915 Comm: syz-executor.0 Not tainted 5.15.120-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 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:2567 [inline] check_irq_usage kernel/locking/lockdep.c:2806 [inline] check_prev_add kernel/locking/lockdep.c:3057 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain+0x4cfe/0x58b0 kernel/locking/lockdep.c:3787 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5011 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xd2/0x330 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x20c/0x490 fs/fcntl.c:1035 lease_break_callback+0x22/0x30 fs/locks.c:585 __break_lease+0x4d1/0x13b0 fs/locks.c:1560 break_lease include/linux/fs.h:2576 [inline] do_dentry_open+0x77a/0xfb0 fs/open.c:817 do_open fs/namei.c:3538 [inline] path_openat+0x2702/0x2f20 fs/namei.c:3672 do_filp_open+0x21c/0x460 fs/namei.c:3699 do_sys_openat2+0x13b/0x500 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_creat fs/open.c:1301 [inline] __se_sys_creat fs/open.c:1295 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1295 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe45e7ffb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe45cd810c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fe45e91ef80 RCX: 00007fe45e7ffb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200001c0 RBP: 00007fe45e84b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fe45e91ef80 R15: 00007ffee9536a98