------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 6691 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 96 Comm: acpid Not tainted syzkaller #0 ff996278633adec6fd25d1632b496761701c4fe9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
dump_stack+0x19/0x20 lib/dump_stack.c:129
ubsan_epilogue+0xe/0x40 lib/ubsan.c:231
__ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:429
aiptek_irq+0x208d/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:syscall_enter_from_user_mode_work include/linux/entry-common.h:165 [inline]
RIP: 0010:syscall_enter_from_user_mode include/linux/entry-common.h:198 [inline]
RIP: 0010:do_syscall_64+0x23/0xf0 arch/x86/entry/common.c:74
Code: 90 90 90 90 90 90 90 66 0f 1f 00 55 48 89 e5 41 56 53 48 83 e4 f0 48 89 e3 49 89 fe 0f 1f 44 00 00 fb 65 48 8b 05 0d 55 5a 7a <48> 8b 50 08 f6 c2 3f 74 0e 48 63 f6 4c 89 f7 e8 39 f9 ca fb 48 89
RSP: 0018:ffffc90000e2ff30 EFLAGS: 00000286
RAX: ffff88810cb53b40 RBX: ffffc90000e2ff30 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 000000000000000e RDI: ffffc90000e2ff58
RBP: ffffc90000e2ff48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90000e2ff58 R15: 0000000000000000
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f9372e87f60
Code: 48 85 f6 74 15 48 b9 00 00 00 80 01 00 00 00 48 8b 06 48 85 c8 75 33 48 89 f0 48 89 c6 41 ba 08 00 00 00 b8 0e 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 83 c4 10 c3
RSP: 002b:00007ffdba82d698 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: ffffffffffffffda RBX: 00007ffdba82d7b0 RCX: 00007f9372e87f60
RDX: 0000000000000000 RSI: 000055bbfb9cda60 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffdba82d6cc
R13: 000055bbfb9c74e8 R14: 000055bbfb9c74dd R15: 000000000000000a
---[ end trace ]---
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x20ab/0x2a00 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff86712a4c by task acpid/96
CPU: 0 UID: 0 PID: 96 Comm: acpid Not tainted syzkaller #0 ff996278633adec6fd25d1632b496761701c4fe9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
print_address_description+0x71/0x210 mm/kasan/report.c:377
print_report+0x4a/0x70 mm/kasan/report.c:481
kasan_report+0x162/0x1a0 mm/kasan/report.c:594
__asan_report_load4_noabort+0x18/0x20 mm/kasan/report_generic.c:380
aiptek_irq+0x20ab/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:syscall_enter_from_user_mode_work include/linux/entry-common.h:165 [inline]
RIP: 0010:syscall_enter_from_user_mode include/linux/entry-common.h:198 [inline]
RIP: 0010:do_syscall_64+0x23/0xf0 arch/x86/entry/common.c:74
Code: 90 90 90 90 90 90 90 66 0f 1f 00 55 48 89 e5 41 56 53 48 83 e4 f0 48 89 e3 49 89 fe 0f 1f 44 00 00 fb 65 48 8b 05 0d 55 5a 7a <48> 8b 50 08 f6 c2 3f 74 0e 48 63 f6 4c 89 f7 e8 39 f9 ca fb 48 89
RSP: 0018:ffffc90000e2ff30 EFLAGS: 00000286
RAX: ffff88810cb53b40 RBX: ffffc90000e2ff30 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 000000000000000e RDI: ffffc90000e2ff58
RBP: ffffc90000e2ff48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90000e2ff58 R15: 0000000000000000
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f9372e87f60
Code: 48 85 f6 74 15 48 b9 00 00 00 80 01 00 00 00 48 8b 06 48 85 c8 75 33 48 89 f0 48 89 c6 41 ba 08 00 00 00 b8 0e 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 83 c4 10 c3
RSP: 002b:00007ffdba82d698 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: ffffffffffffffda RBX: 00007ffdba82d7b0 RCX: 00007f9372e87f60
RDX: 0000000000000000 RSI: 000055bbfb9cda60 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffdba82d6cc
R13: 000055bbfb9c74e8 R14: 000055bbfb9c74dd R15: 000000000000000a
The buggy address belongs to the variable:
.str.22+0xc/0x20
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6712
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c488 ffffea000019c488 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:
ffffffff86712900: f9 f9 f9 f9 00 f9 f9 f9 00 00 00 00 02 f9 f9 f9
ffffffff86712980: f9 f9 f9 f9 07 f9 f9 f9 00 f9 f9 f9 00 05 f9 f9
>ffffffff86712a00: 00 00 07 f9 f9 f9 f9 f9 05 f9 f9 f9 07 f9 f9 f9
^
ffffffff86712a80: 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 f9 f9 f9 f9
ffffffff86712b00: 06 f9 f9 f9 00 f9 f9 f9 00 f9 f9 f9 07 f9 f9 f9
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 6692 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 96 Comm: acpid Tainted: G B syzkaller #0 ff996278633adec6fd25d1632b496761701c4fe9
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
dump_stack+0x19/0x20 lib/dump_stack.c:129
ubsan_epilogue+0xe/0x40 lib/ubsan.c:231
__ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:429
aiptek_irq+0x1f3c/0x2a00 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:syscall_enter_from_user_mode_work include/linux/entry-common.h:165 [inline]
RIP: 0010:syscall_enter_from_user_mode include/linux/entry-common.h:198 [inline]
RIP: 0010:do_syscall_64+0x23/0xf0 arch/x86/entry/common.c:74
Code: 90 90 90 90 90 90 90 66 0f 1f 00 55 48 89 e5 41 56 53 48 83 e4 f0 48 89 e3 49 89 fe 0f 1f 44 00 00 fb 65 48 8b 05 0d 55 5a 7a <48> 8b 50 08 f6 c2 3f 74 0e 48 63 f6 4c 89 f7 e8 39 f9 ca fb 48 89
RSP: 0018:ffffc90000e2ff30 EFLAGS: 00000286
RAX: ffff88810cb53b40 RBX: ffffc90000e2ff30 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 000000000000000e RDI: ffffc90000e2ff58
RBP: ffffc90000e2ff48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90000e2ff58 R15: 0000000000000000
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f9372e87f60
Code: 48 85 f6 74 15 48 b9 00 00 00 80 01 00 00 00 48 8b 06 48 85 c8 75 33 48 89 f0 48 89 c6 41 ba 08 00 00 00 b8 0e 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 83 c4 10 c3
RSP: 002b:00007ffdba82d698 EFLAGS: 00000246 ORIG_RAX: 000000000000000e
RAX: ffffffffffffffda RBX: 00007ffdba82d7b0 RCX: 00007f9372e87f60
RDX: 0000000000000000 RSI: 000055bbfb9cda60 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffdba82d6cc
R13: 000055bbfb9c74e8 R14: 000055bbfb9c74dd R15: 000000000000000a
---[ end trace ]---
aiptek 5-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 90 nop
1: 90 nop
2: 90 nop
3: 90 nop
4: 90 nop
5: 90 nop
6: 90 nop
7: 66 0f 1f 00 nopw (%rax)
b: 55 push %rbp
c: 48 89 e5 mov %rsp,%rbp
f: 41 56 push %r14
11: 53 push %rbx
12: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
16: 48 89 e3 mov %rsp,%rbx
19: 49 89 fe mov %rdi,%r14
1c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
21: fb sti
22: 65 48 8b 05 0d 55 5a mov %gs:0x7a5a550d(%rip),%rax # 0x7a5a5537
29: 7a
* 2a: 48 8b 50 08 mov 0x8(%rax),%rdx <-- trapping instruction
2e: f6 c2 3f test $0x3f,%dl
31: 74 0e je 0x41
33: 48 63 f6 movslq %esi,%rsi
36: 4c 89 f7 mov %r14,%rdi
39: e8 39 f9 ca fb call 0xfbcaf977
3e: 48 rex.W
3f: 89 .byte 0x89