================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 65092 is out of range for type 'const int[34]'
CPU: 0 PID: 1352 Comm: syz.5.255 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x24 lib/dump_stack.c:113
ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x2045/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766
handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline]
RIP: 0010:__unwind_start+0x329/0x3a0 arch/x86/kernel/unwind_frame.c:414
Code: 38 74 08 48 89 df e8 36 40 81 00 48 8b 45 d0 48 39 03 73 44 4c 89 f7 e8 15 ef ff ff 48 b8 00 00 00 00 00 fc ff df 48 8b 4d b0 <0f> b6 04 01 84 c0 75 0f 41 83 3e 00 4c 89 fe 0f 85 16 ff ff ff eb
RSP: 0018:ffffc90007326e68 EFLAGS: 00000296
RAX: dffffc0000000000 RBX: ffffc90007326f00 RCX: 1ffff92000e64dd9
RDX: ffffc90007326f50 RSI: 1ffff92000e64dda RDI: ffffc90007326ef0
RBP: ffffc90007326eb8 R08: ffffc90007326f01 R09: ffffc90007326ec8
R10: dffffc0000000000 R11: fffff52000e64de5 R12: 1ffff92000e64ddb
R13: 1ffff92000e64dda R14: ffffc90007326ec8 R15: ffffc90007326ed8
unwind_start arch/x86/include/asm/unwind.h:64 [inline]
arch_stack_walk+0xe4/0x150 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122
save_stack+0x121/0x230 mm/page_owner.c:147
__set_page_owner+0x1f/0x60 mm/page_owner.c:210
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672
prep_new_page+0x1c/0x110 mm/page_alloc.c:2679
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930
__folio_alloc+0x12/0x40 mm/page_alloc.c:5963
__folio_alloc_node include/linux/gfp.h:245 [inline]
folio_alloc include/linux/gfp.h:274 [inline]
shmem_alloc_folio mm/shmem.c:1597 [inline]
shmem_alloc_and_acct_folio+0x6dd/0x8c0 mm/shmem.c:1622
shmem_get_folio_gfp+0xd6d/0x20f0 mm/shmem.c:1951
shmem_get_folio mm/shmem.c:2082 [inline]
shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567
generic_perform_write+0x32d/0x740 mm/filemap.c:3915
__generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014
generic_file_write_iter+0xae/0x310 mm/filemap.c:4043
call_write_iter include/linux/fs.h:2282 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x5ef/0xd00 fs/read_write.c:584
ksys_write+0x14a/0x260 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:646
x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f600015e90e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f600100ada8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f600100b6c0 RCX: 00007f600015e90e
RDX: 0000000004000000 RSI: 00007f5ff67f8000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f600100aee0 R14: 00007f600100aea0 R15: 00007f5ff67f8000
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85ea4e10 by task syz.5.255/1352
CPU: 0 PID: 1352 Comm: syz.5.255 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x71/0x200 mm/kasan/report.c:316
print_report+0x4a/0x60 mm/kasan/report.c:420
kasan_report+0x122/0x150 mm/kasan/report.c:524
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350
aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766
handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline]
RIP: 0010:__unwind_start+0x329/0x3a0 arch/x86/kernel/unwind_frame.c:414
Code: 38 74 08 48 89 df e8 36 40 81 00 48 8b 45 d0 48 39 03 73 44 4c 89 f7 e8 15 ef ff ff 48 b8 00 00 00 00 00 fc ff df 48 8b 4d b0 <0f> b6 04 01 84 c0 75 0f 41 83 3e 00 4c 89 fe 0f 85 16 ff ff ff eb
RSP: 0018:ffffc90007326e68 EFLAGS: 00000296
RAX: dffffc0000000000 RBX: ffffc90007326f00 RCX: 1ffff92000e64dd9
RDX: ffffc90007326f50 RSI: 1ffff92000e64dda RDI: ffffc90007326ef0
RBP: ffffc90007326eb8 R08: ffffc90007326f01 R09: ffffc90007326ec8
R10: dffffc0000000000 R11: fffff52000e64de5 R12: 1ffff92000e64ddb
R13: 1ffff92000e64dda R14: ffffc90007326ec8 R15: ffffc90007326ed8
unwind_start arch/x86/include/asm/unwind.h:64 [inline]
arch_stack_walk+0xe4/0x150 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122
save_stack+0x121/0x230 mm/page_owner.c:147
__set_page_owner+0x1f/0x60 mm/page_owner.c:210
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672
prep_new_page+0x1c/0x110 mm/page_alloc.c:2679
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930
__folio_alloc+0x12/0x40 mm/page_alloc.c:5963
__folio_alloc_node include/linux/gfp.h:245 [inline]
folio_alloc include/linux/gfp.h:274 [inline]
shmem_alloc_folio mm/shmem.c:1597 [inline]
shmem_alloc_and_acct_folio+0x6dd/0x8c0 mm/shmem.c:1622
shmem_get_folio_gfp+0xd6d/0x20f0 mm/shmem.c:1951
shmem_get_folio mm/shmem.c:2082 [inline]
shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567
generic_perform_write+0x32d/0x740 mm/filemap.c:3915
__generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014
generic_file_write_iter+0xae/0x310 mm/filemap.c:4043
call_write_iter include/linux/fs.h:2282 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x5ef/0xd00 fs/read_write.c:584
ksys_write+0x14a/0x260 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:646
x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f600015e90e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f600100ada8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f600100b6c0 RCX: 00007f600015e90e
RDX: 0000000004000000 RSI: 00007f5ff67f8000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f600100aee0 R14: 00007f600100aea0 R15: 00007f5ff67f8000
The buggy address belongs to the variable:
.str.111+0x50/0x60
The buggy address belongs to the physical page:
page:ffffea000017a900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ea4
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea000017a908 ffffea000017a908 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)
Memory state around the buggy address:
ffffffff85ea4d00: 01 f9 f9 f9 00 00 00 00 00 00 00 f9 f9 f9 f9 f9
ffffffff85ea4d80: 00 f9 f9 f9 00 f9 f9 f9 00 00 00 00 00 00 00 01
>ffffffff85ea4e00: f9 f9 f9 f9 00 00 00 00 00 00 03 f9 f9 f9 f9 f9
^
ffffffff85ea4e80: 00 00 00 00 00 00 07 f9 f9 f9 f9 f9 00 00 00 00
ffffffff85ea4f00: 00 00 00 00 07 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 65093 is out of range for type 'const int[34]'
CPU: 0 PID: 1352 Comm: syz.5.255 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x24 lib/dump_stack.c:113
ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x1f14/0x29b0 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766
handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline]
RIP: 0010:__unwind_start+0x329/0x3a0 arch/x86/kernel/unwind_frame.c:414
Code: 38 74 08 48 89 df e8 36 40 81 00 48 8b 45 d0 48 39 03 73 44 4c 89 f7 e8 15 ef ff ff 48 b8 00 00 00 00 00 fc ff df 48 8b 4d b0 <0f> b6 04 01 84 c0 75 0f 41 83 3e 00 4c 89 fe 0f 85 16 ff ff ff eb
RSP: 0018:ffffc90007326e68 EFLAGS: 00000296
RAX: dffffc0000000000 RBX: ffffc90007326f00 RCX: 1ffff92000e64dd9
RDX: ffffc90007326f50 RSI: 1ffff92000e64dda RDI: ffffc90007326ef0
RBP: ffffc90007326eb8 R08: ffffc90007326f01 R09: ffffc90007326ec8
R10: dffffc0000000000 R11: fffff52000e64de5 R12: 1ffff92000e64ddb
R13: 1ffff92000e64dda R14: ffffc90007326ec8 R15: ffffc90007326ed8
unwind_start arch/x86/include/asm/unwind.h:64 [inline]
arch_stack_walk+0xe4/0x150 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122
save_stack+0x121/0x230 mm/page_owner.c:147
__set_page_owner+0x1f/0x60 mm/page_owner.c:210
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672
prep_new_page+0x1c/0x110 mm/page_alloc.c:2679
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930
__folio_alloc+0x12/0x40 mm/page_alloc.c:5963
__folio_alloc_node include/linux/gfp.h:245 [inline]
folio_alloc include/linux/gfp.h:274 [inline]
shmem_alloc_folio mm/shmem.c:1597 [inline]
shmem_alloc_and_acct_folio+0x6dd/0x8c0 mm/shmem.c:1622
shmem_get_folio_gfp+0xd6d/0x20f0 mm/shmem.c:1951
shmem_get_folio mm/shmem.c:2082 [inline]
shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567
generic_perform_write+0x32d/0x740 mm/filemap.c:3915
__generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014
generic_file_write_iter+0xae/0x310 mm/filemap.c:4043
call_write_iter include/linux/fs.h:2282 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x5ef/0xd00 fs/read_write.c:584
ksys_write+0x14a/0x260 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:646
x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f600015e90e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f600100ada8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f600100b6c0 RCX: 00007f600015e90e
RDX: 0000000004000000 RSI: 00007f5ff67f8000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f600100aee0 R14: 00007f600100aea0 R15: 00007f5ff67f8000
================================================================================
aiptek 2-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 38 74 08 48 cmp %dh,0x48(%rax,%rcx,1)
4: 89 df mov %ebx,%edi
6: e8 36 40 81 00 call 0x814041
b: 48 8b 45 d0 mov -0x30(%rbp),%rax
f: 48 39 03 cmp %rax,(%rbx)
12: 73 44 jae 0x58
14: 4c 89 f7 mov %r14,%rdi
17: e8 15 ef ff ff call 0xffffef31
1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
23: fc ff df
26: 48 8b 4d b0 mov -0x50(%rbp),%rcx
* 2a: 0f b6 04 01 movzbl (%rcx,%rax,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 75 0f jne 0x41
32: 41 83 3e 00 cmpl $0x0,(%r14)
36: 4c 89 fe mov %r15,%rsi
39: 0f 85 16 ff ff ff jne 0xffffff55
3f: eb .byte 0xeb