===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.16.0-rc2-syzkaller-00318-g739a6c93cc75 #0 Not tainted ----------------------------------------------------- syz.5.5460/17988 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888068d82360 (&new->fa_lock){....}-{3:3}, at: kill_fasync_rcu fs/fcntl.c:1124 [inline] ffff888068d82360 (&new->fa_lock){....}-{3:3}, at: kill_fasync fs/fcntl.c:1148 [inline] ffff888068d82360 (&new->fa_lock){....}-{3:3}, at: kill_fasync+0x138/0x510 fs/fcntl.c:1141 and this task is already holding: ffff88806b6cb028 (&client->buffer_lock){....}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff88806b6cb028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{3:3} -> (&new->fa_lock){....}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (&dev->event_lock#2){..-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 kd_sound_helper+0x17a/0x280 drivers/tty/vt/keyboard.c:256 input_handler_for_each_handle+0xd7/0x250 drivers/input/input.c:2554 call_timer_fn+0x197/0x620 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers+0x6ef/0x960 kernel/time/timer.c:2372 __run_timer_base kernel/time/timer.c:2384 [inline] __run_timer_base kernel/time/timer.c:2376 [inline] run_timer_base+0x114/0x190 kernel/time/timer.c:2393 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2403 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 lock_is_held_type+0x107/0x150 kernel/locking/lockdep.c:5948 lookup_page_ext+0x10d/0x1d0 mm/page_ext.c:254 page_ext_iter_begin include/linux/page_ext.h:132 [inline] page_table_check_set+0x1e6/0x750 mm/page_table_check.c:113 __page_table_check_ptes_set+0x318/0x420 mm/page_table_check.c:209 page_table_check_ptes_set include/linux/page_table_check.h:76 [inline] set_ptes include/linux/pgtable.h:292 [inline] wp_page_copy mm/memory.c:3639 [inline] do_wp_page+0x26d4/0x4f20 mm/memory.c:4030 handle_pte_fault mm/memory.c:6105 [inline] __handle_mm_fault+0x2223/0x5490 mm/memory.c:6232 handle_mm_fault+0x589/0xd10 mm/memory.c:6401 do_user_addr_fault+0x60c/0x1370 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x5c/0xb0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 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.5.5460/17988: #0: ffff8880269ec118 (&evdev->mutex){+.+.}-{4:4}, at: evdev_write+0x184/0x440 drivers/input/evdev.c:511 #1: ffff888043adc230 (&dev->event_lock#2){..-.}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] #1: ffff888043adc230 (&dev->event_lock#2){..-.}-{3:3}, at: input_inject_event+0x9f/0x390 drivers/input/input.c:418 #2: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #2: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #2: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1155 [inline] #2: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: input_inject_event+0xbb/0x390 drivers/input/input.c:419 #3: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #3: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1155 [inline] #3: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: input_pass_values+0x80/0x890 drivers/input/input.c:118 #4: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #4: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #4: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: evdev_events+0x7b/0x390 drivers/input/evdev.c:298 #5: ffff88806b6cb028 (&client->buffer_lock){....}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #5: ffff88806b6cb028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 #6: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #6: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #6: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: kill_fasync fs/fcntl.c:1147 [inline] #6: ffffffff8e5c4700 (rcu_read_lock){....}-{1:3}, at: kill_fasync+0x62/0x510 fs/fcntl.c:1141 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 kd_sound_helper+0x17a/0x280 drivers/tty/vt/keyboard.c:256 input_handler_for_each_handle+0xd7/0x250 drivers/input/input.c:2554 call_timer_fn+0x197/0x620 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers+0x6ef/0x960 kernel/time/timer.c:2372 __run_timer_base kernel/time/timer.c:2384 [inline] __run_timer_base kernel/time/timer.c:2376 [inline] run_timer_base+0x114/0x190 kernel/time/timer.c:2393 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2403 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 lock_is_held_type+0x107/0x150 kernel/locking/lockdep.c:5948 lookup_page_ext+0x10d/0x1d0 mm/page_ext.c:254 page_ext_iter_begin include/linux/page_ext.h:132 [inline] page_table_check_set+0x1e6/0x750 mm/page_table_check.c:113 __page_table_check_ptes_set+0x318/0x420 mm/page_table_check.c:209 page_table_check_ptes_set include/linux/page_table_check.h:76 [inline] set_ptes include/linux/pgtable.h:292 [inline] wp_page_copy mm/memory.c:3639 [inline] do_wp_page+0x26d4/0x4f20 mm/memory.c:4030 handle_pte_fault mm/memory.c:6105 [inline] __handle_mm_fault+0x2223/0x5490 mm/memory.c:6232 handle_mm_fault+0x589/0xd10 mm/memory.c:6401 do_user_addr_fault+0x60c/0x1370 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x5c/0xb0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x217/0x290 drivers/leds/led-core.c:328 kbd_led_trigger_activate+0xcb/0x110 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x59a/0xc50 drivers/leds/led-triggers.c:220 led_match_default_trigger drivers/leds/led-triggers.c:277 [inline] led_match_default_trigger drivers/leds/led-triggers.c:271 [inline] led_trigger_set_default drivers/leds/led-triggers.c:300 [inline] led_trigger_set_default+0x1e0/0x2e0 drivers/leds/led-triggers.c:284 led_classdev_register_ext+0x7b8/0xa10 drivers/leds/led-class.c:566 led_classdev_register include/linux/leds.h:274 [inline] input_leds_connect+0x552/0x8e0 drivers/input/input-leds.c:145 input_attach_handler.isra.0+0x181/0x260 drivers/input/input.c:993 input_register_device+0xa84/0x1130 drivers/input/input.c:2412 atkbd_connect+0x5da/0xa20 drivers/input/keyboard/atkbd.c:1340 serio_connect_driver drivers/input/serio/serio.c:43 [inline] serio_driver_probe+0x74/0xb0 drivers/input/serio/serio.c:747 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __driver_attach+0x283/0x580 drivers/base/dd.c:1215 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:370 serio_attach_driver drivers/input/serio/serio.c:776 [inline] serio_handle_event+0x247/0xa50 drivers/input/serio/serio.c:213 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] __key.7+0x0/0x40 -> (&client->buffer_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c4/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... key at: [] __key.1+0x0/0x40 ... acquired at: __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+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c4/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x4caf/0x76a0 kernel/fork.c:2315 kernel_clone+0xfc/0x960 kernel/fork.c:2599 user_mode_thread+0xc7/0x110 kernel/fork.c:2677 rest_init+0x23/0x2b0 init/main.c:710 start_kernel+0x3ee/0x4d0 init/main.c:1102 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:307 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:288 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigurg+0xed/0xc80 fs/fcntl.c:967 sk_send_sigurg+0x76/0x360 net/core/sock.c:3641 queue_oob net/unix/af_unix.c:2292 [inline] unix_stream_sendmsg+0xeb3/0x11d0 net/unix/af_unix.c:2418 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] ____sys_sendmsg+0xa95/0xc70 net/socket.c:2566 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2620 __sys_sendmsg+0x16d/0x220 net/socket.c:2652 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 __f_setown+0x61/0x3c0 fs/fcntl.c:136 generic_add_lease fs/locks.c:1874 [inline] generic_setlease fs/locks.c:1942 [inline] generic_setlease+0xeef/0x1300 fs/locks.c:1929 kernel_setlease+0x106/0x140 fs/locks.c:1991 vfs_setlease+0x258/0x2d0 fs/locks.c:2026 do_fcntl_add_lease fs/locks.c:2047 [inline] fcntl_setlease+0x3ed/0x5a0 fs/locks.c:2069 do_fcntl+0x751/0x15a0 fs/fcntl.c:536 do_compat_fcntl64+0x367/0x710 fs/fcntl.c:789 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x31/0x3e0 fs/fcntl.c:907 kill_fasync_rcu fs/fcntl.c:1133 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x674/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:441 [inline] do_dentry_open+0x6e1/0x1c10 fs/open.c:955 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4055 do_filp_open+0x20b/0x470 fs/namei.c:4082 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_openat fs/open.c:1514 [inline] __se_compat_sys_openat fs/open.c:1512 [inline] __ia32_compat_sys_openat+0x16d/0x210 fs/open.c:1512 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... key at: [] __key.1+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+0x31/0x3e0 fs/fcntl.c:907 kill_fasync_rcu fs/fcntl.c:1133 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x674/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:441 [inline] do_dentry_open+0x6e1/0x1c10 fs/open.c:955 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4055 do_filp_open+0x20b/0x470 fs/namei.c:4082 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_openat fs/open.c:1514 [inline] __se_compat_sys_openat fs/open.c:1512 [inline] __ia32_compat_sys_openat+0x16d/0x210 fs/open.c:1512 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e -> (&new->fa_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x1ca/0x2a0 fs/fcntl.c:1048 lease_setup+0x9d/0x160 fs/locks.c:573 generic_add_lease fs/locks.c:1874 [inline] generic_setlease fs/locks.c:1942 [inline] generic_setlease+0xeef/0x1300 fs/locks.c:1929 kernel_setlease+0x106/0x140 fs/locks.c:1991 vfs_setlease+0x258/0x2d0 fs/locks.c:2026 do_fcntl_add_lease fs/locks.c:2047 [inline] fcntl_setlease+0x3ed/0x5a0 fs/locks.c:2069 do_fcntl+0x751/0x15a0 fs/fcntl.c:536 do_compat_fcntl64+0x367/0x710 fs/fcntl.c:789 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x674/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:441 [inline] do_dentry_open+0x6e1/0x1c10 fs/open.c:955 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4055 do_filp_open+0x20b/0x470 fs/namei.c:4082 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_openat fs/open.c:1514 [inline] __se_compat_sys_openat fs/open.c:1512 [inline] __ia32_compat_sys_openat+0x16d/0x210 fs/open.c:1512 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c4/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e stack backtrace: CPU: 1 UID: 0 PID: 17988 Comm: syz.5.5460 Not tainted 6.16.0-rc2-syzkaller-00318-g739a6c93cc75 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2619 [inline] check_irq_usage+0x7dc/0x920 kernel/locking/lockdep.c:2860 check_prev_add kernel/locking/lockdep.c:3172 [inline] check_prevs_add kernel/locking/lockdep.c:3287 [inline] validate_chain kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x1285/0x1c90 kernel/locking/lockdep.c:5240 lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c4/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf70fe579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f50ee55c EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000080000040 RDX: 0000000000002250 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi