loop3: detected capacity change from 0 to 512 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: writeback. ext4 filesystem being mounted at /145/bus supports timestamps until 2038-01-19 (0x7fffffff) ===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.181-syzkaller #0 Not tainted ----------------------------------------------------- syz.3.2843/18674 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88805f4d72b8 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1008 [inline] ffff88805f4d72b8 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x16d/0x490 fs/fcntl.c:1029 and this task is already holding: ffff888068273028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] ffff888068273028 (&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 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x105/0x170 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1fb/0x6c0 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5b/0x110 drivers/input/serio/libps2.c:92 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+0x239/0x910 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x89/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+0xcf3/0x1430 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x2e7/0x870 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x923/0x1430 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 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 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.3.2843/18674: #0: ffff888148997110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x177/0x470 drivers/input/evdev.c:513 #1: ffff88801e2e2230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0x9e/0x2c0 drivers/input/input.c:482 #2: ffffffff8c11be60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #3: ffffffff8c11be60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #4: ffffffff8c11be60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #5: ffff888068273028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff888068273028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 #6: ffffffff8c11be60 (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 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x105/0x170 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1fb/0x6c0 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5b/0x110 drivers/input/serio/libps2.c:92 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+0x239/0x910 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x89/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+0xcf3/0x1430 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x2e7/0x870 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x923/0x1430 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 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 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+0x2336/0x3e60 kernel/fork.c:2336 kernel_clone+0x219/0x930 kernel/fork.c:2603 kernel_thread+0xc8/0x120 kernel/fork.c:2655 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_sigurg+0xcb/0x390 fs/fcntl.c:845 sk_send_sigurg+0x6b/0xc0 net/core/sock.c:3129 queue_oob+0x620/0x800 net/unix/af_unix.c:2005 unix_stream_sendmsg+0xb5d/0xc80 net/unix/af_unix.c:2105 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2436 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2490 __sys_sendmmsg+0x27c/0x4a0 net/socket.c:2576 __do_sys_sendmmsg net/socket.c:2605 [inline] __se_sys_sendmmsg net/socket.c:2602 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2602 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} { 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_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 snd_fasync_work_fn+0x15e/0x200 sound/core/misc.c:181 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: [] __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 snd_fasync_work_fn+0x15e/0x200 sound/core/misc.c:181 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 -> (&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 __fput+0x7c4/0x930 fs/file_table.c:308 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 snd_fasync_work_fn+0x15e/0x200 sound/core/misc.c:181 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: [] 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: 1 PID: 18674 Comm: syz.3.2843 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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:0x7fdd95c02969 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:00007fdd93a6a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fdd95e29fa0 RCX: 00007fdd95c02969 RDX: 0000000000001068 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007fdd95c84ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdd95e29fa0 R15: 00007ffe3f223a18