===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.10.165 #1 Not tainted ----------------------------------------------------- syz-executor.3/17056 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88800d38b6a8 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1013 [inline] ffff88800d38b6a8 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1034 [inline] ffff88800d38b6a8 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x138/0x480 fs/fcntl.c:1027 and this task is already holding: ffff88804d817028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88804d817028 (&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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0x820 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/0x190 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+0xfe/0x1d0 drivers/base/dd.c:747 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1030 __driver_attach drivers/base/dd.c:1119 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1061 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/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x960 kernel/exit.c:1451 kernel_wait+0x9c/0x150 kernel/exit.c:1633 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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.3/17056: #0: ffff88800ea5c110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x157/0x420 drivers/input/evdev.c:513 #1: ffff8880085dc230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0xa6/0x330 drivers/input/input.c:477 #2: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:64 [inline] #2: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:61 [inline] #2: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x92/0x330 drivers/input/input.c:476 #3: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x720 drivers/input/input.c:896 #4: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x59/0x3e0 drivers/input/evdev.c:296 #5: ffff88804d817028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff88804d817028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x910 drivers/input/evdev.c:261 #6: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x41/0x480 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0x820 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/0x190 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+0xfe/0x1d0 drivers/base/dd.c:747 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1030 __driver_attach drivers/base/dd.c:1119 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1061 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/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0x330 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:413 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:1293 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+0xfe/0x1d0 drivers/base/dd.c:747 device_driver_attach+0x22c/0x2a0 drivers/base/dd.c:1030 __driver_attach drivers/base/dd.c:1119 [inline] __driver_attach+0xe8/0x360 drivers/base/dd.c:1061 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/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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_handle_get_val+0x70/0x5c0 drivers/input/evdev.c:900 evdev_do_ioctl+0x89b/0x18e0 drivers/input/evdev.c:1159 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+0x61/0xc6 } ... 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_handle_get_val+0x70/0x5c0 drivers/input/evdev.c:900 evdev_do_ioctl+0x89b/0x18e0 drivers/input/evdev.c:1159 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+0x61/0xc6 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x960 kernel/exit.c:1451 kernel_wait+0x9c/0x150 kernel/exit.c:1633 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x960 kernel/exit.c:1451 kernel_wait+0x9c/0x150 kernel/exit.c:1633 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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+0x2e67/0x67d0 kernel/fork.c:2231 kernel_clone+0xe7/0xa20 kernel/fork.c:2498 kernel_thread+0xb5/0xf0 kernel/fork.c:2550 rest_init+0x23/0x389 init/main.c:688 start_kernel+0x469/0x48e init/main.c:1055 secondary_startup_64_no_verify+0xc2/0xcb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:223 do_wait+0x2c0/0x960 kernel/exit.c:1451 kernel_wait+0x9c/0x150 kernel/exit.c:1633 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf5/0x180 kernel/umh.c:164 process_one_work+0x9a9/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 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/0x340 fs/fcntl.c:809 kill_fasync_rcu fs/fcntl.c:1020 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x1fa/0x480 fs/fcntl.c:1027 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x3de/0x1600 fs/locks.c:1657 break_lease include/linux/fs.h:2449 [inline] break_lease include/linux/fs.h:2439 [inline] do_dentry_open+0x43f/0x1090 fs/open.c:808 do_open fs/namei.c:3257 [inline] path_openat+0x193d/0x26d0 fs/namei.c:3376 do_filp_open+0x190/0x3e0 fs/namei.c:3403 do_sys_openat2+0x171/0x420 fs/open.c:1186 do_sys_open fs/open.c:1202 [inline] __do_sys_openat fs/open.c:1218 [inline] __se_sys_openat fs/open.c:1213 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1213 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0xad0 fs/fcntl.c:834 sk_send_sigurg+0x76/0x320 net/core/sock.c:2944 tcp_check_urg.isra.0+0x1f4/0x720 net/ipv4/tcp_input.c:5558 tcp_urg net/ipv4/tcp_input.c:5599 [inline] tcp_rcv_established+0x102f/0x1ed0 net/ipv4/tcp_input.c:5933 tcp_v6_do_rcv+0x7bb/0x1320 net/ipv6/tcp_ipv6.c:1502 tcp_v6_rcv+0x2e5d/0x3460 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x2f5/0x1790 net/ipv6/ip6_input.c:427 ip6_input_finish+0x64/0x180 net/ipv6/ip6_input.c:468 NF_HOOK include/linux/netfilter.h:301 [inline] NF_HOOK include/linux/netfilter.h:295 [inline] ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:477 dst_input include/net/dst.h:448 [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:301 [inline] NF_HOOK include/linux/netfilter.h:295 [inline] ipv6_rcv+0x141/0x240 net/ipv6/ip6_input.c:301 __netif_receive_skb_one_core+0x12e/0x1f0 net/core/dev.c:5361 __netif_receive_skb+0x27/0x1d0 net/core/dev.c:5475 process_backlog+0x38f/0x7e0 net/core/dev.c:6381 napi_poll net/core/dev.c:6832 [inline] net_rx_action+0x3ff/0xff0 net/core/dev.c:6902 __do_softirq+0x1b8/0x86b 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:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0x390 fs/fcntl.c:90 __f_setown fs/fcntl.c:109 [inline] f_setown_ex fs/fcntl.c:199 [inline] do_fcntl+0xae3/0x1120 fs/fcntl.c:398 __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+0x61/0xc6 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0xad0 fs/fcntl.c:834 sk_send_sigurg+0x76/0x320 net/core/sock.c:2944 tcp_check_urg.isra.0+0x1f4/0x720 net/ipv4/tcp_input.c:5558 tcp_urg net/ipv4/tcp_input.c:5599 [inline] tcp_rcv_established+0x102f/0x1ed0 net/ipv4/tcp_input.c:5933 tcp_v6_do_rcv+0x7bb/0x1320 net/ipv6/tcp_ipv6.c:1502 sk_backlog_rcv include/net/sock.h:1037 [inline] __release_sock+0x139/0x3b0 net/core/sock.c:2542 release_sock+0x54/0x1b0 net/core/sock.c:3074 tcp_sendmsg+0x36/0x50 net/ipv4/tcp.c:1449 inet6_sendmsg+0xb5/0x140 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xf2/0x190 net/socket.c:671 ____sys_sendmsg+0x70d/0x870 net/socket.c:2356 ___sys_sendmsg+0xf3/0x170 net/socket.c:2410 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2439 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 } ... 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/0x340 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1020 [inline] kill_fasync fs/fcntl.c:1034 [inline] kill_fasync+0x1fa/0x480 fs/fcntl.c:1027 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x3de/0x1600 fs/locks.c:1657 break_lease include/linux/fs.h:2449 [inline] break_lease include/linux/fs.h:2439 [inline] do_dentry_open+0x43f/0x1090 fs/open.c:808 do_open fs/namei.c:3257 [inline] path_openat+0x193d/0x26d0 fs/namei.c:3376 do_filp_open+0x190/0x3e0 fs/namei.c:3403 do_sys_openat2+0x171/0x420 fs/open.c:1186 do_sys_open fs/open.c:1202 [inline] __do_sys_creat fs/open.c:1276 [inline] __se_sys_creat fs/open.c:1270 [inline] __x64_sys_creat+0xc9/0x120 fs/open.c:1270 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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/0x620 fs/locks.c:2792 __fput+0x1bd/0x980 fs/file_table.c:273 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xb6f/0x26a0 kernel/exit.c:811 do_group_exit+0x125/0x310 kernel/exit.c:908 get_signal+0x4bc/0x2340 kernel/signal.c:2751 arch_do_signal_or_restart+0x2b7/0x1990 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x10f/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x230 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x61/0xc6 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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+0x138/0x480 fs/fcntl.c:1027 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x3de/0x1600 fs/locks.c:1657 break_lease include/linux/fs.h:2449 [inline] break_lease include/linux/fs.h:2439 [inline] do_dentry_open+0x43f/0x1090 fs/open.c:808 do_open fs/namei.c:3257 [inline] path_openat+0x193d/0x26d0 fs/namei.c:3376 do_filp_open+0x190/0x3e0 fs/namei.c:3403 do_sys_openat2+0x171/0x420 fs/open.c:1186 do_sys_open fs/open.c:1202 [inline] __do_sys_creat fs/open.c:1276 [inline] __se_sys_creat fs/open.c:1270 [inline] __x64_sys_creat+0xc9/0x120 fs/open.c:1270 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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+0x138/0x480 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+0x366/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x720 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+0x1ca/0x330 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 do_loop_readv_writev fs/read_write.c:764 [inline] do_loop_readv_writev fs/read_write.c:748 [inline] do_iter_write+0x482/0x670 fs/read_write.c:868 vfs_writev+0x1ae/0x5e0 fs/read_write.c:939 do_writev+0x283/0x300 fs/read_write.c:982 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 stack backtrace: CPU: 1 PID: 17056 Comm: syz-executor.3 Not tainted 5.10.165 #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:3728 [inline] __lock_acquire+0x29ff/0x5b00 kernel/locking/lockdep.c:4954 lock_acquire kernel/locking/lockdep.c:5565 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5530 __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+0x138/0x480 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+0x366/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x297/0x4c0 drivers/input/input.c:126 input_pass_values.part.0+0x239/0x720 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+0x1ca/0x330 drivers/input/input.c:482 evdev_write+0x2d5/0x420 drivers/input/evdev.c:530 do_loop_readv_writev fs/read_write.c:764 [inline] do_loop_readv_writev fs/read_write.c:748 [inline] do_iter_write+0x482/0x670 fs/read_write.c:868 vfs_writev+0x1ae/0x5e0 fs/read_write.c:939 do_writev+0x283/0x300 fs/read_write.c:982 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7ff8067c7b19 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:00007ff803d3d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007ff8068daf60 RCX: 00007ff8067c7b19 RDX: 0000000000000001 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007ff806821f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd0ca13fdf R14: 00007ff803d3d300 R15: 0000000000022000