================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 54023 is out of range for type 'const int[34]'
CPU: 1 PID: 392 Comm: udevd Not tainted 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:check_kcov_mode kernel/kcov.c:193 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x36/0x60 kernel/kcov.c:216
Code: 70 07 91 7e 65 8b 15 71 07 91 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 6c 0b 00 00 00 74 2c 8b 91 48 0b 00 00 <83> fa 02 75 21 48 8b 91 50 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 4c
RSP: 0018:ffffc90010e47a50 EFLAGS: 00000246
RAX: ffffffff8266c2ed RBX: 0000000000000003 RCX: ffff888117e18000
RDX: 0000000000000000 RSI: 00007ffd0acff410 RDI: 00007fffffffeffd
RBP: ffffc90010e47a50 R08: ffff888117e18000 R09: 0000000000000005
R10: 0000000000000006 R11: 0000000000000000 R12: 1ffff920021c8faf
R13: 00007ffd0acff410 R14: 00007fffffffeffd R15: ffffc90010e47d00
instrument_copy_to_user include/linux/instrumented.h:119 [inline]
copyout lib/iov_iter.c:169 [inline]
_copy_to_iter+0x1dd/0xe60 lib/iov_iter.c:528
copy_to_iter include/linux/uio.h:179 [inline]
seq_read_iter+0xba6/0xd80 fs/seq_file.c:281
kernfs_fop_read_iter+0x14d/0x4e0 fs/kernfs/file.c:297
call_read_iter include/linux/fs.h:2276 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x46e/0x930 fs/read_write.c:470
ksys_read+0x14a/0x260 fs/read_write.c:613
__do_sys_read fs/read_write.c:623 [inline]
__se_sys_read fs/read_write.c:621 [inline]
__x64_sys_read+0x7b/0x90 fs/read_write.c:621
x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f35012a7407
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:00007ffd0acfef30 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f3501a47880 RCX: 00007f35012a7407
RDX: 0000000000001000 RSI: 00007ffd0acff410 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00005638d3bd5420
R13: 00007ffd0acff010 R14: 00007ffd0acff410 R15: 00005638a5febbcc
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e9a11c by task udevd/392
CPU: 1 PID: 392 Comm: udevd Not tainted 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:check_kcov_mode kernel/kcov.c:193 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x36/0x60 kernel/kcov.c:216
Code: 70 07 91 7e 65 8b 15 71 07 91 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 6c 0b 00 00 00 74 2c 8b 91 48 0b 00 00 <83> fa 02 75 21 48 8b 91 50 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 4c
RSP: 0018:ffffc90010e47a50 EFLAGS: 00000246
RAX: ffffffff8266c2ed RBX: 0000000000000003 RCX: ffff888117e18000
RDX: 0000000000000000 RSI: 00007ffd0acff410 RDI: 00007fffffffeffd
RBP: ffffc90010e47a50 R08: ffff888117e18000 R09: 0000000000000005
R10: 0000000000000006 R11: 0000000000000000 R12: 1ffff920021c8faf
R13: 00007ffd0acff410 R14: 00007fffffffeffd R15: ffffc90010e47d00
instrument_copy_to_user include/linux/instrumented.h:119 [inline]
copyout lib/iov_iter.c:169 [inline]
_copy_to_iter+0x1dd/0xe60 lib/iov_iter.c:528
copy_to_iter include/linux/uio.h:179 [inline]
seq_read_iter+0xba6/0xd80 fs/seq_file.c:281
kernfs_fop_read_iter+0x14d/0x4e0 fs/kernfs/file.c:297
call_read_iter include/linux/fs.h:2276 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x46e/0x930 fs/read_write.c:470
ksys_read+0x14a/0x260 fs/read_write.c:613
__do_sys_read fs/read_write.c:623 [inline]
__se_sys_read fs/read_write.c:621 [inline]
__x64_sys_read+0x7b/0x90 fs/read_write.c:621
x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f35012a7407
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:00007ffd0acfef30 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f3501a47880 RCX: 00007f35012a7407
RDX: 0000000000001000 RSI: 00007ffd0acff410 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00005638d3bd5420
R13: 00007ffd0acff010 R14: 00007ffd0acff410 R15: 00005638a5febbcc
The buggy address belongs to the variable:
.str.36+0x7c/0x80
The buggy address belongs to the physical page:
page:ffffea000017a680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e9a
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea000017a688 ffffea000017a688 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:
ffffffff85e9a000: 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 00 01 f9 f9
ffffffff85e9a080: 05 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 02 f9
>ffffffff85e9a100: f9 f9 f9 f9 00 01 f9 f9 00 06 f9 f9 00 00 00 00
^
ffffffff85e9a180: 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9 00 00 00 00
ffffffff85e9a200: 00 00 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 54024 is out of range for type 'const int[34]'
CPU: 1 PID: 392 Comm: udevd Tainted: G B 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:check_kcov_mode kernel/kcov.c:193 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x36/0x60 kernel/kcov.c:216
Code: 70 07 91 7e 65 8b 15 71 07 91 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 6c 0b 00 00 00 74 2c 8b 91 48 0b 00 00 <83> fa 02 75 21 48 8b 91 50 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 4c
RSP: 0018:ffffc90010e47a50 EFLAGS: 00000246
RAX: ffffffff8266c2ed RBX: 0000000000000003 RCX: ffff888117e18000
RDX: 0000000000000000 RSI: 00007ffd0acff410 RDI: 00007fffffffeffd
RBP: ffffc90010e47a50 R08: ffff888117e18000 R09: 0000000000000005
R10: 0000000000000006 R11: 0000000000000000 R12: 1ffff920021c8faf
R13: 00007ffd0acff410 R14: 00007fffffffeffd R15: ffffc90010e47d00
instrument_copy_to_user include/linux/instrumented.h:119 [inline]
copyout lib/iov_iter.c:169 [inline]
_copy_to_iter+0x1dd/0xe60 lib/iov_iter.c:528
copy_to_iter include/linux/uio.h:179 [inline]
seq_read_iter+0xba6/0xd80 fs/seq_file.c:281
kernfs_fop_read_iter+0x14d/0x4e0 fs/kernfs/file.c:297
call_read_iter include/linux/fs.h:2276 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x46e/0x930 fs/read_write.c:470
ksys_read+0x14a/0x260 fs/read_write.c:613
__do_sys_read fs/read_write.c:623 [inline]
__se_sys_read fs/read_write.c:621 [inline]
__x64_sys_read+0x7b/0x90 fs/read_write.c:621
x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f35012a7407
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:00007ffd0acfef30 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f3501a47880 RCX: 00007f35012a7407
RDX: 0000000000001000 RSI: 00007ffd0acff410 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00005638d3bd5420
R13: 00007ffd0acff010 R14: 00007ffd0acff410 R15: 00005638a5febbcc
================================================================================
aiptek 10-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 70 07 jo 0x9
2: 91 xchg %eax,%ecx
3: 7e 65 jle 0x6a
5: 8b 15 71 07 91 7e mov 0x7e910771(%rip),%edx # 0x7e91077c
b: 81 e2 00 01 ff 00 and $0xff0100,%edx
11: 74 11 je 0x24
13: 81 fa 00 01 00 00 cmp $0x100,%edx
19: 75 35 jne 0x50
1b: 83 b9 6c 0b 00 00 00 cmpl $0x0,0xb6c(%rcx)
22: 74 2c je 0x50
24: 8b 91 48 0b 00 00 mov 0xb48(%rcx),%edx
* 2a: 83 fa 02 cmp $0x2,%edx <-- trapping instruction
2d: 75 21 jne 0x50
2f: 48 8b 91 50 0b 00 00 mov 0xb50(%rcx),%rdx
36: 48 8b 32 mov (%rdx),%rsi
39: 48 8d 7e 01 lea 0x1(%rsi),%rdi
3d: 8b .byte 0x8b
3e: 89 .byte 0x89
3f: 4c rex.WR