===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.10.0-rc4-syzkaller-00330-g7c16f0a4ed1c #0 Not tainted ----------------------------------------------------- syz-executor.2/11269 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8d80a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xb4/0x3c0 fs/fcntl.c:830 and this task is already holding: ffff88802ad92118 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x28/0x3c0 fs/fcntl.c:816 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: (&client->buffer_lock){-.-.}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x508/0x630 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+0xa12/0x2410 drivers/hid/hid-input.c:1746 hid_process_event+0x4b7/0x5e0 drivers/hid/hid-core.c:1540 hid_process_report drivers/hid/hid-core.c:1688 [inline] hid_report_raw_event+0x96b/0x11c0 drivers/hid/hid-core.c:2015 hid_input_report+0x345/0x440 drivers/hid/hid-core.c:2089 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x466/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x396/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x17f6/0x3900 drivers/usb/gadget/udc/dummy_hcd.c:1987 __run_hrtimer kernel/time/hrtimer.c:1687 [inline] __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1751 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x43/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1583 do_wait+0x219/0x570 kernel/exit.c:1627 kernel_wait+0xa0/0x160 kernel/exit.c:1803 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 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 *** 5 locks held by syz-executor.2/11269: #0: ffffffff8ddcd150 (file_rwsem){.+.+}-{0:0}, at: break_lease include/linux/filelock.h:431 [inline] #0: ffffffff8ddcd150 (file_rwsem){.+.+}-{0:0}, at: break_lease include/linux/filelock.h:421 [inline] #0: ffffffff8ddcd150 (file_rwsem){.+.+}-{0:0}, at: do_dentry_open+0x6b2/0x1930 fs/open.c:946 #1: ffff8880197ab2d8 (&ctx->flc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #1: ffff8880197ab2d8 (&ctx->flc_lock){+.+.}-{2:2}, at: __break_lease+0x49b/0x17d0 fs/locks.c:1564 #2: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #2: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #2: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: kill_fasync fs/fcntl.c:1048 [inline] #2: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x6d/0x4f0 fs/fcntl.c:1042 #3: ffff8880292e22b8 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1028 [inline] #3: ffff8880292e22b8 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1049 [inline] #3: ffff8880292e22b8 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x138/0x4f0 fs/fcntl.c:1042 #4: ffff88802ad92118 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x28/0x3c0 fs/fcntl.c:816 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){-.-.}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x508/0x630 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+0xa12/0x2410 drivers/hid/hid-input.c:1746 hid_process_event+0x4b7/0x5e0 drivers/hid/hid-core.c:1540 hid_process_report drivers/hid/hid-core.c:1688 [inline] hid_report_raw_event+0x96b/0x11c0 drivers/hid/hid-core.c:2015 hid_input_report+0x345/0x440 drivers/hid/hid-core.c:2089 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x466/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x396/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x17f6/0x3900 drivers/usb/gadget/udc/dummy_hcd.c:1987 __run_hrtimer kernel/time/hrtimer.c:1687 [inline] __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1751 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x43/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x508/0x630 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+0xa12/0x2410 drivers/hid/hid-input.c:1746 hid_process_event+0x4b7/0x5e0 drivers/hid/hid-core.c:1540 hid_process_report drivers/hid/hid-core.c:1688 [inline] hid_report_raw_event+0x96b/0x11c0 drivers/hid/hid-core.c:2015 hid_input_report+0x345/0x440 drivers/hid/hid-core.c:2089 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x389/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x396/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x17f6/0x3900 drivers/usb/gadget/udc/dummy_hcd.c:1987 __run_hrtimer kernel/time/hrtimer.c:1687 [inline] __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1751 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] input_inject_event+0x193/0x370 drivers/input/input.c:468 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:316 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:347 [inline] led_set_brightness+0x211/0x290 drivers/leds/led-core.c:309 led_trigger_event drivers/leds/led-triggers.c:394 [inline] led_trigger_event+0xda/0x270 drivers/leds/led-triggers.c:382 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1082 [inline] kbd_bh+0x21b/0x300 drivers/tty/vt/keyboard.c:1271 tasklet_action_common.constprop.0+0x24c/0x3e0 kernel/softirq.c:785 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x48/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x508/0x630 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+0xa12/0x2410 drivers/hid/hid-input.c:1746 hid_process_event+0x4b7/0x5e0 drivers/hid/hid-core.c:1540 hid_process_report drivers/hid/hid-core.c:1688 [inline] hid_report_raw_event+0x96b/0x11c0 drivers/hid/hid-core.c:2015 hid_input_report+0x345/0x440 drivers/hid/hid-core.c:2089 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x466/0x6e0 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x396/0x450 drivers/usb/core/hcd.c:1734 dummy_timer+0x17f6/0x3900 drivers/usb/gadget/udc/dummy_hcd.c:1987 __run_hrtimer kernel/time/hrtimer.c:1687 [inline] __hrtimer_run_queues+0x20c/0xcc0 kernel/time/hrtimer.c:1751 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x43/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 } ... key at: [] __key.1+0x0/0x40 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_insert_entry+0x1dc/0x2b0 fs/fcntl.c:952 fasync_add_entry fs/fcntl.c:991 [inline] fasync_helper+0x60/0xd0 fs/fcntl.c:1009 pipe_fasync+0xc2/0x200 fs/pipe.c:756 setfl fs/fcntl.c:75 [inline] do_fcntl+0xc03/0x1380 fs/fcntl.c:375 __do_sys_fcntl fs/fcntl.c:492 [inline] __se_sys_fcntl fs/fcntl.c:477 [inline] __x64_sys_fcntl+0x174/0x200 fs/fcntl.c:477 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1028 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1042 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x37a/0x630 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x450/0x750 drivers/input/evdev.c:530 vfs_write+0x29a/0x1140 fs/read_write.c:588 ksys_write+0x1f8/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1028 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1042 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x37a/0x630 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x450/0x750 drivers/input/evdev.c:530 vfs_write+0x29a/0x1140 fs/read_write.c:588 ksys_write+0x1f8/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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/0x380 fs/fcntl.c:93 __f_setown fs/fcntl.c:112 [inline] f_setown+0xd4/0x2a0 fs/fcntl.c:140 do_fcntl+0x11f7/0x1380 fs/fcntl.c:412 __do_sys_fcntl fs/fcntl.c:492 [inline] __se_sys_fcntl fs/fcntl.c:477 [inline] __x64_sys_fcntl+0x174/0x200 fs/fcntl.c:477 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xc30 fs/fcntl.c:855 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3411 tcp_check_urg net/ipv4/tcp_input.c:5784 [inline] tcp_urg+0x343/0xb80 net/ipv4/tcp_input.c:5825 tcp_rcv_established+0x8de/0x21b0 net/ipv4/tcp_input.c:6174 tcp_v4_do_rcv+0x707/0xab0 net/ipv4/tcp_ipv4.c:1909 sk_backlog_rcv include/net/sock.h:1106 [inline] __release_sock+0x31b/0x400 net/core/sock.c:2983 release_sock+0x5a/0x220 net/core/sock.c:3549 tcp_sendmsg+0x38/0x50 net/ipv4/tcp.c:1352 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:853 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x42c/0x4e0 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2200 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.2+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x28/0x3c0 fs/fcntl.c:816 kill_fasync_rcu fs/fcntl.c:1035 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1042 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x2a1/0x4d0 drivers/input/input.c:129 input_pass_values+0x5c9/0x840 drivers/input/input.c:161 input_event_dispose+0x37a/0x630 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x450/0x750 drivers/input/evdev.c:530 vfs_write+0x29a/0x1140 fs/read_write.c:588 ksys_write+0x1f8/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1583 do_wait+0x219/0x570 kernel/exit.c:1627 kernel_wait+0xa0/0x160 kernel/exit.c:1803 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1583 do_wait+0x219/0x570 kernel/exit.c:1627 kernel_wait+0xa0/0x160 kernel/exit.c:1803 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __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+0x441a/0x8f10 kernel/fork.c:2516 kernel_clone+0xfd/0x980 kernel/fork.c:2797 user_mode_thread+0xb4/0xf0 kernel/fork.c:2875 rest_init+0x23/0x2b0 init/main.c:712 start_kernel+0x3df/0x4c0 init/main.c:1103 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1583 do_wait+0x219/0x570 kernel/exit.c:1627 kernel_wait+0xa0/0x160 kernel/exit.c:1803 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xb4/0x3c0 fs/fcntl.c:830 kill_fasync_rcu fs/fcntl.c:1035 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1042 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x67c/0x17d0 fs/locks.c:1592 break_lease include/linux/filelock.h:431 [inline] break_lease include/linux/filelock.h:421 [inline] do_dentry_open+0x6b2/0x1930 fs/open.c:946 do_open fs/namei.c:3650 [inline] path_openat+0x1e3a/0x29f0 fs/namei.c:3807 do_filp_open+0x1dc/0x430 fs/namei.c:3834 do_sys_openat2+0x17a/0x1e0 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1431 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 0 PID: 11269 Comm: syz-executor.2 Not tainted 6.10.0-rc4-syzkaller-00330-g7c16f0a4ed1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_bad_irq_dependency kernel/locking/lockdep.c:2626 [inline] check_irq_usage+0xe3c/0x1490 kernel/locking/lockdep.c:2865 check_prev_add kernel/locking/lockdep.c:3138 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x248e/0x3b30 kernel/locking/lockdep.c:5137 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xb4/0x3c0 fs/fcntl.c:830 kill_fasync_rcu fs/fcntl.c:1035 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1042 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x67c/0x17d0 fs/locks.c:1592 break_lease include/linux/filelock.h:431 [inline] break_lease include/linux/filelock.h:421 [inline] do_dentry_open+0x6b2/0x1930 fs/open.c:946 do_open fs/namei.c:3650 [inline] path_openat+0x1e3a/0x29f0 fs/namei.c:3807 do_filp_open+0x1dc/0x430 fs/namei.c:3834 do_sys_openat2+0x17a/0x1e0 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1431 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdb947d0a9 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:00007fbdba20c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fbdb95b4050 RCX: 00007fbdb947d0a9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: ffffffffffffff9c RBP: 00007fbdb94ec074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fbdb95b4050 R15: 00007ffcee9875d8