================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 4607 is out of range for type 'const int[34]'
CPU: 0 PID: 2568 Comm: syz.1.624 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:next_uptodate_page+0xa/0xa80 mm/filemap.c:3333
Code: d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 9f f3 1c 03 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 <41> 54 53 48 83 ec 58 48 89 4d 80 48 89 d3 48 89 75 a0 49 89 fe 49
RSP: 0018:ffffc900081e7678 EFLAGS: 00000282
RAX: ffffea0004cb1b00 RBX: ffffc900081e7a40 RCX: 000000000000047f
RDX: ffffc900081e7760 RSI: ffff88811a3e45d0 RDI: ffffea0004cb1b00
RBP: ffffc900081e7690 R08: ffff88811994cf00 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000002 R12: dffffc0000000000
R13: 000000000000047f R14: ffffc900081e7760 R15: 1ffff9200103cf48
first_map_page mm/filemap.c:3377 [inline]
filemap_map_pages+0x1e4/0x1630 mm/filemap.c:3405
do_fault_around mm/memory.c:4540 [inline]
do_read_fault mm/memory.c:4561 [inline]
do_fault mm/memory.c:4709 [inline]
handle_pte_fault+0x1b77/0x2770 mm/memory.c:4923
__handle_mm_fault mm/memory.c:-1 [inline]
do_handle_mm_fault+0x1b3b/0x1e30 mm/memory.c:5345
handle_mm_fault include/linux/mm.h:1847 [inline]
faultin_page mm/gup.c:976 [inline]
__get_user_pages+0x80e/0x10c0 mm/gup.c:1197
populate_vma_page_range mm/gup.c:1529 [inline]
__mm_populate+0x324/0x470 mm/gup.c:1638
mm_populate include/linux/mm.h:2704 [inline]
vm_mmap_pgoff+0x245/0x410 mm/util.c:560
ksys_mmap_pgoff+0xf6/0x1d0 mm/mmap.c:1647
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd5824d8e59
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:00007fd580f33028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fd582751fa0 RCX: 00007fd5824d8e59
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fd58256ee6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd582752038 R14: 00007fd582751fa0 R15: 00007ffca91489d8
================================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 4608 is out of range for type 'const int[34]'
CPU: 0 PID: 2568 Comm: syz.1.624 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:next_uptodate_page+0xa/0xa80 mm/filemap.c:3333
Code: d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 9f f3 1c 03 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 <41> 54 53 48 83 ec 58 48 89 4d 80 48 89 d3 48 89 75 a0 49 89 fe 49
RSP: 0018:ffffc900081e7678 EFLAGS: 00000282
RAX: ffffea0004cb1b00 RBX: ffffc900081e7a40 RCX: 000000000000047f
RDX: ffffc900081e7760 RSI: ffff88811a3e45d0 RDI: ffffea0004cb1b00
RBP: ffffc900081e7690 R08: ffff88811994cf00 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000002 R12: dffffc0000000000
R13: 000000000000047f R14: ffffc900081e7760 R15: 1ffff9200103cf48
first_map_page mm/filemap.c:3377 [inline]
filemap_map_pages+0x1e4/0x1630 mm/filemap.c:3405
do_fault_around mm/memory.c:4540 [inline]
do_read_fault mm/memory.c:4561 [inline]
do_fault mm/memory.c:4709 [inline]
handle_pte_fault+0x1b77/0x2770 mm/memory.c:4923
__handle_mm_fault mm/memory.c:-1 [inline]
do_handle_mm_fault+0x1b3b/0x1e30 mm/memory.c:5345
handle_mm_fault include/linux/mm.h:1847 [inline]
faultin_page mm/gup.c:976 [inline]
__get_user_pages+0x80e/0x10c0 mm/gup.c:1197
populate_vma_page_range mm/gup.c:1529 [inline]
__mm_populate+0x324/0x470 mm/gup.c:1638
mm_populate include/linux/mm.h:2704 [inline]
vm_mmap_pgoff+0x245/0x410 mm/util.c:560
ksys_mmap_pgoff+0xf6/0x1d0 mm/mmap.c:1647
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd5824d8e59
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:00007fd580f33028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fd582751fa0 RCX: 00007fd5824d8e59
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fd58256ee6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd582752038 R14: 00007fd582751fa0 R15: 00007ffca91489d8
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
Read of size 4 at addr ffffffff857f20a0 by task syz.1.624/2568
CPU: 0 PID: 2568 Comm: syz.1.624 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x10f/0x150 mm/kasan/report.c:444
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:next_uptodate_page+0xa/0xa80 mm/filemap.c:3333
Code: d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 9f f3 1c 03 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 <41> 54 53 48 83 ec 58 48 89 4d 80 48 89 d3 48 89 75 a0 49 89 fe 49
RSP: 0018:ffffc900081e7678 EFLAGS: 00000282
RAX: ffffea0004cb1b00 RBX: ffffc900081e7a40 RCX: 000000000000047f
RDX: ffffc900081e7760 RSI: ffff88811a3e45d0 RDI: ffffea0004cb1b00
RBP: ffffc900081e7690 R08: ffff88811994cf00 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000002 R12: dffffc0000000000
R13: 000000000000047f R14: ffffc900081e7760 R15: 1ffff9200103cf48
first_map_page mm/filemap.c:3377 [inline]
filemap_map_pages+0x1e4/0x1630 mm/filemap.c:3405
do_fault_around mm/memory.c:4540 [inline]
do_read_fault mm/memory.c:4561 [inline]
do_fault mm/memory.c:4709 [inline]
handle_pte_fault+0x1b77/0x2770 mm/memory.c:4923
__handle_mm_fault mm/memory.c:-1 [inline]
do_handle_mm_fault+0x1b3b/0x1e30 mm/memory.c:5345
handle_mm_fault include/linux/mm.h:1847 [inline]
faultin_page mm/gup.c:976 [inline]
__get_user_pages+0x80e/0x10c0 mm/gup.c:1197
populate_vma_page_range mm/gup.c:1529 [inline]
__mm_populate+0x324/0x470 mm/gup.c:1638
mm_populate include/linux/mm.h:2704 [inline]
vm_mmap_pgoff+0x245/0x410 mm/util.c:560
ksys_mmap_pgoff+0xf6/0x1d0 mm/mmap.c:1647
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd5824d8e59
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:00007fd580f33028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fd582751fa0 RCX: 00007fd5824d8e59
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fd58256ee6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd582752038 R14: 00007fd582751fa0 R15: 00007ffca91489d8
The buggy address belongs to the variable:
.str.8+0x20/0x60
Memory state around the buggy address:
ffffffff857f1f80: 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 01
ffffffff857f2000: f9 f9 f9 f9 00 00 00 00 01 f9 f9 f9 f9 f9 f9 f9
>ffffffff857f2080: 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 00 05 f9 f9
^
ffffffff857f2100: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00
ffffffff857f2180: 00 00 00 00 00 01 f9 f9 04 f9 f9 f9 00 00 00 00
==================================================================
aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: d8 5b 41 fcomps 0x41(%rbx)
3: 5c pop %rsp
4: 41 5d pop %r13
6: 41 5e pop %r14
8: 41 5f pop %r15
a: 5d pop %rbp
b: c3 ret
c: e8 9f f3 1c 03 call 0x31cf3b0
11: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
18: 00 00 00
1b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
20: 55 push %rbp
21: 48 89 e5 mov %rsp,%rbp
24: 41 57 push %r15
26: 41 56 push %r14
28: 41 55 push %r13
* 2a: 41 54 push %r12 <-- trapping instruction
2c: 53 push %rbx
2d: 48 83 ec 58 sub $0x58,%rsp
31: 48 89 4d 80 mov %rcx,-0x80(%rbp)
35: 48 89 d3 mov %rdx,%rbx
38: 48 89 75 a0 mov %rsi,-0x60(%rbp)
3c: 49 89 fe mov %rdi,%r14
3f: 49 rex.WB