================================================================================ 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: 946 Comm: syz.0.247 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751 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_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x56/0x80 kernel/locking/spinlock.c:194 Code: 46 6d 86 e8 0c a6 f5 fc 4c 89 f7 48 83 3d a9 d0 b9 01 00 74 31 e8 3e 72 9c fc 66 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 f5 43 94 fc 65 8b 05 16 f7 4e 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000b77620 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000 RDX: ffffc90001b6d000 RSI: 0000000000000a02 RDI: 0000000000000001 RBP: ffffc90000b77630 R08: ffff88810fad872f R09: 1ffff11021f5b0e5 R10: dffffc0000000000 R11: ffffed1021f5b0e6 R12: ffff88810fad8640 R13: ffff88812f1a2064 R14: ffffc90000b777e0 R15: 0000000000000a02 spin_unlock_irqrestore include/linux/spinlock.h:419 [inline] __skb_try_recv_datagram+0x17a/0x4d0 net/core/datagram.c:267 __unix_dgram_recvmsg+0x2f2/0xd50 net/unix/af_unix.c:2322 unix_dgram_recvmsg+0xc2/0xe0 net/unix/af_unix.c:2420 ____sys_recvmsg+0x2ca/0x5b0 net/socket.c:-1 ___sys_recvmsg+0x213/0x5c0 net/socket.c:2696 do_recvmmsg+0x360/0x7d0 net/socket.c:2790 __sys_recvmmsg net/socket.c:2869 [inline] __do_sys_recvmmsg net/socket.c:2892 [inline] __se_sys_recvmmsg net/socket.c:2885 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2885 x64_sys_call+0x297/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f6a0f76fe59 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:00007f6a0e1a9028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f6a0f9e9090 RCX: 00007f6a0f76fe59 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f6a0f805e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6a0f9e9128 R14: 00007f6a0f9e9090 R15: 00007fffbae82508 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff858268f0 by task syz.0.247/946 CPU: 0 PID: 946 Comm: syz.0.247 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751 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_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x56/0x80 kernel/locking/spinlock.c:194 Code: 46 6d 86 e8 0c a6 f5 fc 4c 89 f7 48 83 3d a9 d0 b9 01 00 74 31 e8 3e 72 9c fc 66 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 f5 43 94 fc 65 8b 05 16 f7 4e 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000b77620 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000 RDX: ffffc90001b6d000 RSI: 0000000000000a02 RDI: 0000000000000001 RBP: ffffc90000b77630 R08: ffff88810fad872f R09: 1ffff11021f5b0e5 R10: dffffc0000000000 R11: ffffed1021f5b0e6 R12: ffff88810fad8640 R13: ffff88812f1a2064 R14: ffffc90000b777e0 R15: 0000000000000a02 spin_unlock_irqrestore include/linux/spinlock.h:419 [inline] __skb_try_recv_datagram+0x17a/0x4d0 net/core/datagram.c:267 __unix_dgram_recvmsg+0x2f2/0xd50 net/unix/af_unix.c:2322 unix_dgram_recvmsg+0xc2/0xe0 net/unix/af_unix.c:2420 ____sys_recvmsg+0x2ca/0x5b0 net/socket.c:-1 ___sys_recvmsg+0x213/0x5c0 net/socket.c:2696 do_recvmmsg+0x360/0x7d0 net/socket.c:2790 __sys_recvmmsg net/socket.c:2869 [inline] __do_sys_recvmmsg net/socket.c:2892 [inline] __se_sys_recvmmsg net/socket.c:2885 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2885 x64_sys_call+0x297/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f6a0f76fe59 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:00007f6a0e1a9028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f6a0f9e9090 RCX: 00007f6a0f76fe59 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f6a0f805e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6a0f9e9128 R14: 00007f6a0f9e9090 R15: 00007fffbae82508 The buggy address belongs to the variable: .str.48+0x50/0x60 Memory state around the buggy address: ffffffff85826780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85826800: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 >ffffffff85826880: 00 f9 f9 f9 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 ^ ffffffff85826900: 00 03 f9 f9 00 04 f9 f9 00 04 f9 f9 00 05 f9 f9 ffffffff85826980: 00 00 00 04 f9 f9 f9 f9 00 00 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: 946 Comm: syz.0.247 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1751 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_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x56/0x80 kernel/locking/spinlock.c:194 Code: 46 6d 86 e8 0c a6 f5 fc 4c 89 f7 48 83 3d a9 d0 b9 01 00 74 31 e8 3e 72 9c fc 66 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 f5 43 94 fc 65 8b 05 16 f7 4e 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000b77620 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a02 RCX: dffffc0000000000 RDX: ffffc90001b6d000 RSI: 0000000000000a02 RDI: 0000000000000001 RBP: ffffc90000b77630 R08: ffff88810fad872f R09: 1ffff11021f5b0e5 R10: dffffc0000000000 R11: ffffed1021f5b0e6 R12: ffff88810fad8640 R13: ffff88812f1a2064 R14: ffffc90000b777e0 R15: 0000000000000a02 spin_unlock_irqrestore include/linux/spinlock.h:419 [inline] __skb_try_recv_datagram+0x17a/0x4d0 net/core/datagram.c:267 __unix_dgram_recvmsg+0x2f2/0xd50 net/unix/af_unix.c:2322 unix_dgram_recvmsg+0xc2/0xe0 net/unix/af_unix.c:2420 ____sys_recvmsg+0x2ca/0x5b0 net/socket.c:-1 ___sys_recvmsg+0x213/0x5c0 net/socket.c:2696 do_recvmmsg+0x360/0x7d0 net/socket.c:2790 __sys_recvmmsg net/socket.c:2869 [inline] __do_sys_recvmmsg net/socket.c:2892 [inline] __se_sys_recvmmsg net/socket.c:2885 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2885 x64_sys_call+0x297/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f6a0f76fe59 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:00007f6a0e1a9028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f6a0f9e9090 RCX: 00007f6a0f76fe59 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f6a0f805e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6a0f9e9128 R14: 00007f6a0f9e9090 R15: 00007fffbae82508 ================================================================================ sched: RT throttling activated ---------------- Code disassembly (best guess): 0: 46 6d rex.RX insl (%dx),%es:(%rdi) 2: 86 e8 xchg %ch,%al 4: 0c a6 or $0xa6,%al 6: f5 cmc 7: fc cld 8: 4c 89 f7 mov %r14,%rdi b: 48 83 3d a9 d0 b9 01 cmpq $0x0,0x1b9d0a9(%rip) # 0x1b9d0bc 12: 00 13: 74 31 je 0x46 15: e8 3e 72 9c fc call 0xfc9c7258 1a: 66 90 xchg %ax,%ax 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 f5 43 94 fc call 0xfc944424 <-- trapping instruction 2f: 65 8b 05 16 f7 4e 7b mov %gs:0x7b4ef716(%rip),%eax # 0x7b4ef74c 36: 85 c0 test %eax,%eax 38: 74 05 je 0x3f 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: 5d pop %rbp 3e: c3 ret 3f: e8 .byte 0xe8