================================================================================
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: 0 PID: 324 Comm: udevd Not tainted 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:locks_remove_file+0x370/0x1030 fs/locks.c:2646
Code: 74 37 e8 33 7e 9a ff 4c 89 ef be 07 00 00 00 4c 89 f2 41 ba 4a 68 37 a4 45 03 57 fc 74 02 0f 0b 41 ff d7 eb 26 e8 10 7e 9a ff cf 0b 00 00 e8 06 7e 9a ff e9 8c 00 00 00 e8 fc 7d 9a ff 48 8b
RSP: 0018:ffffc9000dcd7b00 EFLAGS: 00000293
RAX: ffffffff81d6f030 RBX: dffffc0000000000 RCX: ffff8881104d8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f140020
RBP: ffffc9000dcd7d40 R08: ffff88810f2cc4c7 R09: 1ffff11021e59898
R10: dffffc0000000000 R11: ffffed1021e59899 R12: f8f8f8f8f8f8f8f8
R13: ffff88811f140000 R14: 0000000000000000 R15: dffffc0000000000
__fput+0x157/0x8f0 fs/file_table.c:312
____fput+0x15/0x20 fs/file_table.c:348
task_work_run+0x1e1/0x250 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2a4f8a7407
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:00007ffee59301b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f2a4ff5e880 RCX: 00007f2a4f8a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000055e7f3c27e30
R13: 0000000000000005 R14: 00007ffee5930690 R15: 000055e7cc8ffbcc
================================================================================
================================================================================
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: 0 PID: 324 Comm: udevd Not tainted 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:locks_remove_file+0x370/0x1030 fs/locks.c:2646
Code: 74 37 e8 33 7e 9a ff 4c 89 ef be 07 00 00 00 4c 89 f2 41 ba 4a 68 37 a4 45 03 57 fc 74 02 0f 0b 41 ff d7 eb 26 e8 10 7e 9a ff cf 0b 00 00 e8 06 7e 9a ff e9 8c 00 00 00 e8 fc 7d 9a ff 48 8b
RSP: 0018:ffffc9000dcd7b00 EFLAGS: 00000293
RAX: ffffffff81d6f030 RBX: dffffc0000000000 RCX: ffff8881104d8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f140020
RBP: ffffc9000dcd7d40 R08: ffff88810f2cc4c7 R09: 1ffff11021e59898
R10: dffffc0000000000 R11: ffffed1021e59899 R12: f8f8f8f8f8f8f8f8
R13: ffff88811f140000 R14: 0000000000000000 R15: dffffc0000000000
__fput+0x157/0x8f0 fs/file_table.c:312
____fput+0x15/0x20 fs/file_table.c:348
task_work_run+0x1e1/0x250 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2a4f8a7407
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:00007ffee59301b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f2a4ff5e880 RCX: 00007f2a4f8a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000055e7f3c27e30
R13: 0000000000000005 R14: 00007ffee5930690 R15: 000055e7cc8ffbcc
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
Read of size 4 at addr ffffffff85e66440 by task udevd/324
CPU: 0 PID: 324 Comm: udevd Not tainted 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:locks_remove_file+0x370/0x1030 fs/locks.c:2646
Code: 74 37 e8 33 7e 9a ff 4c 89 ef be 07 00 00 00 4c 89 f2 41 ba 4a 68 37 a4 45 03 57 fc 74 02 0f 0b 41 ff d7 eb 26 e8 10 7e 9a ff cf 0b 00 00 e8 06 7e 9a ff e9 8c 00 00 00 e8 fc 7d 9a ff 48 8b
RSP: 0018:ffffc9000dcd7b00 EFLAGS: 00000293
RAX: ffffffff81d6f030 RBX: dffffc0000000000 RCX: ffff8881104d8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88811f140020
RBP: ffffc9000dcd7d40 R08: ffff88810f2cc4c7 R09: 1ffff11021e59898
R10: dffffc0000000000 R11: ffffed1021e59899 R12: f8f8f8f8f8f8f8f8
R13: ffff88811f140000 R14: 0000000000000000 R15: dffffc0000000000
__fput+0x157/0x8f0 fs/file_table.c:312
____fput+0x15/0x20 fs/file_table.c:348
task_work_run+0x1e1/0x250 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2a4f8a7407
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:00007ffee59301b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f2a4ff5e880 RCX: 00007f2a4f8a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000055e7f3c27e30
R13: 0000000000000005 R14: 00007ffee5930690 R15: 000055e7cc8ffbcc
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:
ffffffff85e66300: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
ffffffff85e66380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffffff85e66400: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9
^
ffffffff85e66480: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 05 f9 f9 f9
ffffffff85e66500: 07 f9 f9 f9 00 05 f9 f9 04 f9 f9 f9 00 f9 f9 f9
==================================================================
aiptek 2-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 74 37 je 0x39
2: e8 33 7e 9a ff call 0xff9a7e3a
7: 4c 89 ef mov %r13,%rdi
a: be 07 00 00 00 mov $0x7,%esi
f: 4c 89 f2 mov %r14,%rdx
12: 41 ba 4a 68 37 a4 mov $0xa437684a,%r10d
18: 45 03 57 fc add -0x4(%r15),%r10d
1c: 74 02 je 0x20
1e: 0f 0b ud2
20: 41 ff d7 call *%r15
23: eb 26 jmp 0x4b
25: e8 10 7e 9a ff call 0xff9a7e3a
* 2a: e9 cf 0b 00 00 jmp 0xbfe <-- trapping instruction
2f: e8 06 7e 9a ff call 0xff9a7e3a
34: e9 8c 00 00 00 jmp 0xc5
39: e8 fc 7d 9a ff call 0xff9a7e3a
3e: 48 rex.W
3f: 8b .byte 0x8b