------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 1796 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 95 Comm: acpid Not tainted syzkaller #0 c4896d72d1fb51cdc6291d08376a37fd8080d7bb
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1757 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838
handle_softirqs+0x1aa/0x620 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
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:poll_get_entry fs/select.c:160 [inline]
RIP: 0010:__pollwait+0x3f/0x4e0 fs/select.c:223
Code: 48 89 d3 48 89 75 b8 48 89 7d c0 49 be 00 00 00 00 00 fc ff df e8 c1 be 96 ff 4c 8d 63 10 4d 89 e7 49 c1 ef 03 43 80 3c 37 00 <74> 08 4c 89 e7 e8 17 83 ef ff 4c 89 65 c8 4c 8b 73 10 48 89 5d d0
RSP: 0018:ffffc900007ff5a8 EFLAGS: 00000246
RAX: ffffffff81f0b2ff RBX: ffffc900007ff820 RCX: ffff88810c39b900
RDX: 0000000000000000 RSI: ffff888115f44010 RDI: ffff8881215b8780
RBP: ffffc900007ff5f8 R08: ffff888101a77403 R09: 1ffff1102034ee80
R10: 0000000000000000 R11: ffffffff81f0b2d0 R12: ffffc900007ff830
R13: ffffffff81f0b2d0 R14: dffffc0000000000 R15: 1ffff920000fff06
poll_wait include/linux/poll.h:45 [inline]
evdev_poll+0xb4/0x1f0 drivers/input/evdev.c:614
vfs_poll include/linux/poll.h:92 [inline]
do_select+0xe7f/0x16f0 fs/select.c:535
core_sys_select+0x549/0x7f0 fs/select.c:678
do_pselect fs/select.c:760 [inline]
__do_sys_pselect6 fs/select.c:803 [inline]
__se_sys_pselect6+0x268/0x320 fs/select.c:794
__x64_sys_pselect6+0xe9/0x110 fs/select.c:794
x64_sys_call+0x2980/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:271
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f37fc24e407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffe88183620 EFLAGS: 00000202 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 00007f37fc1c4740 RCX: 00007f37fc24e407
RDX: 0000000000000000 RSI: 00007ffe88183730 RDI: 000000000000000b
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000560590cc41e4
R13: 0000000000000000 R14: 0000000000000007 R15: 000000000000000a
---[ end trace ]---
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 1797 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 95 Comm: acpid Not tainted syzkaller #0 c4896d72d1fb51cdc6291d08376a37fd8080d7bb
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1757 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838
handle_softirqs+0x1aa/0x620 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
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:poll_get_entry fs/select.c:160 [inline]
RIP: 0010:__pollwait+0x3f/0x4e0 fs/select.c:223
Code: 48 89 d3 48 89 75 b8 48 89 7d c0 49 be 00 00 00 00 00 fc ff df e8 c1 be 96 ff 4c 8d 63 10 4d 89 e7 49 c1 ef 03 43 80 3c 37 00 <74> 08 4c 89 e7 e8 17 83 ef ff 4c 89 65 c8 4c 8b 73 10 48 89 5d d0
RSP: 0018:ffffc900007ff5a8 EFLAGS: 00000246
RAX: ffffffff81f0b2ff RBX: ffffc900007ff820 RCX: ffff88810c39b900
RDX: 0000000000000000 RSI: ffff888115f44010 RDI: ffff8881215b8780
RBP: ffffc900007ff5f8 R08: ffff888101a77403 R09: 1ffff1102034ee80
R10: 0000000000000000 R11: ffffffff81f0b2d0 R12: ffffc900007ff830
R13: ffffffff81f0b2d0 R14: dffffc0000000000 R15: 1ffff920000fff06
poll_wait include/linux/poll.h:45 [inline]
evdev_poll+0xb4/0x1f0 drivers/input/evdev.c:614
vfs_poll include/linux/poll.h:92 [inline]
do_select+0xe7f/0x16f0 fs/select.c:535
core_sys_select+0x549/0x7f0 fs/select.c:678
do_pselect fs/select.c:760 [inline]
__do_sys_pselect6 fs/select.c:803 [inline]
__se_sys_pselect6+0x268/0x320 fs/select.c:794
__x64_sys_pselect6+0xe9/0x110 fs/select.c:794
x64_sys_call+0x2980/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:271
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f37fc24e407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffe88183620 EFLAGS: 00000202 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 00007f37fc1c4740 RCX: 00007f37fc24e407
RDX: 0000000000000000 RSI: 00007ffe88183730 RDI: 000000000000000b
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000560590cc41e4
R13: 0000000000000000 R14: 0000000000000007 R15: 000000000000000a
---[ end trace ]---
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f5a/0x2a00 drivers/input/tablet/aiptek.c:763
Read of size 4 at addr ffffffff86706414 by task acpid/95
CPU: 1 UID: 0 PID: 95 Comm: acpid Not tainted syzkaller #0 c4896d72d1fb51cdc6291d08376a37fd8080d7bb
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x1f5a/0x2a00 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1757 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838
handle_softirqs+0x1aa/0x620 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
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:poll_get_entry fs/select.c:160 [inline]
RIP: 0010:__pollwait+0x3f/0x4e0 fs/select.c:223
Code: 48 89 d3 48 89 75 b8 48 89 7d c0 49 be 00 00 00 00 00 fc ff df e8 c1 be 96 ff 4c 8d 63 10 4d 89 e7 49 c1 ef 03 43 80 3c 37 00 <74> 08 4c 89 e7 e8 17 83 ef ff 4c 89 65 c8 4c 8b 73 10 48 89 5d d0
RSP: 0018:ffffc900007ff5a8 EFLAGS: 00000246
RAX: ffffffff81f0b2ff RBX: ffffc900007ff820 RCX: ffff88810c39b900
RDX: 0000000000000000 RSI: ffff888115f44010 RDI: ffff8881215b8780
RBP: ffffc900007ff5f8 R08: ffff888101a77403 R09: 1ffff1102034ee80
R10: 0000000000000000 R11: ffffffff81f0b2d0 R12: ffffc900007ff830
R13: ffffffff81f0b2d0 R14: dffffc0000000000 R15: 1ffff920000fff06
poll_wait include/linux/poll.h:45 [inline]
evdev_poll+0xb4/0x1f0 drivers/input/evdev.c:614
vfs_poll include/linux/poll.h:92 [inline]
do_select+0xe7f/0x16f0 fs/select.c:535
core_sys_select+0x549/0x7f0 fs/select.c:678
do_pselect fs/select.c:760 [inline]
__do_sys_pselect6 fs/select.c:803 [inline]
__se_sys_pselect6+0x268/0x320 fs/select.c:794
__x64_sys_pselect6+0xe9/0x110 fs/select.c:794
x64_sys_call+0x2980/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:271
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f37fc24e407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffe88183620 EFLAGS: 00000202 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 00007f37fc1c4740 RCX: 00007f37fc24e407
RDX: 0000000000000000 RSI: 00007ffe88183730 RDI: 000000000000000b
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000560590cc41e4
R13: 0000000000000000 R14: 0000000000000007 R15: 000000000000000a
The buggy address belongs to the variable:
.str.8+0x14/0x40
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6706
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c188 ffffea000019c188 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:
ffffffff86706300: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 03
ffffffff86706380: f9 f9 f9 f9 00 00 03 f9 f9 f9 f9 f9 00 03 f9 f9
>ffffffff86706400: 00 00 05 f9 f9 f9 f9 f9 00 00 00 03 f9 f9 f9 f9
^
ffffffff86706480: 00 00 f9 f9 00 00 00 f9 f9 f9 f9 f9 03 f9 f9 f9
ffffffff86706500: 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
==================================================================
aiptek 5-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 48 89 d3 mov %rdx,%rbx
3: 48 89 75 b8 mov %rsi,-0x48(%rbp)
7: 48 89 7d c0 mov %rdi,-0x40(%rbp)
b: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
12: fc ff df
15: e8 c1 be 96 ff call 0xff96bedb
1a: 4c 8d 63 10 lea 0x10(%rbx),%r12
1e: 4d 89 e7 mov %r12,%r15
21: 49 c1 ef 03 shr $0x3,%r15
25: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1)
* 2a: 74 08 je 0x34 <-- trapping instruction
2c: 4c 89 e7 mov %r12,%rdi
2f: e8 17 83 ef ff call 0xffef834b
34: 4c 89 65 c8 mov %r12,-0x38(%rbp)
38: 4c 8b 73 10 mov 0x10(%rbx),%r14
3c: 48 89 5d d0 mov %rbx,-0x30(%rbp)