===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.8.0-rc7-syzkaller-00130-g135288b73cef #0 Not tainted ----------------------------------------------------- syz-executor110/5053 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888023169a18 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x33/0x360 fs/fcntl.c:780 and this task is already holding: ffff88801eecb018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:998 [inline] ffff88801eecb018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19e/0x4d0 fs/fcntl.c:1019 which would create a new lock dependency: (&new->fa_lock){....}-{2:2} -> (&f->f_owner.lock){....}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock#2){-...}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_event+0x91/0xd0 drivers/input/input.c:434 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:128 [inline] psmouse_report_standard_packet+0x54/0x200 drivers/input/mouse/psmouse-base.c:146 psmouse_process_byte+0x48c/0x680 drivers/input/mouse/psmouse-base.c:237 psmouse_handle_byte+0x49/0x4c0 drivers/input/mouse/psmouse-base.c:279 ps2_interrupt+0x17c/0x8e0 drivers/input/serio/libps2.c:613 serio_interrupt+0x90/0x140 drivers/input/serio/serio.c:998 i8042_interrupt+0x375/0x770 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x289/0xa30 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x25f/0xc20 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:238 [inline] __common_interrupt+0x138/0x230 arch/x86/kernel/irq.c:257 common_interrupt+0xa5/0xd0 arch/x86/kernel/irq.c:247 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:640 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x116/0x1a0 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x20f/0x730 drivers/input/serio/libps2.c:58 ps2_sendbyte+0x60/0x120 drivers/input/serio/libps2.c:113 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x221/0x910 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x93/0x230 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1006 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1020 [inline] psmouse_extensions+0xc2e/0x1560 drivers/input/mouse/psmouse-base.c:1143 psmouse_switch_protocol+0x308/0x7d0 drivers/input/mouse/psmouse-base.c:1537 psmouse_connect+0x8e4/0x14b0 drivers/input/mouse/psmouse-base.c:1626 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x7f/0xa0 drivers/input/serio/serio.c:775 really_probe+0x29e/0xc50 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x3e0 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __driver_attach+0x45f/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x1c7/0x920 drivers/input/serio/serio.c:224 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0x12d/0x840 kernel/exit.c:1580 do_wait+0x1d8/0x540 kernel/exit.c:1624 kernel_wait+0xe9/0x240 kernel/exit.c:1800 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xbd/0x230 kernel/umh.c:164 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &new->fa_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&new->fa_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 8 locks held by syz-executor110/5053: #0: ffff888024ba4110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x271/0x7c0 drivers/input/evdev.c:513 #1: ffff888024abc230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0xc5/0x340 drivers/input/input.c:460 #2: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #2: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #2: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0xd5/0x340 drivers/input/input.c:462 #3: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #3: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #3: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: input_pass_values+0x9d/0x1200 drivers/input/input.c:153 #4: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #4: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #4: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x6f/0x300 drivers/input/evdev.c:298 #5: ffff88807e5c8028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #5: ffff88807e5c8028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xf2/0xad0 drivers/input/evdev.c:261 #6: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #6: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #6: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x55/0x4d0 fs/fcntl.c:1018 #7: ffff88801eecb018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:998 [inline] #7: ffff88801eecb018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19e/0x4d0 fs/fcntl.c:1019 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_event+0x91/0xd0 drivers/input/input.c:434 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:128 [inline] psmouse_report_standard_packet+0x54/0x200 drivers/input/mouse/psmouse-base.c:146 psmouse_process_byte+0x48c/0x680 drivers/input/mouse/psmouse-base.c:237 psmouse_handle_byte+0x49/0x4c0 drivers/input/mouse/psmouse-base.c:279 ps2_interrupt+0x17c/0x8e0 drivers/input/serio/libps2.c:613 serio_interrupt+0x90/0x140 drivers/input/serio/serio.c:998 i8042_interrupt+0x375/0x770 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x289/0xa30 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x25f/0xc20 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:238 [inline] __common_interrupt+0x138/0x230 arch/x86/kernel/irq.c:257 common_interrupt+0xa5/0xd0 arch/x86/kernel/irq.c:247 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:640 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x116/0x1a0 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x20f/0x730 drivers/input/serio/libps2.c:58 ps2_sendbyte+0x60/0x120 drivers/input/serio/libps2.c:113 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x221/0x910 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x93/0x230 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1006 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1020 [inline] psmouse_extensions+0xc2e/0x1560 drivers/input/mouse/psmouse-base.c:1143 psmouse_switch_protocol+0x308/0x7d0 drivers/input/mouse/psmouse-base.c:1537 psmouse_connect+0x8e4/0x14b0 drivers/input/mouse/psmouse-base.c:1626 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x7f/0xa0 drivers/input/serio/serio.c:775 really_probe+0x29e/0xc50 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x3e0 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __driver_attach+0x45f/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x1c7/0x920 drivers/input/serio/serio.c:224 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 INITIAL USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_inject_event+0xc5/0x340 drivers/input/input.c:460 led_trigger_event+0x11c/0x1e0 drivers/leds/led-triggers.c:378 kbd_led_trigger_activate+0xbd/0x100 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x541/0x950 drivers/leds/led-triggers.c:198 led_trigger_set_default+0x1ca/0x200 drivers/leds/led-triggers.c:263 led_classdev_register_ext+0x6df/0x8f0 drivers/leds/led-class.c:555 led_classdev_register include/linux/leds.h:279 [inline] input_leds_connect+0x497/0x640 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1064 [inline] input_register_device+0xcfa/0x1090 drivers/input/input.c:2396 atkbd_connect+0x752/0xa00 drivers/input/keyboard/atkbd.c:1342 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x7f/0xa0 drivers/input/serio/serio.c:775 really_probe+0x29e/0xc50 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x3e0 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __driver_attach+0x45f/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x1c7/0x920 drivers/input/serio/serio.c:224 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 } ... key at: [] input_allocate_device.__key.5+0x0/0x20 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __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+0xf2/0xad0 drivers/input/evdev.c:261 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 } ... key at: [] evdev_open.__key.24+0x0/0x20 ... acquired at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __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+0xf2/0xad0 drivers/input/evdev.c:261 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x130 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:998 [inline] kill_fasync+0x19e/0x4d0 fs/fcntl.c:1019 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xad0 drivers/input/evdev.c:278 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x130 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:998 [inline] kill_fasync+0x19e/0x4d0 fs/fcntl.c:1019 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xad0 drivers/input/evdev.c:278 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0x12d/0x840 kernel/exit.c:1580 do_wait+0x1d8/0x540 kernel/exit.c:1624 kernel_wait+0xe9/0x240 kernel/exit.c:1800 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xbd/0x230 kernel/umh.c:164 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 SOFTIRQ-ON-R at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0x12d/0x840 kernel/exit.c:1580 do_wait+0x1d8/0x540 kernel/exit.c:1624 kernel_wait+0xe9/0x240 kernel/exit.c:1800 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xbd/0x230 kernel/umh.c:164 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 INITIAL USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:326 copy_process+0x2837/0x3fc0 kernel/fork.c:2621 kernel_clone+0x222/0x840 kernel/fork.c:2902 user_mode_thread+0x132/0x1a0 kernel/fork.c:2980 rest_init+0x27/0x300 init/main.c:695 arch_call_rest_init+0xe/0x10 init/main.c:827 start_kernel+0x474/0x500 init/main.c:1072 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555 x86_64_start_kernel+0x99/0xa0 arch/x86/kernel/head64.c:536 secondary_startup_64_no_verify+0x171/0x17b INITIAL READ USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0x12d/0x840 kernel/exit.c:1580 do_wait+0x1d8/0x540 kernel/exit.c:1624 kernel_wait+0xe9/0x240 kernel/exit.c:1800 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xbd/0x230 kernel/umh.c:164 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 send_sigurg+0xee/0x3c0 fs/fcntl.c:835 sk_send_sigurg+0x6e/0xc0 net/core/sock.c:3400 queue_oob+0x62a/0x8f0 net/unix/af_unix.c:2167 unix_stream_sendmsg+0xfda/0x1230 net/unix/af_unix.c:2284 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:326 f_modown+0x38/0x340 fs/fcntl.c:92 __f_setown fs/fcntl.c:111 [inline] f_setown+0x14f/0x200 fs/fcntl.c:139 do_fcntl+0x83e/0x1690 fs/fcntl.c:379 __do_sys_fcntl fs/fcntl.c:456 [inline] __se_sys_fcntl+0xd2/0x1b0 fs/fcntl.c:441 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 INITIAL READ USE at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x130 kernel/locking/spinlock.c:236 send_sigurg+0x29/0x3c0 fs/fcntl.c:819 sk_send_sigurg+0x6e/0xc0 net/core/sock.c:3400 queue_oob+0x62a/0x8f0 net/unix/af_unix.c:2167 unix_stream_sendmsg+0xfda/0x1230 net/unix/af_unix.c:2284 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 } ... key at: [] init_file.__key+0x0/0x20 ... acquired at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x130 kernel/locking/spinlock.c:236 send_sigio+0x33/0x360 fs/fcntl.c:780 kill_fasync_rcu fs/fcntl.c:1005 [inline] kill_fasync+0x23a/0x4d0 fs/fcntl.c:1019 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xad0 drivers/input/evdev.c:278 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 stack backtrace: CPU: 1 PID: 5053 Comm: syz-executor110 Not tainted 6.8.0-rc7-syzkaller-00130-g135288b73cef #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2626 [inline] check_irq_usage kernel/locking/lockdep.c:2865 [inline] check_prev_add kernel/locking/lockdep.c:3138 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain+0x4dc5/0x58e0 kernel/locking/lockdep.c:3869 __lock_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x130 kernel/locking/spinlock.c:236 send_sigio+0x33/0x360 fs/fcntl.c:780 kill_fasync_rcu fs/fcntl.c:1005 [inline] kill_fasync+0x23a/0x4d0 fs/fcntl.c:1019 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xad0 drivers/input/evdev.c:278 evdev_events+0x1c2/0x300 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x84d/0x1200 drivers/input/input.c:161 input_event_dispose+0x36c/0x650 drivers/input/input.c:378 input_handle_event+0xa71/0xbe0 drivers/input/input.c:406 input_inject_event+0x22f/0x340 drivers/input/input.c:465 evdev_write+0x670/0x7c0 drivers/input/evdev.c:530 vfs_write+0x2a4/0xcb0 fs/read_write.c:588 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f59f590f329 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe094346a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ffe09434878 RCX: 00007f59f590f329