===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.185-syzkaller #0 Not tainted ----------------------------------------------------- syz.0.2109/12263 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88805a5d4018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1008 [inline] ffff88805a5d4018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x16d/0x490 fs/fcntl.c:1029 and this task is already holding: ffff888060ef8028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] ffff888060ef8028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{2:2} -> (&new->fa_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+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:456 input_report_key include/linux/input.h:425 [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+0x42b/0x620 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x369/0x710 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x291/0x9b0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xa5/0x220 kernel/irq/handle.c:213 handle_edge_irq+0x243/0xb20 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:233 [inline] __common_interrupt+0xd7/0x1e0 arch/x86/kernel/irq.c:252 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 number+0x28/0xf70 lib/vsprintf.c:455 vsnprintf+0x10fe/0x1a00 lib/vsprintf.c:2877 add_uevent_var+0x1c5/0x440 lib/kobject_uevent.c:680 kobject_uevent_env+0x51a/0x890 lib/kobject_uevent.c:603 driver_register+0x3e2/0x430 drivers/base/driver.c:248 usb_register_driver+0x202/0x3d0 drivers/usb/core/driver.c:1061 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&client->buffer_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 7 locks held by syz.0.2109/12263: #0: ffff888025412110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x177/0x470 drivers/input/evdev.c:513 #1: ffff888148656230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0x9e/0x2c0 drivers/input/input.c:482 #2: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #3: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #4: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #5: ffff888060ef8028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff888060ef8028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 #6: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:456 input_report_key include/linux/input.h:425 [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+0x42b/0x620 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x369/0x710 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x291/0x9b0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xa5/0x220 kernel/irq/handle.c:213 handle_edge_irq+0x243/0xb20 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:233 [inline] __common_interrupt+0xd7/0x1e0 arch/x86/kernel/irq.c:252 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 number+0x28/0xf70 lib/vsprintf.c:455 vsnprintf+0x10fe/0x1a00 lib/vsprintf.c:2877 add_uevent_var+0x1c5/0x440 lib/kobject_uevent.c:680 kobject_uevent_env+0x51a/0x890 lib/kobject_uevent.c:603 driver_register+0x3e2/0x430 drivers/base/driver.c:248 usb_register_driver+0x202/0x3d0 drivers/usb/core/driver.c:1061 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_inject_event+0x9e/0x2c0 drivers/input/input.c:482 led_trigger_event+0x10a/0x1e0 drivers/leds/led-triggers.c:392 kbd_led_trigger_activate+0xb9/0x100 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x504/0x900 drivers/leds/led-triggers.c:211 led_trigger_set_default+0x19c/0x1e0 drivers/leds/led-triggers.c:275 led_classdev_register_ext+0x68f/0x870 drivers/leds/led-class.c:428 led_classdev_register include/linux/leds.h:196 [inline] input_leds_connect+0x51d/0x750 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1046 [inline] input_register_device+0xda7/0x1140 drivers/input/input.c:2429 atkbd_connect+0x759/0xa10 drivers/input/keyboard/atkbd.c:1336 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:755 driver_probe_device+0x4f/0x420 drivers/base/dd.c:785 __driver_attach+0x46b/0x670 drivers/base/dd.c:1164 bus_for_each_dev+0x175/0x1e0 drivers/base/bus.c:303 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x29c/0x840 drivers/input/serio/serio.c:227 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 } ... key at: [] input_allocate_device.__key.6+0x0/0x20 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] evdev_open.__key.22+0x0/0x20 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 SOFTIRQ-ON-R at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:316 copy_process+0x234a/0x3e00 kernel/fork.c:2412 kernel_clone+0x219/0x930 kernel/fork.c:2679 kernel_thread+0xc8/0x120 kernel/fork.c:2731 rest_init+0x21/0x330 init/main.c:706 start_kernel+0x486/0x530 init/main.c:1140 secondary_startup_64_no_verify+0xb1/0xbb INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xd2/0x330 fs/fcntl.c:804 kill_fasync_rcu fs/fcntl.c:1015 [inline] kill_fasync+0x20a/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 vfs_truncate+0x1fb/0x2f0 fs/open.c:105 do_sys_truncate+0xdc/0x190 fs/open.c:134 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x390 fs/fcntl.c:829 sk_send_sigurg+0x6b/0xc0 net/core/sock.c:3129 tcp_check_urg net/ipv4/tcp_input.c:5680 [inline] tcp_urg+0x2bc/0xb10 net/ipv4/tcp_input.c:5721 tcp_rcv_established+0xa9c/0x1c80 net/ipv4/tcp_input.c:6055 tcp_v6_do_rcv+0x539/0x1180 net/ipv6/tcp_ipv6.c:1526 tcp_v6_rcv+0x20c4/0x2660 net/ipv6/tcp_ipv6.c:1765 ip6_protocol_deliver_rcu+0x8f0/0x12c0 net/ipv6/ip6_input.c:425 ip6_input_finish+0xa2/0x130 net/ipv6/ip6_input.c:466 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5525 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5639 process_backlog+0x364/0x780 net/core/dev.c:6516 __napi_poll+0xc0/0x430 net/core/dev.c:7075 napi_poll net/core/dev.c:7142 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7232 handle_softirqs+0x328/0x820 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 preempt_count_add+0x2/0x190 kernel/sched/core.c:5480 __up_read+0x17c/0x660 kernel/locking/rwsem.c:1325 kernfs_iop_permission+0x23e/0x340 fs/kernfs/inode.c:289 do_inode_permission fs/namei.c:459 [inline] inode_permission+0x239/0x480 fs/namei.c:526 may_lookup fs/namei.c:1693 [inline] link_path_walk+0x2ca/0xd40 fs/namei.c:2245 path_lookupat+0x9d/0x440 fs/namei.c:2454 filename_lookup+0x1e2/0x4f0 fs/namei.c:2484 user_path_at_empty+0x40/0x190 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x102/0x4d0 fs/stat.c:221 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat fs/stat.c:405 [inline] __x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:316 __f_setown+0x37/0x330 fs/fcntl.c:91 generic_add_lease fs/locks.c:1900 [inline] generic_setlease+0xe9b/0x12c0 fs/locks.c:1980 vfs_setlease fs/locks.c:2070 [inline] do_fcntl_add_lease fs/locks.c:2091 [inline] fcntl_setlease+0x25e/0x330 fs/locks.c:2113 do_fcntl+0x10c/0x12d0 fs/fcntl.c:413 __do_sys_fcntl fs/fcntl.c:466 [inline] __se_sys_fcntl+0xcc/0x190 fs/fcntl.c:451 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irq include/linux/rwlock_api_smp.h:169 [inline] _raw_read_lock_irq+0xa7/0xf0 kernel/locking/spinlock.c:244 f_getown+0x22/0x240 fs/fcntl.c:148 sock_ioctl+0x45b/0x6e0 net/socket.c:1204 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x330 fs/fcntl.c:790 kill_fasync_rcu fs/fcntl.c:1015 [inline] kill_fasync+0x20a/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 vfs_truncate+0x1fb/0x2f0 fs/open.c:105 do_sys_truncate+0xdc/0x190 fs/open.c:134 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:316 fasync_remove_entry+0xf0/0x1c0 fs/fcntl.c:885 lease_modify+0x1a2/0x390 fs/locks.c:1480 locks_remove_lease fs/locks.c:2711 [inline] locks_remove_file+0x492/0xdf0 fs/locks.c:2736 __fput+0x18d/0x930 fs/file_table.c:303 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 vfs_truncate+0x1fb/0x2f0 fs/open.c:105 do_sys_truncate+0xdc/0x190 fs/open.c:134 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 stack backtrace: CPU: 0 PID: 12263 Comm: syz.0.2109 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline] check_irq_usage kernel/locking/lockdep.c:2806 [inline] check_prev_add kernel/locking/lockdep.c:3057 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x65dd/0x7c60 kernel/locking/lockdep.c:5012 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f61f253b929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f61f03a3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f61f2762fa0 RCX: 00007f61f253b929 RDX: 0000000000002250 RSI: 0000200000000040 RDI: 0000000000000003 RBP: 00007f61f25bdb39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f61f2762fa0 R15: 00007fffe80b2e58