===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.19.0-rc2-syzkaller-00050-g018ab4fabddd #0 Not tainted ----------------------------------------------------- syz-executor349/3612 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8ba0a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xab/0x380 fs/fcntl.c:791 and this task is already holding: ffff88801d476630 (&f->f_owner.lock){....}-{2:2}, at: send_sigio+0x24/0x380 fs/fcntl.c:777 which would create a new lock dependency: (&f->f_owner.lock){....}-{2:2} -> (tasklist_lock){.+.+}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock#2){-...}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:456 [inline] input_event+0x7b/0xb0 drivers/input/input.c:449 input_report_key include/linux/input.h:425 [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+0x1e1/0x890 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x41/0x1b0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x304/0xf00 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x88/0x150 drivers/input/serio/serio.c:1001 i8042_interrupt+0x27a/0x520 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x22b/0x880 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xa7/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x25f/0xd00 kernel/irq/chip.c:817 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x9d/0x210 arch/x86/kernel/irq.c:250 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:640 preempt_count arch/x86/include/asm/preempt.h:27 [inline] check_kcov_mode kernel/kcov.c:166 [inline] __sanitizer_cov_trace_pc+0x7/0x60 kernel/kcov.c:200 check_vma_flags+0x95/0x540 mm/gup.c:994 __get_user_pages+0x1e7/0xfa0 mm/gup.c:1141 __get_user_pages_locked mm/gup.c:1365 [inline] __get_user_pages_remote+0x18f/0x840 mm/gup.c:2039 get_user_pages_remote+0x84/0xc0 mm/gup.c:2112 get_arg_page+0xee/0x2b0 fs/exec.c:221 copy_string_kernel+0x1b9/0x300 fs/exec.c:639 copy_strings_kern