================================================================================ 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: 1832 Comm: syz.4.352 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770 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:preempt_latency_start kernel/sched/core.c:5884 [inline] RIP: 0010:preempt_count_add+0xc9/0x1b0 kernel/sched/core.c:5907 Code: e8 9c ed 08 00 85 c0 74 0b 48 8b 45 00 48 8b 00 48 8b 58 08 65 4c 8b 35 e5 d7 b5 7e 49 81 c6 c8 0a 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 08 73 6a 00 49 89 1e 5b 41 5e 41 RSP: 0018:ffffc90001897658 EFLAGS: 00000a02 RAX: 1ffff110254068f1 RBX: ffffffff84586cb4 RCX: ffffffff87b7d100 RDX: ffff88812a033cc0 RSI: 0000000000000000 RDI: ffffffff84586cb4 RBP: ffffc90001897670 R08: ffff88812a033cc0 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: dffffc0000000000 R13: ffff88810f321e00 R14: ffff88812a034788 R15: dffffc0000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock+0x6c/0xf0 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] unix_dgram_sendmsg+0x954/0x1710 net/unix/af_unix.c:1990 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] ____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2563 __sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649 __do_sys_sendmmsg net/socket.c:2678 [inline] __se_sys_sendmmsg net/socket.c:2675 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675 x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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:0x7fda4f59e559 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:00007fda50408028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fda4f825fa0 RCX: 00007fda4f59e559 RDX: 0000000000000651 RSI: 00002000000001c0 RDI: 0000000000000004 RBP: 00007fda4f635ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fda4f826038 R14: 00007fda4f825fa0 R15: 00007ffcc306aef8 ================================================================================ ================================================================================ 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: 1832 Comm: syz.4.352 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770 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:preempt_latency_start kernel/sched/core.c:5884 [inline] RIP: 0010:preempt_count_add+0xc9/0x1b0 kernel/sched/core.c:5907 Code: e8 9c ed 08 00 85 c0 74 0b 48 8b 45 00 48 8b 00 48 8b 58 08 65 4c 8b 35 e5 d7 b5 7e 49 81 c6 c8 0a 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 08 73 6a 00 49 89 1e 5b 41 5e 41 RSP: 0018:ffffc90001897658 EFLAGS: 00000a02 RAX: 1ffff110254068f1 RBX: ffffffff84586cb4 RCX: ffffffff87b7d100 RDX: ffff88812a033cc0 RSI: 0000000000000000 RDI: ffffffff84586cb4 RBP: ffffc90001897670 R08: ffff88812a033cc0 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: dffffc0000000000 R13: ffff88810f321e00 R14: ffff88812a034788 R15: dffffc0000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock+0x6c/0xf0 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] unix_dgram_sendmsg+0x954/0x1710 net/unix/af_unix.c:1990 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] ____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2563 __sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649 __do_sys_sendmmsg net/socket.c:2678 [inline] __se_sys_sendmmsg net/socket.c:2675 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675 x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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:0x7fda4f59e559 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:00007fda50408028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fda4f825fa0 RCX: 00007fda4f59e559 RDX: 0000000000000651 RSI: 00002000000001c0 RDI: 0000000000000004 RBP: 00007fda4f635ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fda4f826038 R14: 00007fda4f825fa0 R15: 00007ffcc306aef8 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763 Read of size 4 at addr ffffffff85e66740 by task syz.4.352/1832 CPU: 1 PID: 1832 Comm: syz.4.352 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770 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:preempt_latency_start kernel/sched/core.c:5884 [inline] RIP: 0010:preempt_count_add+0xc9/0x1b0 kernel/sched/core.c:5907 Code: e8 9c ed 08 00 85 c0 74 0b 48 8b 45 00 48 8b 00 48 8b 58 08 65 4c 8b 35 e5 d7 b5 7e 49 81 c6 c8 0a 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 08 73 6a 00 49 89 1e 5b 41 5e 41 RSP: 0018:ffffc90001897658 EFLAGS: 00000a02 RAX: 1ffff110254068f1 RBX: ffffffff84586cb4 RCX: ffffffff87b7d100 RDX: ffff88812a033cc0 RSI: 0000000000000000 RDI: ffffffff84586cb4 RBP: ffffc90001897670 R08: ffff88812a033cc0 R09: 0000000000000002 R10: 000000000000000a R11: 0000000000000002 R12: dffffc0000000000 R13: ffff88810f321e00 R14: ffff88812a034788 R15: dffffc0000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock+0x6c/0xf0 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] unix_dgram_sendmsg+0x954/0x1710 net/unix/af_unix.c:1990 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] ____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2563 __sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649 __do_sys_sendmmsg net/socket.c:2678 [inline] __se_sys_sendmmsg net/socket.c:2675 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675 x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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:0x7fda4f59e559 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:00007fda50408028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fda4f825fa0 RCX: 00007fda4f59e559 RDX: 0000000000000651 RSI: 00002000000001c0 RDI: 0000000000000004 RBP: 00007fda4f635ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fda4f826038 R14: 00007fda4f825fa0 R15: 00007ffcc306aef8 The buggy address belongs to the variable: aiptek_ids+0x120/0x160 The buggy address belongs to the physical page: page:ffffea0000179980 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e66 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179988 ffffea0000179988 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: ffffffff85e66600: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85e66680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e66700: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9 ^ ffffffff85e66780: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 05 f9 f9 f9 ffffffff85e66800: 07 f9 f9 f9 00 05 f9 f9 04 f9 f9 f9 00 f9 f9 f9 ================================================================== aiptek 7-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: e8 9c ed 08 00 call 0x8eda1 5: 85 c0 test %eax,%eax 7: 74 0b je 0x14 9: 48 8b 45 00 mov 0x0(%rbp),%rax d: 48 8b 00 mov (%rax),%rax 10: 48 8b 58 08 mov 0x8(%rax),%rbx 14: 65 4c 8b 35 e5 d7 b5 mov %gs:0x7eb5d7e5(%rip),%r14 # 0x7eb5d801 1b: 7e 1c: 49 81 c6 c8 0a 00 00 add $0xac8,%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 08 73 6a 00 call 0x6a7341 39: 49 89 1e mov %rbx,(%r14) 3c: 5b pop %rbx 3d: 41 5e pop %r14 3f: 41 rex.B