================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 58388 is out of range for type 'const int[34]' CPU: 0 PID: 286 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1672 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1749 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459 expire_timers kernel/time/timer.c:1504 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1775 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x49/0x70 kernel/locking/spinlock.c:202 Code: 12 48 89 fb 48 c7 c7 38 47 6d 86 e8 91 4f f5 fc 48 89 df 48 83 3d 6e 70 b9 01 00 74 27 e8 73 1c 9c fc 66 90 fb bf 01 00 00 00 32 ee 93 fc 65 8b 05 a3 96 4e 7b 85 c0 74 03 5b 5d c3 e8 43 a2 RSP: 0018:ffffc900009e7870 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004ba4640 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffffc900009e7878 R08: ffff888129f747bf R09: 1ffff110253ee8f7 R10: dffffc0000000000 R11: ffffed10253ee8f8 R12: dffffc0000000000 R13: 400000000008001f R14: ffff888134b0c1f8 R15: ffff888134b0c200 spin_unlock_irq include/linux/spinlock.h:414 [inline] delete_from_page_cache+0xbf/0xf0 mm/filemap.c:276 truncate_inode_page+0x5d/0x70 mm/truncate.c:222 shmem_undo_range+0x45c/0x13b0 mm/shmem.c:961 shmem_truncate_range mm/shmem.c:1064 [inline] shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1146 evict+0x4b6/0x8b0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x651/0x7e0 fs/inode.c:1805 do_unlinkat+0x380/0x6c0 fs/namei.c:4363 __do_sys_unlink fs/namei.c:4404 [inline] __se_sys_unlink fs/namei.c:4402 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4402 x64_sys_call+0x878/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f034e3f5f87 Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 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:00007ffdf6a37b48 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f034e3f5f87 RDX: 00007ffdf6a37b70 RSI: 00007ffdf6a37c00 RDI: 00007ffdf6a37c00 RBP: 00007ffdf6a37c00 R08: 00007ffdf6a38c00 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffdf6a38cf0 R13: 00007f034e48c30a R14: 0000000000008124 R15: 00007ffdf6a39dc0 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85826c90 by task syz-executor/286 CPU: 0 PID: 286 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 aiptek_irq+0x2063/0x29b0 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:1749 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459 expire_timers kernel/time/timer.c:1504 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1775 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x49/0x70 kernel/locking/spinlock.c:202 Code: 12 48 89 fb 48 c7 c7 38 47 6d 86 e8 91 4f f5 fc 48 89 df 48 83 3d 6e 70 b9 01 00 74 27 e8 73 1c 9c fc 66 90 fb bf 01 00 00 00 32 ee 93 fc 65 8b 05 a3 96 4e 7b 85 c0 74 03 5b 5d c3 e8 43 a2 RSP: 0018:ffffc900009e7870 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004ba4640 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffffc900009e7878 R08: ffff888129f747bf R09: 1ffff110253ee8f7 R10: dffffc0000000000 R11: ffffed10253ee8f8 R12: dffffc0000000000 R13: 400000000008001f R14: ffff888134b0c1f8 R15: ffff888134b0c200 spin_unlock_irq include/linux/spinlock.h:414 [inline] delete_from_page_cache+0xbf/0xf0 mm/filemap.c:276 truncate_inode_page+0x5d/0x70 mm/truncate.c:222 shmem_undo_range+0x45c/0x13b0 mm/shmem.c:961 shmem_truncate_range mm/shmem.c:1064 [inline] shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1146 evict+0x4b6/0x8b0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x651/0x7e0 fs/inode.c:1805 do_unlinkat+0x380/0x6c0 fs/namei.c:4363 __do_sys_unlink fs/namei.c:4404 [inline] __se_sys_unlink fs/namei.c:4402 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4402 x64_sys_call+0x878/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f034e3f5f87 Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 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:00007ffdf6a37b48 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f034e3f5f87 RDX: 00007ffdf6a37b70 RSI: 00007ffdf6a37c00 RDI: 00007ffdf6a37c00 RBP: 00007ffdf6a37c00 R08: 00007ffdf6a38c00 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffdf6a38cf0 R13: 00007f034e48c30a R14: 0000000000008124 R15: 00007ffdf6a39dc0 The buggy address belongs to the variable: .str.48+0x50/0x60 Memory state around the buggy address: ffffffff85826b80: 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ffffffff85826c00: f9 f9 f9 f9 00 f9 f9 f9 00 00 00 00 03 f9 f9 f9 >ffffffff85826c80: f9 f9 f9 f9 00 03 f9 f9 00 04 f9 f9 00 04 f9 f9 ^ ffffffff85826d00: 00 05 f9 f9 00 00 00 04 f9 f9 f9 f9 00 00 f9 f9 ffffffff85826d80: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 58389 is out of range for type 'const int[34]' CPU: 0 PID: 286 Comm: syz-executor Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1672 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1749 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459 expire_timers kernel/time/timer.c:1504 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1775 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x49/0x70 kernel/locking/spinlock.c:202 Code: 12 48 89 fb 48 c7 c7 38 47 6d 86 e8 91 4f f5 fc 48 89 df 48 83 3d 6e 70 b9 01 00 74 27 e8 73 1c 9c fc 66 90 fb bf 01 00 00 00 32 ee 93 fc 65 8b 05 a3 96 4e 7b 85 c0 74 03 5b 5d c3 e8 43 a2 RSP: 0018:ffffc900009e7870 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffffea0004ba4640 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffffc900009e7878 R08: ffff888129f747bf R09: 1ffff110253ee8f7 R10: dffffc0000000000 R11: ffffed10253ee8f8 R12: dffffc0000000000 R13: 400000000008001f R14: ffff888134b0c1f8 R15: ffff888134b0c200 spin_unlock_irq include/linux/spinlock.h:414 [inline] delete_from_page_cache+0xbf/0xf0 mm/filemap.c:276 truncate_inode_page+0x5d/0x70 mm/truncate.c:222 shmem_undo_range+0x45c/0x13b0 mm/shmem.c:961 shmem_truncate_range mm/shmem.c:1064 [inline] shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1146 evict+0x4b6/0x8b0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x651/0x7e0 fs/inode.c:1805 do_unlinkat+0x380/0x6c0 fs/namei.c:4363 __do_sys_unlink fs/namei.c:4404 [inline] __se_sys_unlink fs/namei.c:4402 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4402 x64_sys_call+0x878/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f034e3f5f87 Code: 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 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:00007ffdf6a37b48 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f034e3f5f87 RDX: 00007ffdf6a37b70 RSI: 00007ffdf6a37c00 RDI: 00007ffdf6a37c00 RBP: 00007ffdf6a37c00 R08: 00007ffdf6a38c00 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffdf6a38cf0 R13: 00007f034e48c30a R14: 0000000000008124 R15: 00007ffdf6a39dc0 ================================================================================ ---------------- Code disassembly (best guess): 0: 12 48 89 adc -0x77(%rax),%cl 3: fb sti 4: 48 c7 c7 38 47 6d 86 mov $0xffffffff866d4738,%rdi b: e8 91 4f f5 fc call 0xfcf54fa1 10: 48 89 df mov %rbx,%rdi 13: 48 83 3d 6e 70 b9 01 cmpq $0x0,0x1b9706e(%rip) # 0x1b97089 1a: 00 1b: 74 27 je 0x44 1d: e8 73 1c 9c fc call 0xfc9c1c95 22: 66 90 xchg %ax,%ax 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 32 ee 93 fc call 0xfc93ee61 <-- trapping instruction 2f: 65 8b 05 a3 96 4e 7b mov %gs:0x7b4e96a3(%rip),%eax # 0x7b4e96d9 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: 43 rex.XB 3f: a2 .byte 0xa2