===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.10.225 #1 Not tainted ----------------------------------------------------- syz-executor.3/10479 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88800da7c408 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1013 [inline] ffff88800da7c408 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1034 [inline] ffff88800da7c408 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x137/0x4f0 fs/fcntl.c:1027 and this task is already holding: rfkill: input handler disabled ffff8880498c7028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff8880498c7028 (&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:819 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_attach_driver+0x1d0/0x320 drivers/base/dd.c:863 bus_for_each_drv+0x161/0x1e0 drivers/base/bus.c:431 __device_attach+0x1e4/0x500 drivers/base/dd.c:932 bus_probe_device+0x1e6/0x290 drivers/base/bus.c:491 device_add+0xb69/0x1c50 drivers/base/core.c:3014 serio_add_port drivers/input/serio/serio.c:542 [inline] serio_handle_event+0x480/0x900 drivers/input/serio/serio.c:210 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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:1525 kernel_wait+0x9c/0x150 kernel/exit.c:1707 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:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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.3/10479: #0: ffff88800ee80110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x157/0x420 drivers/input/evdev.c:513 #1: ffff88800c854230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0xa6/0x390 drivers/input/input.c:477 #2: ffffffff84ff8c20 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:64 [inline] #2: ffffffff84ff8c20 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:61 [inline] #2: ffffffff84ff8c20 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x92/0x390 drivers/input/input.c:476 #3: ffffffff84ff8c20 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x770 drivers/input/input.c:2084 #4: ffffffff84ff8c20 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x59/0x440 drivers/input/evdev.c:296 #5: ffff8880498c7028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff8880498c7028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x910 drivers/input/evdev.c:261 #6: ffffffff84ff8c20 (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:819 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_attach_driver+0x1d0/0x320 drivers/base/dd.c:863 bus_for_each_drv+0x161/0x1e0 drivers/base/bus.c:431 __device_attach+0x1e4/0x500 drivers/base/dd.c:932 bus_probe_device+0x1e6/0x290 drivers/base/bus.c:491 device_add+0xb69/0x1c50 drivers/base/core.c:3014 serio_add_port drivers/input/serio/serio.c:542 [inline] serio_handle_event+0x480/0x900 drivers/input/serio/serio.c:210 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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+0x48e/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:416 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:2323 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_attach_driver+0x1d0/0x320 drivers/base/dd.c:863 bus_for_each_drv+0x161/0x1e0 drivers/base/bus.c:431 __device_attach+0x1e4/0x500 drivers/base/dd.c:932 bus_probe_device+0x1e6/0x290 drivers/base/bus.c:491 device_add+0xb69/0x1c50 drivers/base/core.c:3014 serio_add_port drivers/input/serio/serio.c:542 [inline] serio_handle_event+0x480/0x900 drivers/input/serio/serio.c:210 process_one_work+0x9a9/0x14b0 kernel/workqueue.c:2282 worker_thread+0x61d/0x1310 kernel/workqueue.c:2428 kthread+0x38f/0x470 kernel/kthread.c:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 } ... key at: [] __key.7+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:145 [inline] input_handle_event+0x3b7/0x1470 drivers/input/input.c:410 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 vfs_write+0x29a/0xb10 fs/read_write.c:603 ksys_write+0x1f6/0x260 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 } ... 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:145 [inline] input_handle_event+0x3b7/0x1470 drivers/input/input.c:410 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 vfs_write+0x29a/0xb10 fs/read_write.c:603 ksys_write+0x1f6/0x260 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 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:1525 kernel_wait+0x9c/0x150 kernel/exit.c:1707 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:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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:1525 kernel_wait+0x9c/0x150 kernel/exit.c:1707 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:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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:688 start_kernel+0x464/0x489 init/main.c:1046 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:1525 kernel_wait+0x9c/0x150 kernel/exit.c:1707 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:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 } ... 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:613 __break_lease+0x3de/0x1520 fs/locks.c:1712 break_lease include/linux/fs.h:2538 [inline] break_lease include/linux/fs.h:2528 [inline] do_dentry_open+0x43f/0x1090 fs/open.c:808 do_open fs/namei.c:3307 [inline] path_openat+0x19ba/0x2770 fs/namei.c:3425 do_filp_open+0x190/0x3e0 fs/namei.c:3452 do_sys_openat2+0x171/0x4d0 fs/open.c:1227 do_sys_open fs/open.c:1243 [inline] __do_sys_openat fs/open.c:1259 [inline] __se_sys_openat fs/open.c:1254 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1254 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 -> (&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:5590 tcp_urg net/ipv4/tcp_input.c:5631 [inline] tcp_rcv_established+0xfa4/0x1e30 net/ipv4/tcp_input.c:5965 tcp_v6_do_rcv+0x7b3/0x1520 net/ipv6/tcp_ipv6.c:1506 tcp_v6_rcv+0x2e5d/0x3460 net/ipv6/tcp_ipv6.c:1738 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 rfkill: input handler enabled 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:328 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:298 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 generic_add_lease fs/locks.c:1997 [inline] generic_setlease+0x116a/0x1840 fs/locks.c:2076 vfs_setlease+0x108/0x130 fs/locks.c:2166 do_fcntl_add_lease fs/locks.c:2187 [inline] fcntl_setlease+0x134/0x2c0 fs/locks.c:2209 rfkill: input handler disabled do_fcntl+0xc88/0x11a0 fs/fcntl.c:418 __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/0xd1 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 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:5590 tcp_urg net/ipv4/tcp_input.c:5631 [inline] tcp_rcv_established+0xfa4/0x1e30 net/ipv4/tcp_input.c:5965 tcp_v6_do_rcv+0x7b3/0x1520 net/ipv6/tcp_ipv6.c:1506 sk_backlog_rcv include/net/sock.h:1039 [inline] __release_sock+0x139/0x3b0 net/core/sock.c:2570 release_sock+0x54/0x1b0 net/core/sock.c:3111 sk_stream_wait_memory+0x601/0xf80 net/core/stream.c:145 tcp_sendmsg_locked+0xd85/0x2f20 net/ipv4/tcp.c:1412 tcp_sendmsg+0x2b/0x50 net/ipv4/tcp.c:1452 inet6_sendmsg+0xb5/0x140 net/ipv6/af_inet6.c:663 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0xf2/0x190 net/socket.c:663 ____sys_sendmsg+0x70d/0x870 net/socket.c:2378 ___sys_sendmsg+0xf3/0x170 net/socket.c:2432 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2461 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 } ... key at: [] __key.5+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x42/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:2371 [inline] sk_wake_async include/net/sock.h:2367 [inline] sock_def_error_report+0x3ac/0x5a0 net/core/sock.c:2925 sock_queue_err_skb+0x38c/0x760 net/core/skbuff.c:4609 __skb_complete_tx_timestamp+0x308/0x420 net/core/skbuff.c:4704 __skb_tstamp_tx+0x5db/0x8d0 net/core/skbuff.c:4797 __dev_queue_xmit+0x1770/0x2710 net/core/dev.c:4115 neigh_connected_output+0x382/0x4d0 net/core/neighbour.c:1538 neigh_output include/net/neighbour.h:509 [inline] ip6_finish_output2+0xaaf/0x1fe0 net/ipv6/ip6_output.c:145 __ip6_finish_output.part.0+0x4f7/0xbc0 net/ipv6/ip6_output.c:216 __ip6_finish_output include/linux/skbuff.h:972 [inline] ip6_finish_output net/ipv6/ip6_output.c:226 [inline] NF_HOOK_COND include/linux/netfilter.h:285 [inline] ip6_output+0x3b8/0x7e0 net/ipv6/ip6_output.c:249 dst_output include/net/dst.h:436 [inline] ip6_local_out+0xb4/0x1a0 net/ipv6/output_core.c:161 ip6_send_skb+0x112/0x460 net/ipv6/ip6_output.c:1956 udp_v6_send_skb+0x7aa/0x15b0 net/ipv6/udp.c:1259 udpv6_sendmsg+0x2116/0x2ad0 net/ipv6/udp.c:1560 inet6_sendmsg+0x105/0x140 net/ipv6/af_inet6.c:663 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0xf2/0x190 net/socket.c:663 ____sys_sendmsg+0x334/0x870 net/socket.c:2378 ___sys_sendmsg+0xf3/0x170 net/socket.c:2432 __sys_sendmmsg+0x195/0x470 net/socket.c:2518 __do_sys_sendmmsg net/socket.c:2547 [inline] __se_sys_sendmmsg net/socket.c:2544 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2544 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 -> (&new->fa_lock){....}-{2:2} { 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:1577 [inline] lease_modify+0x298/0x5c0 fs/locks.c:1564 locks_remove_lease fs/locks.c:2825 [inline] locks_remove_file+0x272/0x660 fs/locks.c:2850 __fput+0x1bd/0x9f0 fs/file_table.c:273 task_work_run+0xe2/0x1a0 kernel/task_work.c:185 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/0xd1 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+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:2371 [inline] sk_wake_async include/net/sock.h:2367 [inline] sock_def_error_report+0x3ac/0x5a0 net/core/sock.c:2925 sock_queue_err_skb+0x38c/0x760 net/core/skbuff.c:4609 __skb_complete_tx_timestamp+0x308/0x420 net/core/skbuff.c:4704 __skb_tstamp_tx+0x5db/0x8d0 net/core/skbuff.c:4797 __dev_queue_xmit+0x1770/0x2710 net/core/dev.c:4115 neigh_connected_output+0x382/0x4d0 net/core/neighbour.c:1538 neigh_output include/net/neighbour.h:509 [inline] ip6_finish_output2+0xaaf/0x1fe0 net/ipv6/ip6_output.c:145 __ip6_finish_output.part.0+0x4f7/0xbc0 net/ipv6/ip6_output.c:216 __ip6_finish_output include/linux/skbuff.h:972 [inline] ip6_finish_output net/ipv6/ip6_output.c:226 [inline] NF_HOOK_COND include/linux/netfilter.h:285 [inline] ip6_output+0x3b8/0x7e0 net/ipv6/ip6_output.c:249 dst_output include/net/dst.h:436 [inline] ip6_local_out+0xb4/0x1a0 net/ipv6/output_core.c:161 ip6_send_skb+0x112/0x460 net/ipv6/ip6_output.c:1956 udp_v6_send_skb+0x7aa/0x15b0 net/ipv6/udp.c:1259 udpv6_sendmsg+0x2116/0x2ad0 net/ipv6/udp.c:1560 inet6_sendmsg+0x105/0x140 net/ipv6/af_inet6.c:663 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0xf2/0x190 net/socket.c:663 ____sys_sendmsg+0x334/0x870 net/socket.c:2378 ___sys_sendmsg+0xf3/0x170 net/socket.c:2432 __sys_sendmmsg+0x195/0x470 net/socket.c:2518 __do_sys_sendmmsg net/socket.c:2547 [inline] __se_sys_sendmmsg net/socket.c:2544 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2544 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 rfkill: input handler enabled entry_SYSCALL_64_after_hwframe+0x67/0xd1 } ... 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:145 [inline] input_handle_event+0x3b7/0x1470 drivers/input/input.c:410 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 vfs_write+0x29a/0xb10 fs/read_write.c:603 ksys_write+0x1f6/0x260 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 stack backtrace: CPU: 1 PID: 10479 Comm: syz-executor.3 Not tainted 5.10.225 #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:145 [inline] input_handle_event+0x3b7/0x1470 drivers/input/input.c:410 input_inject_event+0x1c9/0x390 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 vfs_write+0x29a/0xb10 fs/read_write.c:603 ksys_write+0x1f6/0x260 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f61887afb19 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:00007f6185d25188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f61888c2f60 RCX: 00007f61887afb19 RDX: 0000000000000070 RSI: 00000000200000c0 RDI: 0000000000000006 RBP: 00007f6188809f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcee4b0a6f R14: 00007f6185d25300 R15: 0000000000022000 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s sr 1:0:0:0: [sr0] tag#0 Sense Key : Not Ready [current] sr 1:0:0:0: [sr0] tag#0 Add. Sense: Medium not present sr 1:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 07 ff c0 00 00 02 00 print_req_error: 1 callbacks suppressed blk_update_request: I/O error, dev sr0, sector 2096896 op 0x0:(READ) flags 0x0 phys_seg 8 prio class 0 blk_update_request: I/O error, dev loop4, sector 2096896 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096896, async page read blk_update_request: I/O error, dev loop4, sector 2096897 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096897, async page read blk_update_request: I/O error, dev loop4, sector 2096898 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096898, async page read blk_update_request: I/O error, dev loop4, sector 2096899 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096899, async page read blk_update_request: I/O error, dev loop4, sector 2096900 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096900, async page read blk_update_request: I/O error, dev loop4, sector 2096901 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096901, async page read blk_update_request: I/O error, dev loop4, sector 2096902 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096902, async page read blk_update_request: I/O error, dev loop4, sector 2096903 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096903, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer blk_update_request: I/O error, dev sr0, sector 2096896 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 2096896, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer Buffer I/O error on dev loop4, logical block 2096897, async page read sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer sr 1:0:0:0: [sr0] tag#0 unaligned transfer