================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 4607 is out of range for type 'const int[34]'
CPU: 1 PID: 715 Comm: syz.1.131 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
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:find_stack lib/stackdepot.c:208 [inline]
RIP: 0010:__stack_depot_save+0x1bb/0x4c0 lib/stackdepot.c:305
Code: 0e 44 29 c6 31 f3 c1 c6 18 29 f3 4c 8b 3d 55 5b 96 04 41 89 de 41 81 e6 ff 0f 00 00 4f 8b 24 f7 4d 85 e4 74 5e 44 89 ee eb 09 <4d> 8b 24 24 4d 85 e4 74 50 41 39 5c 24 08 75 f0 45 39 6c 24 0c 75
RSP: 0018:ffffc90007a97378 EFLAGS: 00000a87
RAX: 0000000000000000 RBX: 0000000098e8125d RCX: 0000000000000001
RDX: 0000000000000cc0 RSI: 0000000000000010 RDI: ffffc90007a973e0
RBP: ffffc90007a973d0 R08: 000000004f60fdbd R09: 0000000035e5d413
R10: 0000000000000002 R11: 00000000d5efcf39 R12: ffff88810bf63290
R13: 0000000000000010 R14: 000000000000025d R15: ffff88823ff00000
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:430 [inline]
__kasan_slab_alloc+0xc9/0xe0 mm/kasan/common.c:463
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580
slab_alloc_node mm/slub.c:2952 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965
alloc_inode fs/inode.c:235 [inline]
new_inode_pseudo+0x7a/0x210 fs/inode.c:968
new_inode+0x28/0x1e0 fs/inode.c:997
debugfs_get_inode fs/debugfs/inode.c:68 [inline]
__debugfs_create_file+0x149/0x4a0 fs/debugfs/inode.c:405
debugfs_create_file+0x4a/0x60 fs/debugfs/inode.c:457
binder_open+0x899/0xe60 drivers/android/binder.c:6073
do_dentry_open+0x7a5/0x10a0 fs/open.c:819
vfs_open+0x73/0x80 fs/open.c:944
do_open fs/namei.c:3399 [inline]
path_openat+0x26c3/0x3040 fs/namei.c:3517
do_filp_open+0x1df/0x400 fs/namei.c:3544
do_sys_openat2+0x19f/0x750 fs/open.c:1219
do_sys_open fs/open.c:1235 [inline]
__do_sys_openat fs/open.c:1251 [inline]
__se_sys_openat fs/open.c:1246 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1246
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fddad129e59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fddabb84028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fddad3a2fa0 RCX: 00007fddad129e59
RDX: 0000000000000802 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007fddad1bfe6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fddad3a3038 R14: 00007fddad3a2fa0 R15: 00007ffc252707f8
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff855b1c9c by task syz.1.131/715
CPU: 1 PID: 715 Comm: syz.1.131 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
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:find_stack lib/stackdepot.c:208 [inline]
RIP: 0010:__stack_depot_save+0x1bb/0x4c0 lib/stackdepot.c:305
Code: 0e 44 29 c6 31 f3 c1 c6 18 29 f3 4c 8b 3d 55 5b 96 04 41 89 de 41 81 e6 ff 0f 00 00 4f 8b 24 f7 4d 85 e4 74 5e 44 89 ee eb 09 <4d> 8b 24 24 4d 85 e4 74 50 41 39 5c 24 08 75 f0 45 39 6c 24 0c 75
RSP: 0018:ffffc90007a97378 EFLAGS: 00000a87
RAX: 0000000000000000 RBX: 0000000098e8125d RCX: 0000000000000001
RDX: 0000000000000cc0 RSI: 0000000000000010 RDI: ffffc90007a973e0
RBP: ffffc90007a973d0 R08: 000000004f60fdbd R09: 0000000035e5d413
R10: 0000000000000002 R11: 00000000d5efcf39 R12: ffff88810bf63290
R13: 0000000000000010 R14: 000000000000025d R15: ffff88823ff00000
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:430 [inline]
__kasan_slab_alloc+0xc9/0xe0 mm/kasan/common.c:463
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580
slab_alloc_node mm/slub.c:2952 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965
alloc_inode fs/inode.c:235 [inline]
new_inode_pseudo+0x7a/0x210 fs/inode.c:968
new_inode+0x28/0x1e0 fs/inode.c:997
debugfs_get_inode fs/debugfs/inode.c:68 [inline]
__debugfs_create_file+0x149/0x4a0 fs/debugfs/inode.c:405
debugfs_create_file+0x4a/0x60 fs/debugfs/inode.c:457
binder_open+0x899/0xe60 drivers/android/binder.c:6073
do_dentry_open+0x7a5/0x10a0 fs/open.c:819
vfs_open+0x73/0x80 fs/open.c:944
do_open fs/namei.c:3399 [inline]
path_openat+0x26c3/0x3040 fs/namei.c:3517
do_filp_open+0x1df/0x400 fs/namei.c:3544
do_sys_openat2+0x19f/0x750 fs/open.c:1219
do_sys_open fs/open.c:1235 [inline]
__do_sys_openat fs/open.c:1251 [inline]
__se_sys_openat fs/open.c:1246 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1246
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fddad129e59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fddabb84028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fddad3a2fa0 RCX: 00007fddad129e59
RDX: 0000000000000802 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007fddad1bfe6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fddad3a3038 R14: 00007fddad3a2fa0 R15: 00007ffc252707f8
The buggy address belongs to the variable:
.str.7+0x3c/0x40
Memory state around the buggy address:
ffffffff855b1b80: f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9 00 00 f9 f9
ffffffff855b1c00: 00 00 f9 f9 00 00 01 f9 f9 f9 f9 f9 00 00 01 f9
>ffffffff855b1c80: f9 f9 f9 f9 00 06 f9 f9 00 06 f9 f9 00 00 07 f9
^
ffffffff855b1d00: f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9 00 00 01 f9
ffffffff855b1d80: f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9 00 00 01 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 4608 is out of range for type 'const int[34]'
CPU: 1 PID: 715 Comm: syz.1.131 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
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:find_stack lib/stackdepot.c:208 [inline]
RIP: 0010:__stack_depot_save+0x1bb/0x4c0 lib/stackdepot.c:305
Code: 0e 44 29 c6 31 f3 c1 c6 18 29 f3 4c 8b 3d 55 5b 96 04 41 89 de 41 81 e6 ff 0f 00 00 4f 8b 24 f7 4d 85 e4 74 5e 44 89 ee eb 09 <4d> 8b 24 24 4d 85 e4 74 50 41 39 5c 24 08 75 f0 45 39 6c 24 0c 75
RSP: 0018:ffffc90007a97378 EFLAGS: 00000a87
RAX: 0000000000000000 RBX: 0000000098e8125d RCX: 0000000000000001
RDX: 0000000000000cc0 RSI: 0000000000000010 RDI: ffffc90007a973e0
RBP: ffffc90007a973d0 R08: 000000004f60fdbd R09: 0000000035e5d413
R10: 0000000000000002 R11: 00000000d5efcf39 R12: ffff88810bf63290
R13: 0000000000000010 R14: 000000000000025d R15: ffff88823ff00000
kasan_save_stack mm/kasan/common.c:39 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:430 [inline]
__kasan_slab_alloc+0xc9/0xe0 mm/kasan/common.c:463
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580
slab_alloc_node mm/slub.c:2952 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965
alloc_inode fs/inode.c:235 [inline]
new_inode_pseudo+0x7a/0x210 fs/inode.c:968
new_inode+0x28/0x1e0 fs/inode.c:997
debugfs_get_inode fs/debugfs/inode.c:68 [inline]
__debugfs_create_file+0x149/0x4a0 fs/debugfs/inode.c:405
debugfs_create_file+0x4a/0x60 fs/debugfs/inode.c:457
binder_open+0x899/0xe60 drivers/android/binder.c:6073
do_dentry_open+0x7a5/0x10a0 fs/open.c:819
vfs_open+0x73/0x80 fs/open.c:944
do_open fs/namei.c:3399 [inline]
path_openat+0x26c3/0x3040 fs/namei.c:3517
do_filp_open+0x1df/0x400 fs/namei.c:3544
do_sys_openat2+0x19f/0x750 fs/open.c:1219
do_sys_open fs/open.c:1235 [inline]
__do_sys_openat fs/open.c:1251 [inline]
__se_sys_openat fs/open.c:1246 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1246
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fddad129e59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fddabb84028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fddad3a2fa0 RCX: 00007fddad129e59
RDX: 0000000000000802 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007fddad1bfe6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fddad3a3038 R14: 00007fddad3a2fa0 R15: 00007ffc252707f8
================================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 44 29 c6 sub %r8d,%esi
3: 31 f3 xor %esi,%ebx
5: c1 c6 18 rol $0x18,%esi
8: 29 f3 sub %esi,%ebx
a: 4c 8b 3d 55 5b 96 04 mov 0x4965b55(%rip),%r15 # 0x4965b66
11: 41 89 de mov %ebx,%r14d
14: 41 81 e6 ff 0f 00 00 and $0xfff,%r14d
1b: 4f 8b 24 f7 mov (%r15,%r14,8),%r12
1f: 4d 85 e4 test %r12,%r12
22: 74 5e je 0x82
24: 44 89 ee mov %r13d,%esi
27: eb 09 jmp 0x32
* 29: 4d 8b 24 24 mov (%r12),%r12 <-- trapping instruction
2d: 4d 85 e4 test %r12,%r12
30: 74 50 je 0x82
32: 41 39 5c 24 08 cmp %ebx,0x8(%r12)
37: 75 f0 jne 0x29
39: 45 39 6c 24 0c cmp %r13d,0xc(%r12)
3e: 75 .byte 0x75