================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 261 is out of range for type 'const int[34]' CPU: 1 PID: 328 Comm: udevd 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: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:link_path_walk+0x6cc/0xeb0 fs/namei.c:2342 Code: 04 24 4c 89 fb 4c 89 ff 31 f6 e8 ff 4e 00 00 49 89 c5 4c 8b 74 24 18 4d 85 ed 0f 85 8e 00 00 00 48 8b 44 24 68 42 80 3c 20 00 <49> 89 dd 74 08 4c 89 f7 e8 f7 4f f3 ff 4d 8b 36 4c 89 f0 48 c1 e8 RSP: 0018:ffffc9000dd077c0 EFLAGS: 00000246 RAX: 1ffff92001ba0f39 RBX: ffffc9000dd079c0 RCX: 2724ea7b74725e00 RDX: 0000000000000010 RSI: ffffc9000dd07750 RDI: ffffc9000dd07a04 RBP: ffffc9000dd07900 R08: ffffc9000dd079cf R09: 1ffff92001ba0f39 R10: dffffc0000000000 R11: fffff52001ba0f3a R12: dffffc0000000000 R13: 0000000000000000 R14: ffffc9000dd079c8 R15: ffff888111539880 path_lookupat+0x8d/0x430 fs/namei.c:2485 filename_lookup+0x229/0x580 fs/namei.c:2515 vfs_statx+0x11b/0x6b0 fs/stat.c:229 vfs_fstatat fs/stat.c:267 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat+0x142/0x440 fs/stat.c:431 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431 x64_sys_call+0x77c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263 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:0x7f380e911b0a Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7 RSP: 002b:00007ffd8c50bf48 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffd8c50c3e0 RCX: 00007f380e911b0a RDX: 00007ffd8c50bf50 RSI: 00007ffd8c50c3e0 RDI: 00000000ffffff9c RBP: 000055fed14ab2c0 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd8c50bfe0 R13: 00007ffd8c50c815 R14: 00007ffd8c50d111 R15: 000055fe9e0df00c ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e65114 by task udevd/328 CPU: 1 PID: 328 Comm: udevd 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: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:link_path_walk+0x6cc/0xeb0 fs/namei.c:2342 Code: 04 24 4c 89 fb 4c 89 ff 31 f6 e8 ff 4e 00 00 49 89 c5 4c 8b 74 24 18 4d 85 ed 0f 85 8e 00 00 00 48 8b 44 24 68 42 80 3c 20 00 <49> 89 dd 74 08 4c 89 f7 e8 f7 4f f3 ff 4d 8b 36 4c 89 f0 48 c1 e8 RSP: 0018:ffffc9000dd077c0 EFLAGS: 00000246 RAX: 1ffff92001ba0f39 RBX: ffffc9000dd079c0 RCX: 2724ea7b74725e00 RDX: 0000000000000010 RSI: ffffc9000dd07750 RDI: ffffc9000dd07a04 RBP: ffffc9000dd07900 R08: ffffc9000dd079cf R09: 1ffff92001ba0f39 R10: dffffc0000000000 R11: fffff52001ba0f3a R12: dffffc0000000000 R13: 0000000000000000 R14: ffffc9000dd079c8 R15: ffff888111539880 path_lookupat+0x8d/0x430 fs/namei.c:2485 filename_lookup+0x229/0x580 fs/namei.c:2515 vfs_statx+0x11b/0x6b0 fs/stat.c:229 vfs_fstatat fs/stat.c:267 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat+0x142/0x440 fs/stat.c:431 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431 x64_sys_call+0x77c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263 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:0x7f380e911b0a Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7 RSP: 002b:00007ffd8c50bf48 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffd8c50c3e0 RCX: 00007f380e911b0a RDX: 00007ffd8c50bf50 RSI: 00007ffd8c50c3e0 RDI: 00000000ffffff9c RBP: 000055fed14ab2c0 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd8c50bfe0 R13: 00007ffd8c50c815 R14: 00007ffd8c50d111 R15: 000055fe9e0df00c The buggy address belongs to the variable: aiptek_ids+0x134/0x160 The buggy address belongs to the physical page: page:ffffea0000179940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e65 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179948 ffffea0000179948 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: ffffffff85e65000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85e65080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e65100: f9 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 ^ ffffffff85e65180: f9 f9 f9 f9 05 f9 f9 f9 07 f9 f9 f9 00 05 f9 f9 ffffffff85e65200: 04 f9 f9 f9 00 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 262 is out of range for type 'const int[34]' CPU: 1 PID: 328 Comm: udevd 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: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:link_path_walk+0x6cc/0xeb0 fs/namei.c:2342 Code: 04 24 4c 89 fb 4c 89 ff 31 f6 e8 ff 4e 00 00 49 89 c5 4c 8b 74 24 18 4d 85 ed 0f 85 8e 00 00 00 48 8b 44 24 68 42 80 3c 20 00 <49> 89 dd 74 08 4c 89 f7 e8 f7 4f f3 ff 4d 8b 36 4c 89 f0 48 c1 e8 RSP: 0018:ffffc9000dd077c0 EFLAGS: 00000246 RAX: 1ffff92001ba0f39 RBX: ffffc9000dd079c0 RCX: 2724ea7b74725e00 RDX: 0000000000000010 RSI: ffffc9000dd07750 RDI: ffffc9000dd07a04 RBP: ffffc9000dd07900 R08: ffffc9000dd079cf R09: 1ffff92001ba0f39 R10: dffffc0000000000 R11: fffff52001ba0f3a R12: dffffc0000000000 R13: 0000000000000000 R14: ffffc9000dd079c8 R15: ffff888111539880 path_lookupat+0x8d/0x430 fs/namei.c:2485 filename_lookup+0x229/0x580 fs/namei.c:2515 vfs_statx+0x11b/0x6b0 fs/stat.c:229 vfs_fstatat fs/stat.c:267 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat+0x142/0x440 fs/stat.c:431 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431 x64_sys_call+0x77c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263 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:0x7f380e911b0a Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7 RSP: 002b:00007ffd8c50bf48 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffd8c50c3e0 RCX: 00007f380e911b0a RDX: 00007ffd8c50bf50 RSI: 00007ffd8c50c3e0 RDI: 00000000ffffff9c RBP: 000055fed14ab2c0 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd8c50bfe0 R13: 00007ffd8c50c815 R14: 00007ffd8c50d111 R15: 000055fe9e0df00c ================================================================================ aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 04 24 add $0x24,%al 2: 4c 89 fb mov %r15,%rbx 5: 4c 89 ff mov %r15,%rdi 8: 31 f6 xor %esi,%esi a: e8 ff 4e 00 00 call 0x4f0e f: 49 89 c5 mov %rax,%r13 12: 4c 8b 74 24 18 mov 0x18(%rsp),%r14 17: 4d 85 ed test %r13,%r13 1a: 0f 85 8e 00 00 00 jne 0xae 20: 48 8b 44 24 68 mov 0x68(%rsp),%rax 25: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) * 2a: 49 89 dd mov %rbx,%r13 <-- trapping instruction 2d: 74 08 je 0x37 2f: 4c 89 f7 mov %r14,%rdi 32: e8 f7 4f f3 ff call 0xfff3502e 37: 4d 8b 36 mov (%r14),%r14 3a: 4c 89 f0 mov %r14,%rax 3d: 48 rex.W 3e: c1 .byte 0xc1 3f: e8 .byte 0xe8