================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 35 is out of range for type 'const int[34]' CPU: 0 PID: 312 Comm: udevd 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:stack_trace_consume_entry+0xa6/0x290 kernel/stacktrace.c:93 Code: 17 84 c0 0f 85 88 01 00 00 45 89 34 24 b0 01 e9 a2 00 00 00 31 c0 e9 9b 00 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 48 89 75 c0 <74> 2b 49 89 ff 49 89 d4 4c 89 45 c8 4d 89 ce 4c 89 55 d0 e8 22 ed RSP: 0018:ffffc9000dbff230 EFLAGS: 00000246 RAX: 1ffff92001b7fe68 RBX: 1ffff92001b7fe6a RCX: 0000000001b7fe00 RDX: dffffc0000000000 RSI: ffffffff83eb2bdf RDI: ffffc9000dbff340 RBP: ffffc9000dbff278 R08: ffffc9000dbff350 R09: ffffc9000dbff348 R10: 0000000000000007 R11: fffff52001b7fe5d R12: ffffc9000dbff34c R13: 1ffff92001b7fe69 R14: 0000000000000000 R15: 1ffff92001b7fe69 arch_stack_walk+0x118/0x150 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] kmem_cache_alloc_node+0x179/0x330 mm/slub.c:3429 __alloc_skb+0xe8/0x4a0 net/core/skbuff.c:508 alloc_skb include/linux/skbuff.h:1322 [inline] alloc_skb_with_frags+0xa8/0x620 net/core/skbuff.c:6176 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2761 unix_dgram_sendmsg+0x5c1/0x1710 net/unix/af_unix.c:1947 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] sock_write_iter+0x2ea/0x3f0 net/socket.c:1133 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:0x7f9a5baa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffcdfd01bb0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9a5c1f7880 RCX: 00007f9a5baa7407 RDX: 0000000000000000 RSI: 00007ffcdfd01c57 RDI: 000000000000000a RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007f9a5c1f76e8 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e64d8c by task udevd/312 CPU: 0 PID: 312 Comm: udevd 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+0x2063/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:stack_trace_consume_entry+0xa6/0x290 kernel/stacktrace.c:93 Code: 17 84 c0 0f 85 88 01 00 00 45 89 34 24 b0 01 e9 a2 00 00 00 31 c0 e9 9b 00 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 48 89 75 c0 <74> 2b 49 89 ff 49 89 d4 4c 89 45 c8 4d 89 ce 4c 89 55 d0 e8 22 ed RSP: 0018:ffffc9000dbff230 EFLAGS: 00000246 RAX: 1ffff92001b7fe68 RBX: 1ffff92001b7fe6a RCX: 0000000001b7fe00 RDX: dffffc0000000000 RSI: ffffffff83eb2bdf RDI: ffffc9000dbff340 RBP: ffffc9000dbff278 R08: ffffc9000dbff350 R09: ffffc9000dbff348 R10: 0000000000000007 R11: fffff52001b7fe5d R12: ffffc9000dbff34c R13: 1ffff92001b7fe69 R14: 0000000000000000 R15: 1ffff92001b7fe69 arch_stack_walk+0x118/0x150 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] kmem_cache_alloc_node+0x179/0x330 mm/slub.c:3429 __alloc_skb+0xe8/0x4a0 net/core/skbuff.c:508 alloc_skb include/linux/skbuff.h:1322 [inline] alloc_skb_with_frags+0xa8/0x620 net/core/skbuff.c:6176 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2761 unix_dgram_sendmsg+0x5c1/0x1710 net/unix/af_unix.c:1947 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] sock_write_iter+0x2ea/0x3f0 net/socket.c:1133 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:0x7f9a5baa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffcdfd01bb0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9a5c1f7880 RCX: 00007f9a5baa7407 RDX: 0000000000000000 RSI: 00007ffcdfd01c57 RDI: 000000000000000a RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007f9a5c1f76e8 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the variable: macroKeyEvents+0x8c/0xe0 The buggy address belongs to the physical page: page:ffffea0000179900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e64 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179908 ffffea0000179908 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: ffffffff85e64c80: f9 f9 f9 f9 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 ffffffff85e64d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e64d80: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ^ ffffffff85e64e00: 00 00 00 04 f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9 ffffffff85e64e80: f9 f9 f9 f9 00 00 00 00 00 03 f9 f9 f9 f9 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 36 is out of range for type 'const int[34]' CPU: 0 PID: 312 Comm: udevd Tainted: G B 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:stack_trace_consume_entry+0xa6/0x290 kernel/stacktrace.c:93 Code: 17 84 c0 0f 85 88 01 00 00 45 89 34 24 b0 01 e9 a2 00 00 00 31 c0 e9 9b 00 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 48 89 75 c0 <74> 2b 49 89 ff 49 89 d4 4c 89 45 c8 4d 89 ce 4c 89 55 d0 e8 22 ed RSP: 0018:ffffc9000dbff230 EFLAGS: 00000246 RAX: 1ffff92001b7fe68 RBX: 1ffff92001b7fe6a RCX: 0000000001b7fe00 RDX: dffffc0000000000 RSI: ffffffff83eb2bdf RDI: ffffc9000dbff340 RBP: ffffc9000dbff278 R08: ffffc9000dbff350 R09: ffffc9000dbff348 R10: 0000000000000007 R11: fffff52001b7fe5d R12: ffffc9000dbff34c R13: 1ffff92001b7fe69 R14: 0000000000000000 R15: 1ffff92001b7fe69 arch_stack_walk+0x118/0x150 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] kmem_cache_alloc_node+0x179/0x330 mm/slub.c:3429 __alloc_skb+0xe8/0x4a0 net/core/skbuff.c:508 alloc_skb include/linux/skbuff.h:1322 [inline] alloc_skb_with_frags+0xa8/0x620 net/core/skbuff.c:6176 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2761 unix_dgram_sendmsg+0x5c1/0x1710 net/unix/af_unix.c:1947 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] sock_write_iter+0x2ea/0x3f0 net/socket.c:1133 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:0x7f9a5baa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffcdfd01bb0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9a5c1f7880 RCX: 00007f9a5baa7407 RDX: 0000000000000000 RSI: 00007ffcdfd01c57 RDI: 000000000000000a RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007f9a5c1f76e8 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================ aiptek 8-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 84 c0 test %al,%al 2: 0f 85 88 01 00 00 jne 0x190 8: 45 89 34 24 mov %r14d,(%r12) c: b0 01 mov $0x1,%al e: e9 a2 00 00 00 jmp 0xb5 13: 31 c0 xor %eax,%eax 15: e9 9b 00 00 00 jmp 0xb5 1a: 48 89 f8 mov %rdi,%rax 1d: 48 c1 e8 03 shr $0x3,%rax 21: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) 25: 48 89 75 c0 mov %rsi,-0x40(%rbp) * 29: 74 2b je 0x56 <-- trapping instruction 2b: 49 89 ff mov %rdi,%r15 2e: 49 89 d4 mov %rdx,%r12 31: 4c 89 45 c8 mov %r8,-0x38(%rbp) 35: 4d 89 ce mov %r9,%r14 38: 4c 89 55 d0 mov %r10,-0x30(%rbp) 3c: e8 .byte 0xe8 3d: 22 ed and %ch,%ch