================================================================================ 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: 650 Comm: syz.4.96 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:__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 80 db 0d 87 e8 21 ff b5 fc 48 89 df 48 83 3d 86 eb 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 53 a4 4b fc 65 8b 05 b4 7d 01 7b 85 c0 74 03 5b 5d c3 e8 84 8c RSP: 0018:ffffc900118a7788 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004d24940 RCX: dffffc0000000000 RDX: ffffc90003311000 RSI: ffffffff85b0faa0 RDI: 0000000000000001 RBP: ffffc900118a7790 R08: ffffea0004d24947 R09: 1ffffd40009a4928 R10: dffffc0000000000 R11: fffff940009a4929 R12: 0000000000000001 R13: ffffc900118a7820 R14: 0000000000000cc0 R15: 0000000000000000 spin_unlock_irq include/linux/spinlock.h:401 [inline] shmem_add_to_page_cache+0x6a5/0xae0 mm/shmem.c:745 shmem_get_folio_gfp+0xef9/0x20f0 mm/shmem.c:1981 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567 generic_perform_write+0x32d/0x740 mm/filemap.c:3915 __generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014 generic_file_write_iter+0xae/0x310 mm/filemap.c:4043 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f398db5d68e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f398eacdda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f398eace6c0 RCX: 00007f398db5d68e RDX: 00000000013bd7ef RSI: 00007f39841f8000 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007f398eacdee0 R14: 00007f398eacdea0 R15: 00007f39841f8000 ================================================================================ ================================================================================ 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: 650 Comm: syz.4.96 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+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:__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 80 db 0d 87 e8 21 ff b5 fc 48 89 df 48 83 3d 86 eb 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 53 a4 4b fc 65 8b 05 b4 7d 01 7b 85 c0 74 03 5b 5d c3 e8 84 8c RSP: 0018:ffffc900118a7788 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004d24940 RCX: dffffc0000000000 RDX: ffffc90003311000 RSI: ffffffff85b0faa0 RDI: 0000000000000001 RBP: ffffc900118a7790 R08: ffffea0004d24947 R09: 1ffffd40009a4928 R10: dffffc0000000000 R11: fffff940009a4929 R12: 0000000000000001 R13: ffffc900118a7820 R14: 0000000000000cc0 R15: 0000000000000000 spin_unlock_irq include/linux/spinlock.h:401 [inline] shmem_add_to_page_cache+0x6a5/0xae0 mm/shmem.c:745 shmem_get_folio_gfp+0xef9/0x20f0 mm/shmem.c:1981 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567 generic_perform_write+0x32d/0x740 mm/filemap.c:3915 __generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014 generic_file_write_iter+0xae/0x310 mm/filemap.c:4043 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f398db5d68e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f398eacdda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f398eace6c0 RCX: 00007f398db5d68e RDX: 00000000013bd7ef RSI: 00007f39841f8000 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007f398eacdee0 R14: 00007f398eacdea0 R15: 00007f39841f8000 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763 Read of size 4 at addr ffffffff85e65600 by task syz.4.96/650 CPU: 1 PID: 650 Comm: syz.4.96 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+0x1f32/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:__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 80 db 0d 87 e8 21 ff b5 fc 48 89 df 48 83 3d 86 eb 0c 02 00 74 26 e8 13 0d 00 00 90 fb bf 01 00 00 00 53 a4 4b fc 65 8b 05 b4 7d 01 7b 85 c0 74 03 5b 5d c3 e8 84 8c RSP: 0018:ffffc900118a7788 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004d24940 RCX: dffffc0000000000 RDX: ffffc90003311000 RSI: ffffffff85b0faa0 RDI: 0000000000000001 RBP: ffffc900118a7790 R08: ffffea0004d24947 R09: 1ffffd40009a4928 R10: dffffc0000000000 R11: fffff940009a4929 R12: 0000000000000001 R13: ffffc900118a7820 R14: 0000000000000cc0 R15: 0000000000000000 spin_unlock_irq include/linux/spinlock.h:401 [inline] shmem_add_to_page_cache+0x6a5/0xae0 mm/shmem.c:745 shmem_get_folio_gfp+0xef9/0x20f0 mm/shmem.c:1981 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2567 generic_perform_write+0x32d/0x740 mm/filemap.c:3915 __generic_file_write_iter+0x17a/0x230 mm/filemap.c:4014 generic_file_write_iter+0xae/0x310 mm/filemap.c:4043 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f398db5d68e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f398eacdda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f398eace6c0 RCX: 00007f398db5d68e RDX: 00000000013bd7ef RSI: 00007f39841f8000 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007f398eacdee0 R14: 00007f398eacdea0 R15: 00007f39841f8000 The buggy address belongs to the variable: aiptek_ids+0x120/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: ffffffff85e65500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85e65580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e65600: f9 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 ^ ffffffff85e65680: f9 f9 f9 f9 05 f9 f9 f9 07 f9 f9 f9 00 05 f9 f9 ffffffff85e65700: 04 f9 f9 f9 00 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9 ================================================================== aiptek 3-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 80 db 0d 87 mov $0xffffffff870ddb80,%rdi c: e8 21 ff b5 fc call 0xfcb5ff32 11: 48 89 df mov %rbx,%rdi 14: 48 83 3d 86 eb 0c 02 cmpq $0x0,0x20ceb86(%rip) # 0x20ceba2 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 53 a4 4b fc call 0xfc4ba482 <-- trapping instruction 2f: 65 8b 05 b4 7d 01 7b mov %gs:0x7b017db4(%rip),%eax # 0x7b017dea 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: 84 .byte 0x84 3f: 8c .byte 0x8c