===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.5.0-rc2-syzkaller-00052-gbfa3037d8280 #0 Not tainted ----------------------------------------------------- syz-executor.2/11338 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8c60a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xaf/0x3c0 fs/fcntl.c:793 and this task is already holding: ffff88802c647dd8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x28/0x3c0 fs/fcntl.c:779 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 kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:150 [inline] input_event_dispose+0x556/0x770 drivers/input/input.c:389 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_event drivers/input/input.c:435 [inline] input_event+0x83/0xa0 drivers/input/input.c:427 hidinput_hid_event+0x915/0x22f0 drivers/hid/hid-input.c:1712 hid_process_event+0x4b1/0x5e0 drivers/hid/hid-core.c:1534 hid_process_report drivers/hid/hid-core.c:1682 [inline] hid_report_raw_event+0x97b/0x11e0 drivers/hid/hid-core.c:2009 hid_input_report+0x342/0x440 drivers/hid/hid-core.c:2083 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x359/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x389/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x1415/0x35f0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] __intel_idle_hlt drivers/idle/intel_idle.c:205 [inline] intel_idle_hlt+0x11/0x20 drivers/idle/intel_idle.c:224 cpuidle_enter_state+0x82/0x500 drivers/cpuidle/cpuidle.c:267 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388 cpuidle_idle_call kernel/sched/idle.c:215 [inline] do_idle+0x315/0x3f0 kernel/sched/idle.c:282 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379 start_secondary+0x200/0x290 arch/x86/kernel/smpboot.c:326 secondary_startup_64_no_verify+0x167/0x16b to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a9/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 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.2/11338: #0: ffff888024084410 (sb_writers#5){.+.+}-{0:0}, at: do_open fs/namei.c:3629 [inline] #0: ffff888024084410 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x1e7c/0x29c0 fs/namei.c:3793 #1: ffffffff8cb99490 (file_rwsem){++++}-{0:0}, at: break_lease include/linux/filelock.h:360 [inline] #1: ffffffff8cb99490 (file_rwsem){++++}-{0:0}, at: break_lease include/linux/filelock.h:350 [inline] #1: ffffffff8cb99490 (file_rwsem){++++}-{0:0}, at: do_dentry_open+0x62c/0x1780 fs/open.c:905 #2: ffff88802dc53388 (&ctx->flc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88802dc53388 (&ctx->flc_lock){+.+.}-{2:2}, at: __break_lease+0x526/0x17f0 fs/locks.c:1494 #3: ffffffff8c9a3200 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x46/0x4f0 fs/fcntl.c:1016 #4: ffff8880617e49f0 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:997 [inline] #4: ffff8880617e49f0 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1018 [inline] #4: ffff8880617e49f0 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x13a/0x4f0 fs/fcntl.c:1011 #5: ffff88802c647dd8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x28/0x3c0 fs/fcntl.c:779 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:150 [inline] input_event_dispose+0x556/0x770 drivers/input/input.c:389 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_event drivers/input/input.c:435 [inline] input_event+0x83/0xa0 drivers/input/input.c:427 hidinput_hid_event+0x915/0x22f0 drivers/hid/hid-input.c:1712 hid_process_event+0x4b1/0x5e0 drivers/hid/hid-core.c:1534 hid_process_report drivers/hid/hid-core.c:1682 [inline] hid_report_raw_event+0x97b/0x11e0 drivers/hid/hid-core.c:2009 hid_input_report+0x342/0x440 drivers/hid/hid-core.c:2083 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x359/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x389/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x1415/0x35f0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] __intel_idle_hlt drivers/idle/intel_idle.c:205 [inline] intel_idle_hlt+0x11/0x20 drivers/idle/intel_idle.c:224 cpuidle_enter_state+0x82/0x500 drivers/cpuidle/cpuidle.c:267 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388 cpuidle_idle_call kernel/sched/idle.c:215 [inline] do_idle+0x315/0x3f0 kernel/sched/idle.c:282 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379 start_secondary+0x200/0x290 arch/x86/kernel/smpboot.c:326 secondary_startup_64_no_verify+0x167/0x16b INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:150 [inline] input_event_dispose+0x556/0x770 drivers/input/input.c:389 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_event drivers/input/input.c:435 [inline] input_event+0x83/0xa0 drivers/input/input.c:427 hidinput_hid_event+0x915/0x22f0 drivers/hid/hid-input.c:1712 hid_process_event+0x4b1/0x5e0 drivers/hid/hid-core.c:1534 hid_process_report drivers/hid/hid-core.c:1682 [inline] hid_report_raw_event+0x97b/0x11e0 drivers/hid/hid-core.c:2009 hid_input_report+0x342/0x440 drivers/hid/hid-core.c:2083 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x359/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x389/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x1415/0x35f0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] __intel_idle_hlt drivers/idle/intel_idle.c:205 [inline] intel_idle_hlt+0x11/0x20 drivers/idle/intel_idle.c:224 cpuidle_enter_state+0x82/0x500 drivers/cpuidle/cpuidle.c:267 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388 cpuidle_idle_call kernel/sched/idle.c:215 [inline] do_idle+0x315/0x3f0 kernel/sched/idle.c:282 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379 start_secondary+0x200/0x290 arch/x86/kernel/smpboot.c:326 secondary_startup_64_no_verify+0x167/0x16b } ... key at: [] __key.3+0x0/0x40 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xb9/0x1f0 fs/fcntl.c:874 fasync_helper+0xa7/0xc0 fs/fcntl.c:977 tun_chr_fasync+0x54/0x160 drivers/net/tun.c:3435 __fput+0x86c/0xac0 fs/file_table.c:381 task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __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:997 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x13a/0x4f0 fs/fcntl.c:1011 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1c2/0x380 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... 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:997 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x13a/0x4f0 fs/fcntl.c:1011 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1c2/0x380 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xbe0 fs/fcntl.c:818 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3369 tcp_check_urg net/ipv4/tcp_input.c:5632 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5673 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6022 tcp_v4_do_rcv+0x669/0x9e0 net/ipv4/tcp_ipv4.c:1726 tcp_v4_rcv+0x3202/0x3620 net/ipv4/tcp_ipv4.c:2148 ip_protocol_deliver_rcu+0x9f/0x480 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2e6/0x520 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:303 [inline] NF_HOOK include/linux/netfilter.h:297 [inline] ip_local_deliver+0x1be/0x540 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:468 [inline] ip_rcv_finish+0x1c4/0x2e0 net/ipv4/ip_input.c:449 NF_HOOK include/linux/netfilter.h:303 [inline] NF_HOOK include/linux/netfilter.h:297 [inline] ip_rcv+0xc8/0x410 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core+0x115/0x180 net/core/dev.c:5452 __netif_receive_skb+0x1f/0x1b0 net/core/dev.c:5566 process_backlog+0x101/0x6c0 net/core/dev.c:5894 __napi_poll.constprop.0+0xb4/0x530 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x956/0xe90 net/core/dev.c:6660 __do_softirq+0x218/0x965 kernel/softirq.c:553 do_softirq kernel/softirq.c:454 [inline] do_softirq+0xaa/0xe0 kernel/softirq.c:441 __local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:381 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x1ce/0x3c0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x986/0x10f0 net/batman-adv/network-coding.c:720 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 f_modown+0x2a/0x390 fs/fcntl.c:92 __f_setown fs/fcntl.c:111 [inline] f_setown_ex fs/fcntl.c:201 [inline] do_fcntl+0xcf8/0x1290 fs/fcntl.c:384 __do_sys_fcntl fs/fcntl.c:455 [inline] __se_sys_fcntl fs/fcntl.c:440 [inline] __x64_sys_fcntl+0x16c/0x1e0 fs/fcntl.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __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+0x22/0xbe0 fs/fcntl.c:818 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3369 tcp_check_urg net/ipv4/tcp_input.c:5632 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5673 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6022 tcp_v4_do_rcv+0x669/0x9e0 net/ipv4/tcp_ipv4.c:1726 sk_backlog_rcv include/net/sock.h:1115 [inline] __release_sock+0x132/0x3a0 net/core/sock.c:2970 release_sock+0x58/0x1b0 net/core/sock.c:3507 sk_stream_wait_memory+0x6bc/0xff0 net/core/stream.c:145 tcp_sendmsg_locked+0xaff/0x3420 net/ipv4/tcp.c:1291 tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1333 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:748 __sys_sendto+0x255/0x340 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2142 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.5+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 send_sigio+0x28/0x3c0 fs/fcntl.c:779 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x1f8/0x4f0 fs/fcntl.c:1011 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1be/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x536/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1c2/0x380 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd 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:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a9/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a9/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x4672/0x7400 kernel/fork.c:2629 kernel_clone+0xfd/0x8f0 kernel/fork.c:2912 user_mode_thread+0xb4/0xf0 kernel/fork.c:2990 rest_init+0x27/0x2b0 init/main.c:691 arch_call_rest_init+0x13/0x30 init/main.c:823 start_kernel+0x39f/0x480 init/main.c:1068 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:556 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:537 secondary_startup_64_no_verify+0x167/0x16b INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a9/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xaf/0x3c0 fs/fcntl.c:793 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x1f8/0x4f0 fs/fcntl.c:1011 lease_break_callback+0x23/0x30 fs/locks.c:522 __break_lease+0x70f/0x17f0 fs/locks.c:1522 break_lease include/linux/filelock.h:360 [inline] break_lease include/linux/filelock.h:350 [inline] do_dentry_open+0x62c/0x1780 fs/open.c:905 do_open fs/namei.c:3636 [inline] path_openat+0x19af/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3820 do_sys_openat2+0x176/0x1e0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_creat fs/open.c:1498 [inline] __se_sys_creat fs/open.c:1492 [inline] __x64_sys_creat+0xcd/0x120 fs/open.c:1492 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 2 PID: 11338 Comm: syz-executor.2 Not tainted 6.5.0-rc2-syzkaller-00052-gbfa3037d8280 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2634 [inline] check_irq_usage+0x10b8/0x1c70 kernel/locking/lockdep.c:2873 check_prev_add kernel/locking/lockdep.c:3146 [inline] check_prevs_add kernel/locking/lockdep.c:3261 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0x2e53/0x5de0 kernel/locking/lockdep.c:5144 lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xaf/0x3c0 fs/fcntl.c:793 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x1f8/0x4f0 fs/fcntl.c:1011 lease_break_callback+0x23/0x30 fs/locks.c:522 __break_lease+0x70f/0x17f0 fs/locks.c:1522 break_lease include/linux/filelock.h:360 [inline] break_lease include/linux/filelock.h:350 [inline] do_dentry_open+0x62c/0x1780 fs/open.c:905 do_open fs/namei.c:3636 [inline] path_openat+0x19af/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3820 do_sys_openat2+0x176/0x1e0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_creat fs/open.c:1498 [inline] __se_sys_creat fs/open.c:1492 [inline] __x64_sys_creat+0xcd/0x120 fs/open.c:1492 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fba5407cb29 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:00007fba54d150c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fba5419bf80 RCX: 00007fba5407cb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020001440 RBP: 00007fba540c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fba5419bf80 R15: 00007ffeec704718