================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 767 is out of range for type 'const int[34]'
CPU: 1 PID: 1888 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
dump_stack+0x15/0x1c lib/dump_stack.c:135
ubsan_epilogue+0xe/0x40 lib/ubsan.c:148
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347
aiptek_irq+0x1fa2/0x2860 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x51/0x80 kernel/locking/spinlock.c:191
Code: 89 fe 48 c7 c7 b0 73 4c 86 e8 7b 5d 1d fd 4c 89 f7 48 83 3d a0 b8 ca 01 00 74 34 e8 2d 19 ca fc 66 90 48 89 5d e8 ff 75 e8 9d 01 00 00 00 e8 25 15 c3 fc 65 8b 05 5a b2 80 7b 85 c0 74 09 48
RSP: 0018:ffffc90000c57780 EFLAGS: 00000a02
RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000a02 RDI: ffff8881319d2d78
RBP: ffffc90000c57798 R08: ffff88812cfd30ff R09: 1ffff110259fa61f
R10: dffffc0000000000 R11: ffffed10259fa620 R12: 0000000000000a02
R13: 0000000000000006 R14: ffff8881319d2d70 R15: ffff8881319d2d78
spin_unlock_irqrestore include/linux/spinlock.h:410 [inline]
delete_from_page_cache+0xc9/0x100 mm/filemap.c:280
truncate_inode_page+0x5d/0x70 mm/truncate.c:225
shmem_undo_range+0x696/0x1740 mm/shmem.c:960
shmem_truncate_range mm/shmem.c:1069 [inline]
shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1169
evict+0x4a9/0x940 fs/inode.c:612
iput_final fs/inode.c:1736 [inline]
iput+0x654/0x7e0 fs/inode.c:1762
dentry_unlink_inode+0x2d5/0x390 fs/dcache.c:378
__dentry_kill+0x45b/0x660 fs/dcache.c:583
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
__fput+0x4bd/0x730 fs/file_table.c:294
____fput+0x15/0x20 fs/file_table.c:314
task_work_run+0x127/0x190 kernel/task_work.c:189
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199
syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274
do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4e1fdf00d7
Code: a2 c7 05 1c 26 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 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:00007ffe02099098 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f4e1fe8430a RCX: 00007f4e1fdf00d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe02099150
RBP: 00007ffe02099150 R08: 00007ffe0209a150 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe0209a1e0
R13: 00007f4e1fe8430a R14: 00000000000192c3 R15: 00007ffe0209a220
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff855ae51c by task syz-executor/1888
CPU: 1 PID: 1888 Comm: syz-executor Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:435 [inline]
kasan_report+0x100/0x140 mm/kasan/report.c:452
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x51/0x80 kernel/locking/spinlock.c:191
Code: 89 fe 48 c7 c7 b0 73 4c 86 e8 7b 5d 1d fd 4c 89 f7 48 83 3d a0 b8 ca 01 00 74 34 e8 2d 19 ca fc 66 90 48 89 5d e8 ff 75 e8 9d 01 00 00 00 e8 25 15 c3 fc 65 8b 05 5a b2 80 7b 85 c0 74 09 48
RSP: 0018:ffffc90000c57780 EFLAGS: 00000a02
RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000a02 RDI: ffff8881319d2d78
RBP: ffffc90000c57798 R08: ffff88812cfd30ff R09: 1ffff110259fa61f
R10: dffffc0000000000 R11: ffffed10259fa620 R12: 0000000000000a02
R13: 0000000000000006 R14: ffff8881319d2d70 R15: ffff8881319d2d78
spin_unlock_irqrestore include/linux/spinlock.h:410 [inline]
delete_from_page_cache+0xc9/0x100 mm/filemap.c:280
truncate_inode_page+0x5d/0x70 mm/truncate.c:225
shmem_undo_range+0x696/0x1740 mm/shmem.c:960
shmem_truncate_range mm/shmem.c:1069 [inline]
shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1169
evict+0x4a9/0x940 fs/inode.c:612
iput_final fs/inode.c:1736 [inline]
iput+0x654/0x7e0 fs/inode.c:1762
dentry_unlink_inode+0x2d5/0x390 fs/dcache.c:378
__dentry_kill+0x45b/0x660 fs/dcache.c:583
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
__fput+0x4bd/0x730 fs/file_table.c:294
____fput+0x15/0x20 fs/file_table.c:314
task_work_run+0x127/0x190 kernel/task_work.c:189
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199
syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274
do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4e1fdf00d7
Code: a2 c7 05 1c 26 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 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:00007ffe02099098 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f4e1fe8430a RCX: 00007f4e1fdf00d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe02099150
RBP: 00007ffe02099150 R08: 00007ffe0209a150 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe0209a1e0
R13: 00007f4e1fe8430a R14: 00000000000192c3 R15: 00007ffe0209a220
The buggy address belongs to the variable:
.str.81+0x1c/0x20
Memory state around the buggy address:
ffffffff855ae400: 06 f9 f9 f9 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9
ffffffff855ae480: 00 05 f9 f9 00 03 f9 f9 05 f9 f9 f9 07 f9 f9 f9
>ffffffff855ae500: 06 f9 f9 f9 00 00 00 00 00 00 00 00 f9 f9 f9 f9
^
ffffffff855ae580: 00 05 f9 f9 00 04 f9 f9 06 f9 f9 f9 00 f9 f9 f9
ffffffff855ae600: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 768 is out of range for type 'const int[34]'
CPU: 1 PID: 1888 Comm: syz-executor Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
dump_stack+0x15/0x1c lib/dump_stack.c:135
ubsan_epilogue+0xe/0x40 lib/ubsan.c:148
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347
aiptek_irq+0x1e71/0x2860 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x51/0x80 kernel/locking/spinlock.c:191
Code: 89 fe 48 c7 c7 b0 73 4c 86 e8 7b 5d 1d fd 4c 89 f7 48 83 3d a0 b8 ca 01 00 74 34 e8 2d 19 ca fc 66 90 48 89 5d e8 ff 75 e8 9d 01 00 00 00 e8 25 15 c3 fc 65 8b 05 5a b2 80 7b 85 c0 74 09 48
RSP: 0018:ffffc90000c57780 EFLAGS: 00000a02
RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000a02 RDI: ffff8881319d2d78
RBP: ffffc90000c57798 R08: ffff88812cfd30ff R09: 1ffff110259fa61f
R10: dffffc0000000000 R11: ffffed10259fa620 R12: 0000000000000a02
R13: 0000000000000006 R14: ffff8881319d2d70 R15: ffff8881319d2d78
spin_unlock_irqrestore include/linux/spinlock.h:410 [inline]
delete_from_page_cache+0xc9/0x100 mm/filemap.c:280
truncate_inode_page+0x5d/0x70 mm/truncate.c:225
shmem_undo_range+0x696/0x1740 mm/shmem.c:960
shmem_truncate_range mm/shmem.c:1069 [inline]
shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1169
evict+0x4a9/0x940 fs/inode.c:612
iput_final fs/inode.c:1736 [inline]
iput+0x654/0x7e0 fs/inode.c:1762
dentry_unlink_inode+0x2d5/0x390 fs/dcache.c:378
__dentry_kill+0x45b/0x660 fs/dcache.c:583
dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
dput+0x42/0x80 fs/dcache.c:883
__fput+0x4bd/0x730 fs/file_table.c:294
____fput+0x15/0x20 fs/file_table.c:314
task_work_run+0x127/0x190 kernel/task_work.c:189
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172
exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199
syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274
do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4e1fdf00d7
Code: a2 c7 05 1c 26 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 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:00007ffe02099098 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f4e1fe8430a RCX: 00007f4e1fdf00d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe02099150
RBP: 00007ffe02099150 R08: 00007ffe0209a150 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe0209a1e0
R13: 00007f4e1fe8430a R14: 00000000000192c3 R15: 00007ffe0209a220
================================================================================
----------------
Code disassembly (best guess):
0: 89 fe mov %edi,%esi
2: 48 c7 c7 b0 73 4c 86 mov $0xffffffff864c73b0,%rdi
9: e8 7b 5d 1d fd call 0xfd1d5d89
e: 4c 89 f7 mov %r14,%rdi
11: 48 83 3d a0 b8 ca 01 cmpq $0x0,0x1cab8a0(%rip) # 0x1cab8b9
18: 00
19: 74 34 je 0x4f
1b: e8 2d 19 ca fc call 0xfcca194d
20: 66 90 xchg %ax,%ax
22: 48 89 5d e8 mov %rbx,-0x18(%rbp)
26: ff 75 e8 push -0x18(%rbp)
29: 9d popf
* 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction
2f: e8 25 15 c3 fc call 0xfcc31559
34: 65 8b 05 5a b2 80 7b mov %gs:0x7b80b25a(%rip),%eax # 0x7b80b295
3b: 85 c0 test %eax,%eax
3d: 74 09 je 0x48
3f: 48 rex.W