cm109 2-1:0.8: cm109_urb_irq_callback: urb status -71
------------[ cut here ]------------
URB ffff888076667d00 submitted while active
WARNING: CPU: 0 PID: 4334 at drivers/usb/core/urb.c:378 usb_submit_urb+0x14e2/0x18a0 drivers/usb/core/urb.c:378
Modules linked in:
CPU: 0 PID: 4334 Comm: syz-executor.2 Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022
RIP: 0010:usb_submit_urb+0x14e2/0x18a0 drivers/usb/core/urb.c:378
Code: 89 de e8 01 bf ee fb 84 db 0f 85 a9 f3 ff ff e8 f4 c2 ee fb 4c 89 fe 48 c7 c7 80 ef 6e 8a c6 05 d1 14 1b 08 01 e8 1d 8b a6 03 <0f> 0b e9 87 f3 ff ff 41 be ed ff ff ff e9 7c f3 ff ff e8 c7 c2 ee
RSP: 0018:ffffc900000079d0 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff8160cfb8 RDI: fffff52000000f2c
RBP: ffff88801f8daeb0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000101 R11: 0000000000000001 R12: 0000000000000016
R13: ffff88801fd7b058 R14: 00000000fffffff0 R15: ffff888076667d00
FS: 00007f4008f8f700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000000010c CR3: 0000000078d5a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
cm109_urb_irq_callback+0x44c/0xaa0 drivers/input/misc/cm109.c:422
__usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670
usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1747
dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790
__run_timers kernel/time/timer.c:1768 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
__do_softirq+0x29b/0x9c2 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:fast_imageblit drivers/video/fbdev/core/sysimgblt.c:256 [inline]
RIP: 0010:sys_imageblit+0x140a/0x2240 drivers/video/fbdev/core/sysimgblt.c:323
Code: ff ff 89 44 24 28 e9 62 fe ff ff e8 80 ac 41 fd 8b 5c 24 20 bf 07 00 00 00 89 de 41 89 dd e8 ad a8 41 fd 89 d8 48 8b 6c 24 50 <83> f8 07 48 8b 5c 24 30 0f 8e 9d 07 00 00 44 8b 64 24 58 4c 8b 74
RSP: 0018:ffffc90002d4f578 EFLAGS: 00000297
RAX: 0000000000000038 RBX: 0000000000000038 RCX: ffffffff8438ba43
RDX: ffff888023aabb00 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff888146f08a57 R08: 0000000000000005 R09: 0000000000000007
R10: 0000000000000038 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000038 R14: ffff888146f08a57 R15: dffffc0000000000
drm_fb_helper_sys_imageblit drivers/gpu/drm/drm_fb_helper.c:825 [inline]
drm_fbdev_fb_imageblit+0x15c/0x350 drivers/gpu/drm/drm_fb_helper.c:2328
bit_putcs_unaligned drivers/video/fbdev/core/bitblit.c:139 [inline]
bit_putcs+0x6e1/0xd20 drivers/video/fbdev/core/bitblit.c:188
fbcon_putcs+0x314/0x3e0 drivers/video/fbdev/core/fbcon.c:1285
con_flush drivers/tty/vt/vt.c:2617 [inline]
do_con_write+0xd7f/0x1e40 drivers/tty/vt/vt.c:2950
con_write+0x21/0x40 drivers/tty/vt/vt.c:3295
process_output_block drivers/tty/n_tty.c:581 [inline]
n_tty_write+0x410/0xfc0 drivers/tty/n_tty.c:2297
do_tty_write drivers/tty/tty_io.c:1024 [inline]
file_tty_write.constprop.0+0x520/0x900 drivers/tty/tty_io.c:1095
call_write_iter include/linux/fs.h:2058 [inline]
new_sync_write+0x38a/0x560 fs/read_write.c:504
vfs_write+0x7c0/0xac0 fs/read_write.c:591
ksys_write+0x127/0x250 fs/read_write.c:644
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f4007e89109
================================
WARNING: inconsistent lock state
5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
syz-executor.2/4334 [HC0[0]:SC1[1]:HE0:SE0] takes:
ffffffff8beb8358 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
ffffffff8beb8358 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805
{SOFTIRQ-ON-W} state was registered at:
lock_acquire kernel/locking/lockdep.c:5665 [inline]
lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:349 [inline]
alloc_vmap_area+0xa49/0x1f00 mm/vmalloc.c:1586
__get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2453
get_vm_area_caller+0x43/0x50 mm/vmalloc.c:2506
__ioremap_caller.constprop.0+0x292/0x600 arch/x86/mm/ioremap.c:280
acpi_os_ioremap include/acpi/acpi_io.h:13 [inline]
acpi_map drivers/acpi/osl.c:296 [inline]
acpi_os_map_iomem+0x463/0x550 drivers/acpi/osl.c:355
acpi_tb_acquire_table+0xd8/0x209 drivers/acpi/acpica/tbdata.c:142
acpi_tb_validate_table drivers/acpi/acpica/tbdata.c:317 [inline]
acpi_tb_validate_table+0x50/0x8c drivers/acpi/acpica/tbdata.c:308
acpi_tb_verify_temp_table+0x84/0x674 drivers/acpi/acpica/tbdata.c:504
acpi_reallocate_root_table+0x374/0x3e0 drivers/acpi/acpica/tbxface.c:180
acpi_early_init+0x13a/0x438 drivers/acpi/bus.c:1200
start_kernel+0x3cf/0x48f init/main.c:1098
secondary_startup_64_no_verify+0xce/0xdb
irq event stamp: 2555
hardirqs last enabled at (2554): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
hardirqs last enabled at (2554): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202
hardirqs last disabled at (2555): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (2555): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162
softirqs last enabled at (2042): [] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last enabled at (2042): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
softirqs last disabled at (2531): [] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (2531): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(vmap_area_lock);
lock(vmap_area_lock);
*** DEADLOCK ***
7 locks held by syz-executor.2/4334:
#0: ffff88807e66f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
#1: ffff88807e66f130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: tty_write_lock drivers/tty/tty_io.c:950 [inline]
#1: ffff88807e66f130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: do_tty_write drivers/tty/tty_io.c:973 [inline]
#1: ffff88807e66f130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0x299/0x900 drivers/tty/tty_io.c:1095
#2: ffff88807e66f2e8 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x1bf/0xfc0 drivers/tty/n_tty.c:2280
#3: ffffc900015f4378 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block drivers/tty/n_tty.c:536 [inline]
#3: ffffc900015f4378 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_write+0x53c/0xfc0 drivers/tty/n_tty.c:2297
#4: ffffffff8bd75360 (console_lock){+.+.}-{0:0}, at: do_con_write+0x10f/0x1e40 drivers/tty/vt/vt.c:2908
#5: ffffc90000007d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline]
#5: ffffc90000007d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464
#6: ffff88801fd7b070 (&dev->ctl_submit_lock){..-.}-{2:2}, at: cm109_urb_irq_callback+0x252/0xaa0 drivers/input/misc/cm109.c:405
stack backtrace:
CPU: 0 PID: 4334 Comm: syz-executor.2 Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_usage_bug kernel/locking/lockdep.c:3961 [inline]
valid_state kernel/locking/lockdep.c:3973 [inline]
mark_lock_irq kernel/locking/lockdep.c:4176 [inline]
mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632
mark_lock kernel/locking/lockdep.c:4596 [inline]
mark_usage kernel/locking/lockdep.c:4527 [inline]
__lock_acquire+0x11e7/0x5660 kernel/locking/lockdep.c:5007
lock_acquire kernel/locking/lockdep.c:5665 [inline]
lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:349 [inline]
find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805
check_heap_object mm/usercopy.c:176 [inline]
__check_object_size mm/usercopy.c:250 [inline]
__check_object_size+0x1f8/0x700 mm/usercopy.c:212
check_object_size include/linux/thread_info.h:199 [inline]
__copy_from_user_inatomic include/linux/uaccess.h:62 [inline]
copy_from_user_nmi arch/x86/lib/usercopy.c:47 [inline]
copy_from_user_nmi+0xcb/0x130 arch/x86/lib/usercopy.c:31
copy_code arch/x86/kernel/dumpstack.c:91 [inline]
show_opcodes+0x59/0xb0 arch/x86/kernel/dumpstack.c:121
show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:149
__show_regs+0x1e/0x60 arch/x86/kernel/process_64.c:74
show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292
__warn+0xe2/0x190 kernel/panic.c:620
report_bug+0x1bc/0x210 lib/bug.c:198
handle_bug+0x3c/0x60 arch/x86/kernel/traps.c:316
exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:336
asm_exc_invalid_op+0x1b/0x20 arch/x86/include/asm/idtentry.h:568
RIP: 0010:usb_submit_urb+0x14e2/0x18a0 drivers/usb/core/urb.c:378
Code: 89 de e8 01 bf ee fb 84 db 0f 85 a9 f3 ff ff e8 f4 c2 ee fb 4c 89 fe 48 c7 c7 80 ef 6e 8a c6 05 d1 14 1b 08 01 e8 1d 8b a6 03 <0f> 0b e9 87 f3 ff ff 41 be ed ff ff ff e9 7c f3 ff ff e8 c7 c2 ee
RSP: 0018:ffffc900000079d0 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff8160cfb8 RDI: fffff52000000f2c
RBP: ffff88801f8daeb0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000101 R11: 0000000000000001 R12: 0000000000000016
R13: ffff88801fd7b058 R14: 00000000fffffff0 R15: ffff888076667d00
cm109_urb_irq_callback+0x44c/0xaa0 drivers/input/misc/cm109.c:422
__usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670
usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1747
dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790
__run_timers kernel/time/timer.c:1768 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
__do_softirq+0x29b/0x9c2 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:fast_imageblit drivers/video/fbdev/core/sysimgblt.c:256 [inline]
RIP: 0010:sys_imageblit+0x140a/0x2240 drivers/video/fbdev/core/sysimgblt.c:323
Code: ff ff 89 44 24 28 e9 62 fe ff ff e8 80 ac 41 fd 8b 5c 24 20 bf 07 00 00 00 89 de 41 89 dd e8 ad a8 41 fd 89 d8 48 8b 6c 24 50 <83> f8 07 48 8b 5c 24 30 0f 8e 9d 07 00 00 44 8b 64 24 58 4c 8b 74
RSP: 0018:ffffc90002d4f578 EFLAGS: 00000297
RAX: 0000000000000038 RBX: 0000000000000038 RCX: ffffffff8438ba43
RDX: ffff888023aabb00 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff888146f08a57 R08: 0000000000000005 R09: 0000000000000007
R10: 0000000000000038 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000038 R14: ffff888146f08a57 R15: dffffc0000000000
drm_fb_helper_sys_imageblit drivers/gpu/drm/drm_fb_helper.c:825 [inline]
drm_fbdev_fb_imageblit+0x15c/0x350 drivers/gpu/drm/drm_fb_helper.c:2328
bit_putcs_unaligned drivers/video/fbdev/core/bitblit.c:139 [inline]
bit_putcs+0x6e1/0xd20 drivers/video/fbdev/core/bitblit.c:188
fbcon_putcs+0x314/0x3e0 drivers/video/fbdev/core/fbcon.c:1285
con_flush drivers/tty/vt/vt.c:2617 [inline]
do_con_write+0xd7f/0x1e40 drivers/tty/vt/vt.c:2950
con_write+0x21/0x40 drivers/tty/vt/vt.c:3295
process_output_block drivers/tty/n_tty.c:581 [inline]
n_tty_write+0x410/0xfc0 drivers/tty/n_tty.c:2297
do_tty_write drivers/tty/tty_io.c:1024 [inline]
file_tty_write.constprop.0+0x520/0x900 drivers/tty/tty_io.c:1095
call_write_iter include/linux/fs.h:2058 [inline]
new_sync_write+0x38a/0x560 fs/read_write.c:504
vfs_write+0x7c0/0xac0 fs/read_write.c:591
ksys_write+0x127/0x250 fs/read_write.c:644
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f4007e89109
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4008f8f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f4007f9bf60 RCX: 00007f4007e89109
RDX: 0000000000001006 RSI: 0000000020001040 RDI: 0000000000000004
RBP: 00007f4007ee305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f40084cfb1f R14: 00007f4008f8f300 R15: 0000000000022000
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4008f8f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f4007f9bf60 RCX: 00007f4007e89109
RDX: 0000000000001006 RSI: 0000000020001040 RDI: 0000000000000004
RBP: 00007f4007ee305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f40084cfb1f R14: 00007f4008f8f300 R15: 0000000000022000
----------------
Code disassembly (best guess), 2 bytes skipped:
0: 89 44 24 28 mov %eax,0x28(%rsp)
4: e9 62 fe ff ff jmpq 0xfffffe6b
9: e8 80 ac 41 fd callq 0xfd41ac8e
e: 8b 5c 24 20 mov 0x20(%rsp),%ebx
12: bf 07 00 00 00 mov $0x7,%edi
17: 89 de mov %ebx,%esi
19: 41 89 dd mov %ebx,%r13d
1c: e8 ad a8 41 fd callq 0xfd41a8ce
21: 89 d8 mov %ebx,%eax
23: 48 8b 6c 24 50 mov 0x50(%rsp),%rbp
* 28: 83 f8 07 cmp $0x7,%eax <-- trapping instruction
2b: 48 8b 5c 24 30 mov 0x30(%rsp),%rbx
30: 0f 8e 9d 07 00 00 jle 0x7d3
36: 44 8b 64 24 58 mov 0x58(%rsp),%r12d
3b: 4c rex.WR
3c: 8b .byte 0x8b
3d: 74 .byte 0x74