===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.10.0-rc6-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.3/15920 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88801ce24db8 (&f->f_owner.lock){.+.+}-{2:2}, at: send_sigio+0x2c/0x300 fs/fcntl.c:786 and this task is already holding: ffff888013217168 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1002 [inline] ffff888013217168 (&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_safe_halt arch/x86/include/asm/irqflags.h:60 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline] acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] acpi_idle_do_entry drivers/acpi/processor_idle.c:517 [inline] acpi_idle_enter+0x3ce/0x700 drivers/acpi/processor_idle.c:648 cpuidle_enter_state+0x486/0xd50 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:158 [inline] cpuidle_idle_call kernel/sched/idle.c:239 [inline] do_idle+0x315/0x530 kernel/sched/idle.c:299 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:395 secondary_startup_64_no_verify+0xb0/0xbb 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 send_sigurg+0x24/0x350 fs/fcntl.c:824 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2925 tcp_check_urg net/ipv4/tcp_input.c:5490 [inline] tcp_urg+0x26f/0xa90 net/ipv4/tcp_input.c:5531 tcp_rcv_established+0xbf3/0x23d0 net/ipv4/tcp_input.c:5865 tcp_v6_do_rcv+0x4a4/0x1270 net/ipv6/tcp_ipv6.c:1474 sk_backlog_rcv include/net/sock.h:1010 [inline] __release_sock+0x1db/0x4c0 net/core/sock.c:2523 release_sock+0x5d/0x1c0 net/core/sock.c:3053 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1445 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmsg+0x2b1/0x360 net/socket.c:2440 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-executor.3/15920: #0: ffff88801ea99110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x1cf/0x6a0 drivers/input/evdev.c:513 #1: ffff88801d6bc230 (&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: ffff888072e10028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff888072e10028 (&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: ffff888013217168 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1002 [inline] #7: ffff888013217168 (&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_safe_halt arch/x86/include/asm/irqflags.h:60 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline] acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] acpi_idle_do_entry drivers/acpi/processor_idle.c:517 [inline] acpi_idle_enter+0x3ce/0x700 drivers/acpi/processor_idle.c:648 cpuidle_enter_state+0x486/0xd50 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:158 [inline] cpuidle_idle_call kernel/sched/idle.c:239 [inline] do_idle+0x315/0x530 kernel/sched/idle.c:299 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:395 secondary_startup_64_no_verify+0xb0/0xbb 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+0xb70/0x1510 drivers/input/input.c:399 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+0xb70/0x1510 drivers/input/input.c:399 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+0xb70/0x1510 drivers/input/input.c:399 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 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+0xb70/0x1510 drivers/input/input.c:399 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+0xb70/0x1510 drivers/input/input.c:399 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 send_sigurg+0x24/0x350 fs/fcntl.c:824 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2925 tcp_check_urg net/ipv4/tcp_input.c:5490 [inline] tcp_urg+0x26f/0xa90 net/ipv4/tcp_input.c:5531 tcp_rcv_established+0xbf3/0x23d0 net/ipv4/tcp_input.c:5865 tcp_v6_do_rcv+0x4a4/0x1270 net/ipv6/tcp_ipv6.c:1474 sk_backlog_rcv include/net/sock.h:1010 [inline] __release_sock+0x1db/0x4c0 net/core/sock.c:2523 release_sock+0x5d/0x1c0 net/core/sock.c:3053 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1445 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmsg+0x2b1/0x360 net/socket.c:2440 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 send_sigurg+0x24/0x350 fs/fcntl.c:824 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2925 tcp_check_urg net/ipv4/tcp_input.c:5490 [inline] tcp_urg+0x26f/0xa90 net/ipv4/tcp_input.c:5531 tcp_rcv_established+0xbf3/0x23d0 net/ipv4/tcp_input.c:5865 tcp_v6_do_rcv+0x4a4/0x1270 net/ipv6/tcp_ipv6.c:1474 sk_backlog_rcv include/net/sock.h:1010 [inline] __release_sock+0x1db/0x4c0 net/core/sock.c:2523 release_sock+0x5d/0x1c0 net/core/sock.c:3053 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1445 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmsg+0x2b1/0x360 net/socket.c:2440 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 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 f_modown+0x38/0x330 fs/fcntl.c:90 __f_setown fs/fcntl.c:109 [inline] f_setown+0x113/0x1a0 fs/fcntl.c:137 sock_ioctl+0x351/0x690 net/socket.c:1128 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 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 send_sigurg+0x24/0x350 fs/fcntl.c:824 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2925 tcp_check_urg net/ipv4/tcp_input.c:5490 [inline] tcp_urg+0x26f/0xa90 net/ipv4/tcp_input.c:5531 tcp_rcv_established+0xbf3/0x23d0 net/ipv4/tcp_input.c:5865 tcp_v6_do_rcv+0x4a4/0x1270 net/ipv6/tcp_ipv6.c:1474 sk_backlog_rcv include/net/sock.h:1010 [inline] __release_sock+0x1db/0x4c0 net/core/sock.c:2523 release_sock+0x5d/0x1c0 net/core/sock.c:3053 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1445 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmsg+0x2b1/0x360 net/socket.c:2440 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+0xb70/0x1510 drivers/input/input.c:399 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: 15920 Comm: syz-executor.3 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+0xb70/0x1510 drivers/input/input.c:399 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:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8869c1dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000003adc0 RCX: 000000000045deb9 RDX: 0000000000035000 RSI: 0000000020000040 RDI: 0000000000000005 RBP: 000000000119bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf2c R13: 00007ffda01771df R14: 00007f8869c1e9c0 R15: 000000000119bf2c