================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 50026 is out of range for type 'const int[34]' CPU: 0 PID: 820 Comm: syz.7.151 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x208d/0x29b0 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 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_call_function_single arch/x86/kernel/smp.c:262 [inline] sysvec_call_function_single+0xa6/0xc0 arch/x86/kernel/smp.c:262 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:699 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x55/0x80 kernel/locking/spinlock.c:194 Code: 00 d5 0d 87 e8 8c b8 b4 fc 4c 89 f7 48 83 3d d1 6a 0b 02 00 74 30 e8 9e 0d 00 00 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 06 3e 4a fc 65 8b 05 77 03 00 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000cf75a0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a06 RCX: dffffc0000000000 RDX: ffffc900009f7678 RSI: 0000000000000a06 RDI: 0000000000000001 RBP: ffffc90000cf75b0 R08: ffff88811d283cc7 R09: 1ffff11023a50798 R10: dffffc0000000000 R11: ffffed1023a50799 R12: ffff888123bfa700 R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:141 [inline] __wake_up_sync_key+0x17b/0x2b0 kernel/sched/wait.c:212 __unix_dgram_recvmsg+0x4c1/0xdc0 net/unix/af_unix.c:2480 unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2550 ____sys_recvmsg+0x2d9/0x5f0 net/socket.c:-1 ___sys_recvmsg+0x212/0x590 net/socket.c:2769 do_recvmmsg+0x393/0x840 net/socket.c:2863 __sys_recvmmsg net/socket.c:2942 [inline] __do_sys_recvmmsg net/socket.c:2965 [inline] __se_sys_recvmmsg net/socket.c:2958 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2958 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f973419ce59 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:00007f9735027028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f9734416090 RCX: 00007f973419ce59 RDX: 00000000080002c1 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f9734232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9734416128 R14: 00007f9734416090 R15: 00007ffcf3c8fc58 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 50027 is out of range for type 'const int[34]' CPU: 0 PID: 820 Comm: syz.7.151 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x1f6d/0x29b0 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 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_call_function_single arch/x86/kernel/smp.c:262 [inline] sysvec_call_function_single+0xa6/0xc0 arch/x86/kernel/smp.c:262 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:699 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x55/0x80 kernel/locking/spinlock.c:194 Code: 00 d5 0d 87 e8 8c b8 b4 fc 4c 89 f7 48 83 3d d1 6a 0b 02 00 74 30 e8 9e 0d 00 00 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 06 3e 4a fc 65 8b 05 77 03 00 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000cf75a0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a06 RCX: dffffc0000000000 RDX: ffffc900009f7678 RSI: 0000000000000a06 RDI: 0000000000000001 RBP: ffffc90000cf75b0 R08: ffff88811d283cc7 R09: 1ffff11023a50798 R10: dffffc0000000000 R11: ffffed1023a50799 R12: ffff888123bfa700 R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:141 [inline] __wake_up_sync_key+0x17b/0x2b0 kernel/sched/wait.c:212 __unix_dgram_recvmsg+0x4c1/0xdc0 net/unix/af_unix.c:2480 unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2550 ____sys_recvmsg+0x2d9/0x5f0 net/socket.c:-1 ___sys_recvmsg+0x212/0x590 net/socket.c:2769 do_recvmmsg+0x393/0x840 net/socket.c:2863 __sys_recvmmsg net/socket.c:2942 [inline] __do_sys_recvmmsg net/socket.c:2965 [inline] __se_sys_recvmmsg net/socket.c:2958 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2958 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f973419ce59 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:00007f9735027028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f9734416090 RCX: 00007f973419ce59 RDX: 00000000080002c1 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f9734232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9734416128 R14: 00007f9734416090 R15: 00007ffcf3c8fc58 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f8b/0x29b0 drivers/input/tablet/aiptek.c:763 Read of size 4 at addr ffffffff85e9b36c by task syz.7.151/820 CPU: 0 PID: 820 Comm: syz.7.151 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x1f8b/0x29b0 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 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_call_function_single arch/x86/kernel/smp.c:262 [inline] sysvec_call_function_single+0xa6/0xc0 arch/x86/kernel/smp.c:262 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:699 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x55/0x80 kernel/locking/spinlock.c:194 Code: 00 d5 0d 87 e8 8c b8 b4 fc 4c 89 f7 48 83 3d d1 6a 0b 02 00 74 30 e8 9e 0d 00 00 90 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 06 3e 4a fc 65 8b 05 77 03 00 7b 85 c0 74 05 5b 41 5e 5d c3 e8 RSP: 0018:ffffc90000cf75a0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000a06 RCX: dffffc0000000000 RDX: ffffc900009f7678 RSI: 0000000000000a06 RDI: 0000000000000001 RBP: ffffc90000cf75b0 R08: ffff88811d283cc7 R09: 1ffff11023a50798 R10: dffffc0000000000 R11: ffffed1023a50799 R12: ffff888123bfa700 R13: 0000000000000010 R14: 0000000000000001 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:141 [inline] __wake_up_sync_key+0x17b/0x2b0 kernel/sched/wait.c:212 __unix_dgram_recvmsg+0x4c1/0xdc0 net/unix/af_unix.c:2480 unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2550 ____sys_recvmsg+0x2d9/0x5f0 net/socket.c:-1 ___sys_recvmsg+0x212/0x590 net/socket.c:2769 do_recvmmsg+0x393/0x840 net/socket.c:2863 __sys_recvmmsg net/socket.c:2942 [inline] __do_sys_recvmmsg net/socket.c:2965 [inline] __se_sys_recvmmsg net/socket.c:2958 [inline] __x64_sys_recvmmsg+0x195/0x250 net/socket.c:2958 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300 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:0x7f973419ce59 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:00007f9735027028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f9734416090 RCX: 00007f973419ce59 RDX: 00000000080002c1 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f9734232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9734416128 R14: 00007f9734416090 R15: 00007ffcf3c8fc58 The buggy address belongs to the variable: .str.14+0xc/0x20 The buggy address belongs to the physical page: page:ffffea000017a6c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e9b flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea000017a6c8 ffffea000017a6c8 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: ffffffff85e9b200: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 00 00 02 ffffffff85e9b280: f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9 00 00 00 03 >ffffffff85e9b300: f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 00 07 f9 f9 ^ ffffffff85e9b380: 00 00 f9 f9 00 07 f9 f9 00 00 02 f9 f9 f9 f9 f9 ffffffff85e9b400: 00 00 06 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 ================================================================== aiptek 3-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 00 d5 add %dl,%ch 2: 0d 87 e8 8c b8 or $0xb88ce887,%eax 7: b4 fc mov $0xfc,%ah 9: 4c 89 f7 mov %r14,%rdi c: 48 83 3d d1 6a 0b 02 cmpq $0x0,0x20b6ad1(%rip) # 0x20b6ae5 13: 00 14: 74 30 je 0x46 16: e8 9e 0d 00 00 call 0xdb9 1b: 90 nop 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 06 3e 4a fc call 0xfc4a3e35 <-- trapping instruction 2f: 65 8b 05 77 03 00 7b mov %gs:0x7b000377(%rip),%eax # 0x7b0003ad 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