===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0 Not tainted ----------------------------------------------------- syz-executor679/5060 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88802a968948 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:996 [inline] ffff88802a968948 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1017 [inline] ffff88802a968948 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x13a/0x480 fs/fcntl.c:1010 and this task is already holding: ffff88807a298028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff88807a298028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x960 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 kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:431 [inline] input_event+0x70/0xa0 drivers/input/input.c:424 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x30/0x80 drivers/input/mouse/psmouse-base.c:121 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:139 [inline] psmouse_process_byte+0x39e/0x8b0 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x41/0x1b0 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x308/0xf00 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x8c/0x150 drivers/input/serio/serio.c:998 i8042_interrupt+0x27e/0x520 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x264/0x970 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x263/0xd00 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xa1/0x210 arch/x86/kernel/irq.c:250 common_interrupt+0xa8/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:640 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] i8042_command+0x132/0x160 drivers/input/serio/i8042.c:356 i8042_aux_write+0xdb/0x120 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x2cd/0x710 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x5c/0x150 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte+0x2e/0x160 drivers/input/mouse/cypress_ps2.c:42 cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x1d0/0x8d0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x79/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol+0x211/0x370 drivers/input/mouse/psmouse-base.c:1021 psmouse_extensions+0x557/0x930 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x52a/0x740 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x5ef/0xec0 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0xa0 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __driver_attach+0x271/0x570 drivers/base/dd.c:1194 bus_for_each_dev+0x14b/0x1d0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x2c3/0xa40 drivers/input/serio/serio.c:224 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1595 kernel_wait+0xa0/0x150 kernel/exit.c:1785 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 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-executor679/5060: #0: ffff888147630110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x1d7/0x760 drivers/input/evdev.c:513 #1: ffff8881462b9230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0x9f/0x330 drivers/input/input.c:457 #2: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:66 [inline] #2: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:63 [inline] #2: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x8b/0x330 drivers/input/input.c:456 #3: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x710 drivers/input/input.c:2523 #4: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x5d/0x3e0 drivers/input/evdev.c:296 #5: ffff88807a298028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #5: ffff88807a298028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 #6: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x45/0x480 fs/fcntl.c:1015 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:431 [inline] input_event+0x70/0xa0 drivers/input/input.c:424 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x30/0x80 drivers/input/mouse/psmouse-base.c:121 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:139 [inline] psmouse_process_byte+0x39e/0x8b0 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x41/0x1b0 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x308/0xf00 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x8c/0x150 drivers/input/serio/serio.c:998 i8042_interrupt+0x27e/0x520 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x264/0x970 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x263/0xd00 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xa1/0x210 arch/x86/kernel/irq.c:250 common_interrupt+0xa8/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:640 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] i8042_command+0x132/0x160 drivers/input/serio/i8042.c:356 i8042_aux_write+0xdb/0x120 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x2cd/0x710 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x5c/0x150 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte+0x2e/0x160 drivers/input/mouse/cypress_ps2.c:42 cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x1d0/0x8d0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x79/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol+0x211/0x370 drivers/input/mouse/psmouse-base.c:1021 psmouse_extensions+0x557/0x930 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x52a/0x740 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x5ef/0xec0 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0xa0 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __driver_attach+0x271/0x570 drivers/base/dd.c:1194 bus_for_each_dev+0x14b/0x1d0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x2c3/0xa40 drivers/input/serio/serio.c:224 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 input_inject_event+0x9f/0x330 drivers/input/input.c:457 __led_set_brightness drivers/leds/led-core.c:47 [inline] led_set_brightness_nopm drivers/leds/led-core.c:271 [inline] led_set_brightness_nosleep+0xea/0x1a0 drivers/leds/led-core.c:287 led_set_brightness+0x138/0x180 drivers/leds/led-core.c:264 led_trigger_event drivers/leds/led-triggers.c:390 [inline] led_trigger_event+0xb4/0x200 drivers/leds/led-triggers.c:380 kbd_led_trigger_activate+0xcd/0x110 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x5db/0xaf0 drivers/leds/led-triggers.c:197 led_trigger_set_default drivers/leds/led-triggers.c:262 [inline] led_trigger_set_default+0x1aa/0x230 drivers/leds/led-triggers.c:249 led_classdev_register_ext+0x573/0x770 drivers/leds/led-class.c:415 led_classdev_register include/linux/leds.h:196 [inline] input_leds_connect+0x4c1/0x860 drivers/input/input-leds.c:139 input_attach_handler+0x180/0x1f0 drivers/input/input.c:1061 input_register_device.cold+0xf0/0x2fd drivers/input/input.c:2397 atkbd_connect+0x5ca/0x9d0 drivers/input/keyboard/atkbd.c:1278 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0xa0 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __driver_attach+0x271/0x570 drivers/base/dd.c:1194 bus_for_each_dev+0x14b/0x1d0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x2c3/0xa40 drivers/input/serio/serio.c:224 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] __key.7+0x0/0x40 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:350 [inline] evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c8/0x330 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.3+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:350 [inline] evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c8/0x330 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1595 kernel_wait+0xa0/0x150 kernel/exit.c:1785 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1595 kernel_wait+0xa0/0x150 kernel/exit.c:1785 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x4efb/0x7520 kernel/fork.c:2400 kernel_clone+0xeb/0x990 kernel/fork.c:2681 user_mode_thread+0xb1/0xf0 kernel/fork.c:2757 rest_init+0x27/0x270 init/main.c:697 arch_call_rest_init+0x13/0x1c init/main.c:894 start_kernel+0x44f/0x470 init/main.c:1148 secondary_startup_64_no_verify+0xce/0xdb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1595 kernel_wait+0xa0/0x150 kernel/exit.c:1785 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... 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_sigio+0xaf/0x370 fs/fcntl.c:792 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x1fc/0x480 fs/fcntl.c:1010 sock_wake_async+0xd6/0x160 net/socket.c:1419 sk_wake_async include/net/sock.h:2528 [inline] sk_wake_async include/net/sock.h:2524 [inline] sock_def_readable+0x34d/0x4e0 net/core/sock.c:3299 unix_dgram_sendmsg+0xf8c/0x1bc0 net/unix/af_unix.c:2083 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xd3/0x120 net/socket.c:734 ____sys_sendmsg+0x334/0x8c0 net/socket.c:2476 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2530 __sys_sendmmsg+0x18f/0x460 net/socket.c:2616 __do_sys_sendmmsg net/socket.c:2645 [inline] __se_sys_sendmmsg net/socket.c:2642 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 f_modown+0x2a/0x390 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown+0xdb/0x230 fs/fcntl.c:138 sock_ioctl+0x450/0x680 net/socket.c:1229 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x28/0x370 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x1fc/0x480 fs/fcntl.c:1010 sock_wake_async+0xd6/0x160 net/socket.c:1419 sk_wake_async include/net/sock.h:2528 [inline] sk_wake_async include/net/sock.h:2524 [inline] sock_def_readable+0x34d/0x4e0 net/core/sock.c:3299 unix_dgram_sendmsg+0xf8c/0x1bc0 net/unix/af_unix.c:2083 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xd3/0x120 net/socket.c:734 ____sys_sendmsg+0x334/0x8c0 net/socket.c:2476 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2530 __sys_sendmmsg+0x18f/0x460 net/socket.c:2616 __do_sys_sendmmsg net/socket.c:2645 [inline] __se_sys_sendmmsg net/socket.c:2642 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.5+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+0x28/0x370 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x1fc/0x480 fs/fcntl.c:1010 sock_wake_async+0xd6/0x160 net/socket.c:1419 sk_wake_async include/net/sock.h:2528 [inline] sk_wake_async include/net/sock.h:2524 [inline] sock_def_readable+0x34d/0x4e0 net/core/sock.c:3299 unix_dgram_sendmsg+0xf8c/0x1bc0 net/unix/af_unix.c:2083 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xd3/0x120 net/socket.c:734 ____sys_sendmsg+0x334/0x8c0 net/socket.c:2476 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2530 __sys_sendmmsg+0x18f/0x460 net/socket.c:2616 __do_sys_sendmmsg net/socket.c:2645 [inline] __se_sys_sendmmsg net/socket.c:2642 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 sock_wake_async+0xd6/0x160 net/socket.c:1419 sk_wake_async include/net/sock.h:2528 [inline] sk_wake_async include/net/sock.h:2524 [inline] sock_def_readable+0x34d/0x4e0 net/core/sock.c:3299 unix_dgram_sendmsg+0xf8c/0x1bc0 net/unix/af_unix.c:2083 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xd3/0x120 net/socket.c:734 ____sys_sendmsg+0x334/0x8c0 net/socket.c:2476 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2530 __sys_sendmmsg+0x18f/0x460 net/socket.c:2616 __do_sys_sendmmsg net/socket.c:2645 [inline] __se_sys_sendmmsg net/socket.c:2642 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x667/0x960 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c8/0x330 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 0 PID: 5060 Comm: syz-executor679 Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2611 [inline] check_irq_usage.cold+0x4e4/0x761 kernel/locking/lockdep.c:2850 check_prev_add kernel/locking/lockdep.c:3101 [inline] check_prevs_add kernel/locking/lockdep.c:3216 [inline] validate_chain kernel/locking/lockdep.c:3831 [inline] __lock_acquire+0x2a5b/0x56d0 kernel/locking/lockdep.c:5055 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x667/0x960 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c8/0x330 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6b302b0829 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff8368f4c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6b302b0829 RDX: 0000000000000079 RSI: 000000002004d000 RDI: 0000000000000006 RBP: 00007f6b30