===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.10.0-rc6-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor755/8473 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888029bc1038 (&f->f_owner.lock){.+.+}-{2:2}, at: send_sigio+0x2c/0x300 fs/fcntl.c:786 and this task is already holding: ffff88801fd814b0 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1002 [inline] ffff88801fd814b0 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1023 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} ... which became HARDIRQ-irq-safe at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x73/0xa0 kernel/locking/spinlock.c:159 input_event+0x89/0xc0 drivers/input/input.c:440 input_report_key include/linux/input.h:417 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x44f/0x640 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x44/0x4a0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x6cb/0x10c0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x88/0x130 drivers/input/serio/serio.c:1002 i8042_interrupt+0x34c/0x740 drivers/input/serio/i8042.c:602 __handle_irq_event_percpu+0x1b7/0x620 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xbd/0x280 kernel/irq/handle.c:213 handle_edge_irq+0x245/0xbe0 kernel/irq/chip.c:819 asm_call_irq_on_stack+0xf/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0x147/0x230 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:622 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x36/0x60 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] i8042_command drivers/input/serio/i8042.c:352 [inline] i8042_aux_write+0xd2/0x140 drivers/input/serio/i8042.c:387 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1a2/0x620 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5c/0x120 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status+0xf5/0x550 drivers/input/mouse/cypress_ps2.c:116 cypress_send_ext_cmd+0x10d/0x3f0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x37/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1023 [inline] psmouse_extensions+0x13dc/0x1ff0 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x307/0x840 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x87e/0x1540 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 really_probe+0x45f/0x1380 drivers/base/dd.c:554 driver_probe_device+0x15b/0x310 drivers/base/dd.c:738 device_driver_attach+0x176/0x280 drivers/base/dd.c:1013 __driver_attach+0xa7/0x4a0 drivers/base/dd.c:1090 bus_for_each_dev+0x108/0x160 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x789/0xfc0 kernel/workqueue.c:2272 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2418 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 to a HARDIRQ-irq-unsafe lock: (&f->f_owner.lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:206 [inline] do_fcntl+0xb0/0x11b0 fs/fcntl.c:387 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 other info that might help us debug this: Chain exists of: &dev->event_lock --> &new->fa_lock --> &f->f_owner.lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&f->f_owner.lock); local_irq_disable(); lock(&dev->event_lock); lock(&new->fa_lock); lock(&dev->event_lock); *** DEADLOCK *** 8 locks held by syz-executor755/8473: #0: ffff888144fa5110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x1cf/0x6a0 drivers/input/evdev.c:513 #1: ffff888143792230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0xb3/0x280 drivers/input/input.c:466 #2: ffffffff8bce6940 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:247 #3: ffffffff8bce6940 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:247 #4: ffffffff8bce6940 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:247 #5: ffff888014fa1028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff888014fa1028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 #6: ffffffff8bce6940 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:247 #7: ffff88801fd814b0 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1002 [inline] #7: ffff88801fd814b0 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1023 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x73/0xa0 kernel/locking/spinlock.c:159 input_event+0x89/0xc0 drivers/input/input.c:440 input_report_key include/linux/input.h:417 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x44f/0x640 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x44/0x4a0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x6cb/0x10c0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x88/0x130 drivers/input/serio/serio.c:1002 i8042_interrupt+0x34c/0x740 drivers/input/serio/i8042.c:602 __handle_irq_event_percpu+0x1b7/0x620 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xbd/0x280 kernel/irq/handle.c:213 handle_edge_irq+0x245/0xbe0 kernel/irq/chip.c:819 asm_call_irq_on_stack+0xf/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0x147/0x230 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:622 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x36/0x60 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] i8042_command drivers/input/serio/i8042.c:352 [inline] i8042_aux_write+0xd2/0x140 drivers/input/serio/i8042.c:387 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1a2/0x620 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5c/0x120 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status+0xf5/0x550 drivers/input/mouse/cypress_ps2.c:116 cypress_send_ext_cmd+0x10d/0x3f0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x37/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1023 [inline] psmouse_extensions+0x13dc/0x1ff0 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x307/0x840 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x87e/0x1540 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 really_probe+0x45f/0x1380 drivers/base/dd.c:554 driver_probe_device+0x15b/0x310 drivers/base/dd.c:738 device_driver_attach+0x176/0x280 drivers/base/dd.c:1013 __driver_attach+0xa7/0x4a0 drivers/base/dd.c:1090 bus_for_each_dev+0x108/0x160 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x789/0xfc0 kernel/workqueue.c:2272 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2418 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x73/0xa0 kernel/locking/spinlock.c:159 input_inject_event+0xb3/0x280 drivers/input/input.c:466 led_trigger_event+0x5f/0xb0 drivers/leds/led-triggers.c:387 kbd_led_trigger_activate+0x116/0x160 drivers/tty/vt/keyboard.c:1010 led_trigger_set+0x4ca/0x8c0 drivers/leds/led-triggers.c:195 led_trigger_set_default+0x1cf/0x210 drivers/leds/led-triggers.c:259 led_classdev_register_ext+0x602/0x7a0 drivers/leds/led-class.c:417 led_classdev_register include/linux/leds.h:190 [inline] input_leds_connect+0x493/0x660 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1031 [inline] input_register_device+0xd36/0x1220 drivers/input/input.c:2229 atkbd_connect+0x741/0x9f0 drivers/input/keyboard/atkbd.c:1293 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 really_probe+0x45f/0x1380 drivers/base/dd.c:554 driver_probe_device+0x15b/0x310 drivers/base/dd.c:738 device_driver_attach+0x176/0x280 drivers/base/dd.c:1013 __driver_attach+0xa7/0x4a0 drivers/base/dd.c:1090 bus_for_each_dev+0x108/0x160 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x789/0xfc0 kernel/workqueue.c:2272 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2418 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 } ... key at: [] input_allocate_device.__key.6+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] evdev_open.__key.17+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x6f/0xa0 kernel/locking/spinlock.c:311 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:880 __fput+0x658/0x7b0 fs/file_table.c:278 task_work_run+0x137/0x1c0 kernel/task_work.c:151 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x63c/0x22e0 kernel/exit.c:809 do_group_exit+0x161/0x2c0 kernel/exit.c:906 __do_sys_exit_group+0x13/0x20 kernel/exit.c:917 __ia32_sys_exit_group+0x0/0x40 kernel/exit.c:915 __x64_sys_exit_group+0x37/0x40 kernel/exit.c:915 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 INITIAL READ USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] fasync_insert_entry.__key+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 send_sigio+0x2c/0x300 fs/fcntl.c:786 kill_fasync_rcu fs/fcntl.c:1009 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (&f->f_owner.lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:206 [inline] do_fcntl+0xb0/0x11b0 fs/fcntl.c:387 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 SOFTIRQ-ON-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:206 [inline] do_fcntl+0xb0/0x11b0 fs/fcntl.c:387 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 INITIAL READ USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:206 [inline] do_fcntl+0xb0/0x11b0 fs/fcntl.c:387 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 send_sigio+0x2c/0x300 fs/fcntl.c:786 kill_fasync_rcu fs/fcntl.c:1009 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 stack backtrace: CPU: 1 PID: 8473 Comm: syz-executor755 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:118 print_bad_irq_dependency kernel/locking/lockdep.c:2452 [inline] check_irq_usage kernel/locking/lockdep.c:2681 [inline] check_prev_add kernel/locking/lockdep.c:2872 [inline] check_prevs_add+0x459d/0x52c0 kernel/locking/lockdep.c:2993 validate_chain kernel/locking/lockdep.c:3608 [inline] __lock_acquire+0x4227/0x5e90 kernel/locking/lockdep.c:4832 lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5437 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 send_sigio+0x2c/0x300 fs/fcntl.c:786 kill_fasync_rcu fs/fcntl.c:1009 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xc09/0x1510 drivers/input/input.c:410 input_inject_event+0x1e8/0x280 drivers/input/input.c:471 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x444f99 Code: e8 fc ab 02 00 48 83 c4 18 c3 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 0f 83 3b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe3fe23f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004a6012 RCX: 0000000000444f99 RDX: 0000000000000018 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 000000000000b6fe R08: 00000000004002e0 R09: 00000000004002e0 R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402160 R13: 00000000004021f0 R14: 0000000000000000 R15: 0000000000000000