================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 255 is out of range for type 'const int[34]'
CPU: 1 PID: 5550 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x48/0x70 kernel/locking/spinlock.c:202
Code: 74 12 48 89 fb 48 c7 c7 c0 db 0d 87 e8 81 67 b5 fc 48 89 df 48 83 3d 26 48 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 33 03 4b fc 65 8b 05 14 da 00 7b 85 c0 74 03 5b 5d c3 e8 e4 e8
RSP: 0018:ffffc900007877e8 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffea0004f51280 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffffc900007877f0 R08: ffff888142d433bf R09: 1ffff110285a8677
R10: dffffc0000000000 R11: ffffed10285a8678 R12: ffff888132471c90
R13: 1ffff1102648e391 R14: ffff888132471c88 R15: ffffc90000787840
spin_unlock_irq include/linux/spinlock.h:401 [inline]
filemap_remove_folio+0x10f/0x490 mm/filemap.c:279
truncate_inode_folio+0x5d/0x70 mm/truncate.c:199
shmem_undo_range+0x455/0x14e0 mm/shmem.c:947
shmem_truncate_range mm/shmem.c:1067 [inline]
shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176
evict+0x4c4/0x8c0 fs/inode.c:709
iput_final fs/inode.c:1845 [inline]
iput+0x633/0x690 fs/inode.c:1871
do_unlinkat+0x380/0x6c0 fs/namei.c:4404
__do_sys_unlink fs/namei.c:4445 [inline]
__se_sys_unlink fs/namei.c:4443 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4443
x64_sys_call+0x958/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88
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:0x7f939cd9d2c7
Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd497f4148 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f939cd9d2c7
RDX: 00007ffd497f4170 RSI: 00007ffd497f4200 RDI: 00007ffd497f4200
RBP: 00007ffd497f4200 R08: 00007ffd497f5200 R09: 00000000ffffffff
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd497f5290
R13: 00007f939ce34ccb R14: 000000000004258e R15: 00007ffd497f52d0
================================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 256 is out of range for type 'const int[34]'
CPU: 1 PID: 5550 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x48/0x70 kernel/locking/spinlock.c:202
Code: 74 12 48 89 fb 48 c7 c7 c0 db 0d 87 e8 81 67 b5 fc 48 89 df 48 83 3d 26 48 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 33 03 4b fc 65 8b 05 14 da 00 7b 85 c0 74 03 5b 5d c3 e8 e4 e8
RSP: 0018:ffffc900007877e8 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffea0004f51280 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffffc900007877f0 R08: ffff888142d433bf R09: 1ffff110285a8677
R10: dffffc0000000000 R11: ffffed10285a8678 R12: ffff888132471c90
R13: 1ffff1102648e391 R14: ffff888132471c88 R15: ffffc90000787840
spin_unlock_irq include/linux/spinlock.h:401 [inline]
filemap_remove_folio+0x10f/0x490 mm/filemap.c:279
truncate_inode_folio+0x5d/0x70 mm/truncate.c:199
shmem_undo_range+0x455/0x14e0 mm/shmem.c:947
shmem_truncate_range mm/shmem.c:1067 [inline]
shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176
evict+0x4c4/0x8c0 fs/inode.c:709
iput_final fs/inode.c:1845 [inline]
iput+0x633/0x690 fs/inode.c:1871
do_unlinkat+0x380/0x6c0 fs/namei.c:4404
__do_sys_unlink fs/namei.c:4445 [inline]
__se_sys_unlink fs/namei.c:4443 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4443
x64_sys_call+0x958/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88
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:0x7f939cd9d2c7
Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd497f4148 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f939cd9d2c7
RDX: 00007ffd497f4170 RSI: 00007ffd497f4200 RDI: 00007ffd497f4200
RBP: 00007ffd497f4200 R08: 00007ffd497f5200 R09: 00000000ffffffff
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd497f5290
R13: 00007f939ce34ccb R14: 000000000004258e R15: 00007ffd497f52d0
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
Read of size 4 at addr ffffffff85e663c0 by task syz-executor/5550
CPU: 1 PID: 5550 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x48/0x70 kernel/locking/spinlock.c:202
Code: 74 12 48 89 fb 48 c7 c7 c0 db 0d 87 e8 81 67 b5 fc 48 89 df 48 83 3d 26 48 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 33 03 4b fc 65 8b 05 14 da 00 7b 85 c0 74 03 5b 5d c3 e8 e4 e8
RSP: 0018:ffffc900007877e8 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffea0004f51280 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffffc900007877f0 R08: ffff888142d433bf R09: 1ffff110285a8677
R10: dffffc0000000000 R11: ffffed10285a8678 R12: ffff888132471c90
R13: 1ffff1102648e391 R14: ffff888132471c88 R15: ffffc90000787840
spin_unlock_irq include/linux/spinlock.h:401 [inline]
filemap_remove_folio+0x10f/0x490 mm/filemap.c:279
truncate_inode_folio+0x5d/0x70 mm/truncate.c:199
shmem_undo_range+0x455/0x14e0 mm/shmem.c:947
shmem_truncate_range mm/shmem.c:1067 [inline]
shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176
evict+0x4c4/0x8c0 fs/inode.c:709
iput_final fs/inode.c:1845 [inline]
iput+0x633/0x690 fs/inode.c:1871
do_unlinkat+0x380/0x6c0 fs/namei.c:4404
__do_sys_unlink fs/namei.c:4445 [inline]
__se_sys_unlink fs/namei.c:4443 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4443
x64_sys_call+0x958/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88
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:0x7f939cd9d2c7
Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd497f4148 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f939cd9d2c7
RDX: 00007ffd497f4170 RSI: 00007ffd497f4200 RDI: 00007ffd497f4200
RBP: 00007ffd497f4200 R08: 00007ffd497f5200 R09: 00000000ffffffff
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd497f5290
R13: 00007f939ce34ccb R14: 000000000004258e R15: 00007ffd497f52d0
The buggy address belongs to the variable:
aiptek_ids+0x120/0x160
The buggy address belongs to the physical page:
page:ffffea0000179980 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e66
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea0000179988 ffffea0000179988 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:
ffffffff85e66280: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
ffffffff85e66300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffffff85e66380: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9
^
ffffffff85e66400: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 05 f9 f9 f9
ffffffff85e66480: 07 f9 f9 f9 00 05 f9 f9 04 f9 f9 f9 00 f9 f9 f9
==================================================================
aiptek 10-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 74 12 je 0x14
2: 48 89 fb mov %rdi,%rbx
5: 48 c7 c7 c0 db 0d 87 mov $0xffffffff870ddbc0,%rdi
c: e8 81 67 b5 fc call 0xfcb56792
11: 48 89 df mov %rbx,%rdi
14: 48 83 3d 26 48 0c 02 cmpq $0x0,0x20c4826(%rip) # 0x20c4842
1b: 00
1c: 74 26 je 0x44
1e: e8 13 0d 00 00 call 0xd36
23: 90 nop
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 33 03 4b fc call 0xfc4b0362 <-- trapping instruction
2f: 65 8b 05 14 da 00 7b mov %gs:0x7b00da14(%rip),%eax # 0x7b00da4a
36: 85 c0 test %eax,%eax
38: 74 03 je 0x3d
3a: 5b pop %rbx
3b: 5d pop %rbp
3c: c3 ret
3d: e8 .byte 0xe8
3e: e4 e8 in $0xe8,%al