===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.10.215 #1 Not tainted ----------------------------------------------------- syz-executor.1/19068 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888017e0de88 (&new->fa_lock){...-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1013 [inline] ffff888017e0de88 (&new->fa_lock){...-}-{2:2}, at: kill_fasync fs/fcntl.c:1034 [inline] ffff888017e0de88 (&new->fa_lock){...-}-{2:2}, at: kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 and this task is already holding: ffff88801b09f028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88801b09f028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x910 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} ... which became HARDIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x60 kernel/locking/spinlock.c:159 input_event drivers/input/input.c:451 [inline] input_event+0x7b/0xb0 drivers/input/input.c:444 input_report_key include/linux/input.h:417 [inline] psmouse_report_standard_buttons+0x2c/0x80 drivers/input/mouse/psmouse-base.c:123 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:141 [inline] psmouse_process_byte+0x39a/0x8b0 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x47/0x1b0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x2fa/0xea0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x8d/0x150 drivers/input/serio/serio.c:1002 i8042_interrupt+0x27e/0x520 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x2ef/0x6d0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xff/0x280 kernel/irq/handle.c:213 handle_edge_irq+0x249/0xd00 kernel/irq/chip.c:822 asm_call_irq_on_stack+0x12/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0xdd/0x1a0 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:626 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x25/0x40 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] i8042_command+0x12e/0x160 drivers/input/serio/i8042.c:356 i8042_aux_write+0xd7/0x120 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x2d8/0x670 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x4b/0xa0 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+0x1c1/0x880 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x75/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol+0x20e/0x350 drivers/input/mouse/psmouse-base.c:1023 psmouse_extensions+0x55b/0x920 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x53e/0x720 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x5e6/0xfd0 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x77/0xa0 drivers/input/serio/serio.c:778 really_probe+0x28e/0xd60 drivers/base/dd.c:558 driver_probe_device+0x108/0x220 drivers/base/dd.c:752 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1035 __driver_attach drivers/base/dd.c:1124 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1066 bus_for_each_dev+0x149/0x1d0 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x278/0x900 drivers/input/serio/serio.c:227 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x8c0 kernel/exit.c:1523 kernel_wait+0x9c/0x150 kernel/exit.c:1705 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 other info that might help us debug this: Chain exists of: &dev->event_lock --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock); lock(&client->buffer_lock); lock(&dev->event_lock); *** DEADLOCK *** 7 locks held by syz-executor.1/19068: #0: ffff88800f8bd110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_ioctl_handler drivers/input/evdev.c:1263 [inline] #0: ffff88800f8bd110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_ioctl+0x81/0x1b0 drivers/input/evdev.c:1281 #1: ffff888009962230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0xa6/0x390 drivers/input/input.c:477 #2: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:64 [inline] #2: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:61 [inline] #2: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x92/0x390 drivers/input/input.c:476 #3: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x770 drivers/input/input.c:2009 #4: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x59/0x440 drivers/input/evdev.c:296 #5: ffff88801b09f028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff88801b09f028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x910 drivers/input/evdev.c:261 #6: ffffffff84ff8be0 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x41/0x4f0 fs/fcntl.c:1032 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x60 kernel/locking/spinlock.c:159 input_event drivers/input/input.c:451 [inline] input_event+0x7b/0xb0 drivers/input/input.c:444 input_report_key include/linux/input.h:417 [inline] psmouse_report_standard_buttons+0x2c/0x80 drivers/input/mouse/psmouse-base.c:123 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:141 [inline] psmouse_process_byte+0x39a/0x8b0 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x47/0x1b0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x2fa/0xea0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x8d/0x150 drivers/input/serio/serio.c:1002 i8042_interrupt+0x27e/0x520 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x2ef/0x6d0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xff/0x280 kernel/irq/handle.c:213 handle_edge_irq+0x249/0xd00 kernel/irq/chip.c:822 asm_call_irq_on_stack+0x12/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0xdd/0x1a0 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:626 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x25/0x40 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] i8042_command+0x12e/0x160 drivers/input/serio/i8042.c:356 i8042_aux_write+0xd7/0x120 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x2d8/0x670 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x4b/0xa0 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+0x1c1/0x880 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x75/0x190 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol+0x20e/0x350 drivers/input/mouse/psmouse-base.c:1023 psmouse_extensions+0x55b/0x920 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x53e/0x720 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x5e6/0xfd0 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x77/0xa0 drivers/input/serio/serio.c:778 really_probe+0x28e/0xd60 drivers/base/dd.c:558 driver_probe_device+0x108/0x220 drivers/base/dd.c:752 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1035 __driver_attach drivers/base/dd.c:1124 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1066 bus_for_each_dev+0x149/0x1d0 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x278/0x900 drivers/input/serio/serio.c:227 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x60 kernel/locking/spinlock.c:159 input_inject_event+0xa6/0x390 drivers/input/input.c:477 __led_set_brightness drivers/leds/led-core.c:48 [inline] led_set_brightness_nopm drivers/leds/led-core.c:275 [inline] led_set_brightness_nosleep+0xe9/0x1a0 drivers/leds/led-core.c:292 led_set_brightness+0x134/0x170 drivers/leds/led-core.c:267 led_trigger_event drivers/leds/led-triggers.c:388 [inline] led_trigger_event+0x75/0xd0 drivers/leds/led-triggers.c:377 kbd_led_trigger_activate+0xfa/0x140 drivers/tty/vt/keyboard.c:1010 led_trigger_set+0x499/0x9f0 drivers/leds/led-triggers.c:195 led_trigger_set_default drivers/leds/led-triggers.c:259 [inline] led_trigger_set_default+0x1a6/0x230 drivers/leds/led-triggers.c:246 led_classdev_register_ext+0x506/0x6a0 drivers/leds/led-class.c:417 led_classdev_register include/linux/leds.h:190 [inline] input_leds_connect+0x412/0x700 drivers/input/input-leds.c:139 input_attach_handler+0x18b/0x1f0 drivers/input/input.c:1042 input_register_device.cold+0x143/0x21d drivers/input/input.c:2248 atkbd_connect+0x733/0x9d0 drivers/input/keyboard/atkbd.c:1336 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x77/0xa0 drivers/input/serio/serio.c:778 really_probe+0x28e/0xd60 drivers/base/dd.c:558 driver_probe_device+0x108/0x220 drivers/base/dd.c:752 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1035 __driver_attach drivers/base/dd.c:1124 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1066 bus_for_each_dev+0x149/0x1d0 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x278/0x900 drivers/input/serio/serio.c:227 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 } ... key at: [] __key.5+0x0/0x40 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values.part.0+0xf6/0x910 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3bd/0x440 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x770 drivers/input/input.c:156 input_pass_values drivers/input/input.c:421 [inline] input_handle_event+0x85a/0x1470 drivers/input/input.c:421 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_do_ioctl+0x547/0x18e0 drivers/input/evdev.c:1072 evdev_ioctl_handler drivers/input/evdev.c:1272 [inline] evdev_ioctl+0x14c/0x1b0 drivers/input/evdev.c:1281 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x19a/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc } ... key at: [] __key.4+0x0/0x40 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values.part.0+0xf6/0x910 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3bd/0x440 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x770 drivers/input/input.c:156 input_pass_values drivers/input/input.c:421 [inline] input_handle_event+0x85a/0x1470 drivers/input/input.c:421 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_do_ioctl+0x547/0x18e0 drivers/input/evdev.c:1072 evdev_ioctl_handler drivers/input/evdev.c:1272 [inline] evdev_ioctl+0x14c/0x1b0 drivers/input/evdev.c:1281 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x19a/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc 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:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x8c0 kernel/exit.c:1523 kernel_wait+0x9c/0x150 kernel/exit.c:1705 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x8c0 kernel/exit.c:1523 kernel_wait+0x9c/0x150 kernel/exit.c:1705 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x2f/0x40 kernel/locking/spinlock.c:311 copy_process+0x415a/0x7800 kernel/fork.c:2242 kernel_clone+0xe7/0x980 kernel/fork.c:2506 kernel_thread+0xb5/0xf0 kernel/fork.c:2558 rest_init+0x23/0x3fd init/main.c:686 start_kernel+0x464/0x489 init/main.c:1044 secondary_startup_64_no_verify+0xbe/0xcb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x8c0 kernel/exit.c:1523 kernel_wait+0x9c/0x150 kernel/exit.c:1705 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 send_sigio+0xae/0x370 fs/fcntl.c:809 kill_fasync_rcu fs/fcntl.c:1020 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x1f9/0x4f0 fs/fcntl.c:1027 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x3de/0x1520 fs/locks.c:1657 break_lease include/linux/fs.h:2495 [inline] break_lease include/linux/fs.h:2485 [inline] do_dentry_open+0x43f/0x1090 fs/open.c:808 do_open fs/namei.c:3307 [inline] path_openat+0x1937/0x26e0 fs/namei.c:3425 do_filp_open+0x190/0x3e0 fs/namei.c:3452 do_sys_openat2+0x171/0x420 fs/open.c:1186 do_sys_open fs/open.c:1202 [inline] __do_sys_open fs/open.c:1210 [inline] __se_sys_open fs/open.c:1206 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1206 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x42/0x90 kernel/locking/spinlock.c:231 send_sigurg+0x1e/0xb90 fs/fcntl.c:834 sk_send_sigurg+0x76/0x370 net/core/sock.c:2972 tcp_check_urg.isra.0+0x1f3/0x720 net/ipv4/tcp_input.c:5581 tcp_urg net/ipv4/tcp_input.c:5622 [inline] tcp_rcv_established+0xfa4/0x1e30 net/ipv4/tcp_input.c:5956 tcp_v6_do_rcv+0x7b3/0x1520 net/ipv6/tcp_ipv6.c:1503 tcp_v6_rcv+0x2e5d/0x3460 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x2f5/0x17b0 net/ipv6/ip6_input.c:427 ip6_input_finish+0x64/0x1b0 net/ipv6/ip6_input.c:468 NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:477 dst_input include/net/dst.h:442 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:80 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:70 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ipv6_rcv+0x141/0x240 net/ipv6/ip6_input.c:301 __netif_receive_skb_one_core+0x12e/0x1f0 net/core/dev.c:5375 __netif_receive_skb+0x27/0x1d0 net/core/dev.c:5489 process_backlog+0x222/0x820 net/core/dev.c:6396 napi_poll net/core/dev.c:6847 [inline] net_rx_action+0x3ff/0xf40 net/core/dev.c:6917 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 perf_trace_lock+0x99/0x490 include/trace/events/lock.h:39 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x470/0x680 kernel/locking/lockdep.c:5577 rcu_lock_release include/linux/rcupdate.h:308 [inline] rcu_read_unlock include/linux/rcupdate.h:771 [inline] __is_insn_slot_addr+0x14c/0x290 kernel/kprobes.c:307 is_kprobe_optinsn_slot include/linux/kprobes.h:336 [inline] kernel_text_address kernel/extable.c:149 [inline] kernel_text_address+0xdf/0x120 kernel/extable.c:120 __kernel_text_address+0x9/0x40 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:323 [inline] unwind_get_return_address+0x55/0xa0 arch/x86/kernel/unwind_orc.c:318 arch_stack_walk+0x99/0xf0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 __save_stack_trace mm/kmemleak.c:563 [inline] create_object.isra.0+0x372/0xa20 mm/kmemleak.c:618 kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] slab_post_alloc_hook mm/slab.h:534 [inline] slab_alloc_node mm/slub.c:2896 [inline] slab_alloc mm/slub.c:2904 [inline] kmem_cache_alloc+0x159/0x310 mm/slub.c:2909 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags+0x9a/0xe0 include/linux/audit.h:320 getname fs/namei.c:209 [inline] __do_sys_renameat fs/namei.c:4580 [inline] __se_sys_renameat fs/namei.c:4577 [inline] __x64_sys_renameat+0x9e/0xf0 fs/namei.c:4577 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x2f/0x40 kernel/locking/spinlock.c:311 f_modown+0x2a/0x380 fs/fcntl.c:90 __f_setown fs/fcntl.c:109 [inline] f_setown+0xdd/0x280 fs/fcntl.c:137 do_fcntl+0x732/0x11a0 fs/fcntl.c:392 __do_sys_fcntl fs/fcntl.c:471 [inline] __se_sys_fcntl fs/fcntl.c:456 [inline] __x64_sys_fcntl+0x169/0x1e0 fs/fcntl.c:456 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irq include/linux/rwlock_api_smp.h:169 [inline] _raw_read_lock_irq+0x60/0x80 kernel/locking/spinlock.c:239 f_getown+0x23/0x2e0 fs/fcntl.c:153 do_fcntl+0xbcc/0x11a0 fs/fcntl.c:388 __do_sys_fcntl fs/fcntl.c:471 [inline] __se_sys_fcntl fs/fcntl.c:456 [inline] __x64_sys_fcntl+0x169/0x1e0 fs/fcntl.c:456 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc } ... key at: [] __key.5+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x71/0x90 kernel/locking/spinlock.c:231 send_sigio+0x24/0x370 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1020 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x1f9/0x4f0 fs/fcntl.c:1027 sock_wake_async+0xd2/0x160 net/socket.c:1339 sk_wake_async include/net/sock.h:2378 [inline] sk_wake_async include/net/sock.h:2374 [inline] unix_release_sock+0x9c3/0xe30 net/unix/af_unix.c:555 unix_release+0x3f/0x90 net/unix/af_unix.c:882 __sock_release+0xd2/0x290 net/socket.c:596 sock_close+0x18/0x20 net/socket.c:1285 __fput+0x285/0x980 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x186/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x1d0 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x67/0xcc -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x42/0x90 kernel/locking/spinlock.c:231 kill_fasync_rcu fs/fcntl.c:1013 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 sock_wake_async+0xd2/0x160 net/socket.c:1339 sk_wake_async include/net/sock.h:2378 [inline] sk_wake_async+0x10a/0x2f0 include/net/sock.h:2374 tcp_rcv_state_process+0x312c/0x4b20 net/ipv4/tcp_input.c:6502 tcp_v6_do_rcv+0x3e4/0x1520 net/ipv6/tcp_ipv6.c:1528 tcp_v6_rcv+0x2e5d/0x3460 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x2f5/0x17b0 net/ipv6/ip6_input.c:427 ip6_input_finish+0x64/0x1b0 net/ipv6/ip6_input.c:468 NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:477 dst_input include/net/dst.h:442 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:80 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:70 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] NF_HOOK include/linux/netfilter.h:290 [inline] ipv6_rcv+0x141/0x240 net/ipv6/ip6_input.c:301 __netif_receive_skb_one_core+0x12e/0x1f0 net/core/dev.c:5375 __netif_receive_skb+0x27/0x1d0 net/core/dev.c:5489 process_backlog+0x222/0x820 net/core/dev.c:6396 napi_poll net/core/dev.c:6847 [inline] net_rx_action+0x3ff/0xf40 net/core/dev.c:6917 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 run_ksoftirqd kernel/softirq.c:653 [inline] run_ksoftirqd+0x25/0x50 kernel/softirq.c:645 smpboot_thread_fn+0x3f5/0x860 kernel/smpboot.c:164 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:299 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x2f/0x40 kernel/locking/spinlock.c:311 fasync_remove_entry+0xb6/0x1f0 fs/fcntl.c:890 fasync_helper+0xa2/0xb0 fs/fcntl.c:993 lease_modify fs/locks.c:1522 [inline] lease_modify+0x298/0x5c0 fs/locks.c:1509 locks_remove_lease fs/locks.c:2767 [inline] locks_remove_file+0x272/0x660 fs/locks.c:2792 __fput+0x1bd/0x980 fs/file_table.c:273 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x186/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x1d0 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x67/0xcc INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x71/0x90 kernel/locking/spinlock.c:231 kill_fasync_rcu fs/fcntl.c:1013 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 sock_wake_async+0xd2/0x160 net/socket.c:1339 sk_wake_async include/net/sock.h:2378 [inline] sk_wake_async include/net/sock.h:2374 [inline] unix_release_sock+0x9c3/0xe30 net/unix/af_unix.c:555 unix_release+0x3f/0x90 net/unix/af_unix.c:882 __sock_release+0xd2/0x290 net/socket.c:596 sock_close+0x18/0x20 net/socket.c:1285 __fput+0x285/0x980 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x186/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x1d0 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x67/0xcc } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x71/0x90 kernel/locking/spinlock.c:231 kill_fasync_rcu fs/fcntl.c:1013 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x63d/0x910 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3bd/0x440 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x770 drivers/input/input.c:156 input_pass_values drivers/input/input.c:421 [inline] input_handle_event+0x85a/0x1470 drivers/input/input.c:421 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_do_ioctl+0x532/0x18e0 drivers/input/evdev.c:1071 evdev_ioctl_handler drivers/input/evdev.c:1272 [inline] evdev_ioctl+0x14c/0x1b0 drivers/input/evdev.c:1281 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x19a/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc stack backtrace: CPU: 1 PID: 19068 Comm: syz-executor.1 Not tainted 5.10.215 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:118 print_bad_irq_dependency kernel/locking/lockdep.c:2562 [inline] check_irq_usage.cold+0x481/0x58d kernel/locking/lockdep.c:2801 check_prev_add kernel/locking/lockdep.c:2992 [inline] check_prevs_add kernel/locking/lockdep.c:3113 [inline] validate_chain kernel/locking/lockdep.c:3729 [inline] __lock_acquire+0x29ff/0x5b00 kernel/locking/lockdep.c:4955 lock_acquire kernel/locking/lockdep.c:5566 [inline] lock_acquire+0x197/0x470 kernel/locking/lockdep.c:5531 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x71/0x90 kernel/locking/spinlock.c:231 kill_fasync_rcu fs/fcntl.c:1013 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x63d/0x910 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3bd/0x440 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x770 drivers/input/input.c:156 input_pass_values drivers/input/input.c:421 [inline] input_handle_event+0x85a/0x1470 drivers/input/input.c:421 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_do_ioctl+0x532/0x18e0 drivers/input/evdev.c:1071 evdev_ioctl_handler drivers/input/evdev.c:1272 [inline] evdev_ioctl+0x14c/0x1b0 drivers/input/evdev.c:1281 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x19a/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xcc RIP: 0033:0x7f991eadfb19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f991c055188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f991ebf2f60 RCX: 00007f991eadfb19 RDX: 0000000020000080 RSI: 0000000040084503 RDI: 0000000000000006 RBP: 00007f991eb39f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc493084bf R14: 00007f991c055300 R15: 0000000000022000 Bluetooth: hci2: command 0x0409 tx timeout Bluetooth: hci2: command 0x041b tx timeout ieee80211 phy48: Selected rate control algorithm 'minstrel_ht' wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready ieee80211 phy49: Selected rate control algorithm 'minstrel_ht' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready Bluetooth: hci2: command 0x040f tx timeout