loop1: detected capacity change from 0 to 1024 ===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.182-syzkaller #0 Not tainted ----------------------------------------------------- syz.1.256/5523 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8be0a058 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xd2/0x330 fs/fcntl.c:804 and this task is already holding: ffff88807736ba38 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x2f/0x330 fs/fcntl.c:790 which would create a new lock dependency: (&f->f_owner.lock){....}-{2:2} -> (tasklist_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 --> &f->f_owner.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&f->f_owner.lock); lock(&dev->event_lock#2); *** DEADLOCK *** 5 locks held by syz.1.256/5523: #0: ffff888077302460 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:377 #1: ffff88805bb4b900 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #1: ffff88805bb4b900 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: do_unlinkat+0x1b9/0x6f0 fs/namei.c:4331 #2: ffffffff9610bb38 (&fsnotify_mark_srcu){....}-{0:0}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #3: ffff88807ce7f038 (&mark->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #3: ffff88807ce7f038 (&mark->lock){+.+.}-{2:2}, at: dnotify_handle_event+0x5e/0x420 fs/notify/dnotify/dnotify.c:89 #4: ffff88807736ba38 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x2f/0x330 fs/fcntl.c:790 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 IN-SOFTIRQ-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_sync include/linux/input.h:450 [inline] hidinput_report_event+0x9d/0xf0 drivers/hid/hid-input.c:1484 hid_report_raw_event+0x142d/0x1640 drivers/hid/hid-core.c:1815 hid_input_report+0x424/0x4e0 drivers/hid/hid-core.c:1875 hid_irq_in+0x435/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1674 dummy_timer+0x827/0x2e10 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x16c/0x530 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x525/0x7c0 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x328/0x820 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 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 __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] __skb_try_recv_datagram+0x179/0x4d0 net/core/datagram.c:267 __unix_dgram_recvmsg+0x2d3/0xd50 net/unix/af_unix.c:2304 ____sys_recvmsg+0x291/0x580 net/socket.c:-1 ___sys_recvmsg+0x1af/0x4f0 net/socket.c:2697 do_recvmmsg+0x344/0x7a0 net/socket.c:2791 __sys_recvmmsg net/socket.c:2870 [inline] __do_sys_recvmmsg net/socket.c:2893 [inline] __se_sys_recvmmsg net/socket.c:2886 [inline] __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2886 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_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 -> (&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 __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 } ... 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 -> (&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 __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 } ... 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 __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 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_sigio+0xd2/0x330 fs/fcntl.c:804 dnotify_handle_event+0x14f/0x420 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_inode_event fs/notify/fsnotify.c:275 [inline] fsnotify_handle_event fs/notify/fsnotify.c:330 [inline] send_to_group fs/notify/fsnotify.c:378 [inline] fsnotify+0x18dd/0x1ca0 fs/notify/fsnotify.c:584 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_delete include/linux/fsnotify.h:249 [inline] d_delete_notify+0x10b/0x150 include/linux/fsnotify.h:266 vfs_unlink+0x431/0x600 fs/namei.c:4295 do_unlinkat+0x382/0x6f0 fs/namei.c:4348 __do_sys_unlink fs/namei.c:4396 [inline] __se_sys_unlink fs/namei.c:4394 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4394 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: 5523 Comm: syz.1.256 Not tainted 5.15.182-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 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 dnotify_handle_event+0x14f/0x420 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_inode_event fs/notify/fsnotify.c:275 [inline] fsnotify_handle_event fs/notify/fsnotify.c:330 [inline] send_to_group fs/notify/fsnotify.c:378 [inline] fsnotify+0x18dd/0x1ca0 fs/notify/fsnotify.c:584 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_delete include/linux/fsnotify.h:249 [inline] d_delete_notify+0x10b/0x150 include/linux/fsnotify.h:266 vfs_unlink+0x431/0x600 fs/namei.c:4295 do_unlinkat+0x382/0x6f0 fs/namei.c:4348 __do_sys_unlink fs/namei.c:4396 [inline] __se_sys_unlink fs/namei.c:4394 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4394 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:0x7fb23c87d969 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:00007fb23a6e5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb23caa4fa0 RCX: 00007fb23c87d969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000200 RBP: 00007fb23c8ffab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb23caa4fa0 R15: 00007ffe8d5de3e8