================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 1798 is out of range for type 'const int[34]'
CPU: 0 PID: 15537 Comm: syz.7.3119 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
ubsan_epilogue+0xa/0x30 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x1e87/0x28f0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1673
dummy_timer+0xa21/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832
handle_softirqs+0x291/0x910 kernel/softirq.c:596
__do_softirq kernel/softirq.c:630 [inline]
invoke_softirq kernel/softirq.c:470 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679
irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:84 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x92/0x290 mm/kasan/generic.c:189
Code: 49 83 ff 10 7f 29 4d 85 ff 0f 84 38 01 00 00 4c 89 cb 48 f7 d3 4c 01 f3 41 80 3b 00 0f 85 86 01 00 00 49 ff c3 48 ff c3 75 ee 18 01 00 00 44 89 dd 83 e5 07 0f 84 b5 00 00 00 41 80 3b 00 4d
RSP: 0018:ffffc9000c9bf810 EFLAGS: 00000256
RAX: ffffffff81acbc01 RBX: 0000000000000000 RCX: ffffffff81acbcf2
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000102cd34
RBP: ffffc9000c9bf9d0 R08: ffffea000102cd37 R09: 1ffffd40002059a6
R10: dffffc0000000000 R11: fffff940002059a7 R12: dffffc0000000001
R13: 0000000000000566 R14: 1ffffd40002059a6 R15: 0000000000000001
instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
atomic_dec_and_test include/linux/atomic/atomic-instrumented.h:575 [inline]
page_ref_dec_and_test include/linux/page_ref.h:210 [inline]
put_page_testzero include/linux/mm.h:781 [inline]
folio_put_testzero include/linux/mm.h:786 [inline]
folio_put include/linux/mm.h:1181 [inline]
filemap_map_pages+0xe22/0x11e0 mm/filemap.c:3529
do_fault_around mm/memory.c:4598 [inline]
do_read_fault mm/memory.c:4624 [inline]
do_fault mm/memory.c:4758 [inline]
handle_pte_fault mm/memory.c:5029 [inline]
__handle_mm_fault mm/memory.c:5171 [inline]
handle_mm_fault+0x25e5/0x3d40 mm/memory.c:5292
faultin_page mm/gup.c:1026 [inline]
__get_user_pages+0x40d/0xec0 mm/gup.c:1250
populate_vma_page_range+0x214/0x2b0 mm/gup.c:1607
__mm_populate+0x25c/0x380 mm/gup.c:1721
mm_populate include/linux/mm.h:2891 [inline]
vm_mmap_pgoff+0x212/0x2d0 mm/util.c:525
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:0x7f263f39ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2640297028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f263f615fa0 RCX: 00007f263f39ce59
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007f263f432e6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f263f616038 R14: 00007f263f615fa0 R15: 00007ffc53aedc18
================================================================================
----------------
Code disassembly (best guess):
0: 49 83 ff 10 cmp $0x10,%r15
4: 7f 29 jg 0x2f
6: 4d 85 ff test %r15,%r15
9: 0f 84 38 01 00 00 je 0x147
f: 4c 89 cb mov %r9,%rbx
12: 48 f7 d3 not %rbx
15: 4c 01 f3 add %r14,%rbx
18: 41 80 3b 00 cmpb $0x0,(%r11)
1c: 0f 85 86 01 00 00 jne 0x1a8
22: 49 ff c3 inc %r11
25: 48 ff c3 inc %rbx
28: 75 ee jne 0x18
* 2a: e9 18 01 00 00 jmp 0x147 <-- trapping instruction
2f: 44 89 dd mov %r11d,%ebp
32: 83 e5 07 and $0x7,%ebp
35: 0f 84 b5 00 00 00 je 0xf0
3b: 41 80 3b 00 cmpb $0x0,(%r11)
3f: 4d rex.WRB