================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 33414 is out of range for type 'const int[34]' CPU: 0 PID: 6 Comm: kworker/0:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: usb_hub_wq hub_event 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:update_stack_state+0x2c2/0x490 arch/x86/kernel/unwind_frame.c:212 Code: 4c 8b 75 98 74 24 44 3b 6d bc 75 1e 48 8b 45 b0 48 39 45 c0 73 14 31 c0 48 81 c4 88 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 <4d> 85 f6 74 76 49 bd 00 00 00 00 00 fc ff df 48 8b 45 a8 42 80 3c RSP: 0018:ffffc900000671e8 EFLAGS: 00000216 RAX: ffffc900000676a8 RBX: ffffc90000067310 RCX: ffffc90000067601 RDX: ffffc900000676d0 RSI: 1ffff9200000ce62 RDI: ffffc90000067360 RBP: ffffc90000067298 R08: ffffc900000673d0 R09: ffffc900000673c8 R10: 0000000000000002 R11: fffff5200000ce6d R12: 1ffff9200000ce69 R13: 0000000000000001 R14: 0000000000000000 R15: ffffc90000068000 unwind_next_frame+0x39e/0x660 arch/x86/kernel/unwind_frame.c:315 arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:25 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_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 usb_control_msg+0x2d5/0x3f0 drivers/usb/core/message.c:172 usb_get_string+0xa8/0x3d0 drivers/usb/core/message.c:901 usb_string_sub+0x7f/0x450 drivers/usb/core/message.c:940 usb_string+0x38e/0x6b0 drivers/usb/core/message.c:1045 usb_cache_string+0x80/0x130 drivers/usb/core/message.c:1087 usb_enumerate_device drivers/usb/core/hub.c:2529 [inline] usb_new_device+0x326/0x1500 drivers/usb/core/hub.c:2654 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 33415 is out of range for type 'const int[34]' CPU: 0 PID: 6 Comm: kworker/0:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: usb_hub_wq hub_event 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:update_stack_state+0x2c2/0x490 arch/x86/kernel/unwind_frame.c:212 Code: 4c 8b 75 98 74 24 44 3b 6d bc 75 1e 48 8b 45 b0 48 39 45 c0 73 14 31 c0 48 81 c4 88 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 <4d> 85 f6 74 76 49 bd 00 00 00 00 00 fc ff df 48 8b 45 a8 42 80 3c RSP: 0018:ffffc900000671e8 EFLAGS: 00000216 RAX: ffffc900000676a8 RBX: ffffc90000067310 RCX: ffffc90000067601 RDX: ffffc900000676d0 RSI: 1ffff9200000ce62 RDI: ffffc90000067360 RBP: ffffc90000067298 R08: ffffc900000673d0 R09: ffffc900000673c8 R10: 0000000000000002 R11: fffff5200000ce6d R12: 1ffff9200000ce69 R13: 0000000000000001 R14: 0000000000000000 R15: ffffc90000068000 unwind_next_frame+0x39e/0x660 arch/x86/kernel/unwind_frame.c:315 arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:25 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_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 usb_control_msg+0x2d5/0x3f0 drivers/usb/core/message.c:172 usb_get_string+0xa8/0x3d0 drivers/usb/core/message.c:901 usb_string_sub+0x7f/0x450 drivers/usb/core/message.c:940 usb_string+0x38e/0x6b0 drivers/usb/core/message.c:1045 usb_cache_string+0x80/0x130 drivers/usb/core/message.c:1087 usb_enumerate_device drivers/usb/core/hub.c:2529 [inline] usb_new_device+0x326/0x1500 drivers/usb/core/hub.c:2654 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ================================================================================ aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 4c 8b 75 98 mov -0x68(%rbp),%r14 4: 74 24 je 0x2a 6: 44 3b 6d bc cmp -0x44(%rbp),%r13d a: 75 1e jne 0x2a c: 48 8b 45 b0 mov -0x50(%rbp),%rax 10: 48 39 45 c0 cmp %rax,-0x40(%rbp) 14: 73 14 jae 0x2a 16: 31 c0 xor %eax,%eax 18: 48 81 c4 88 00 00 00 add $0x88,%rsp 1f: 5b pop %rbx 20: 41 5c pop %r12 22: 41 5d pop %r13 24: 41 5e pop %r14 26: 41 5f pop %r15 28: 5d pop %rbp 29: c3 ret * 2a: 4d 85 f6 test %r14,%r14 <-- trapping instruction 2d: 74 76 je 0xa5 2f: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 36: fc ff df 39: 48 8b 45 a8 mov -0x58(%rbp),%rax 3d: 42 rex.X 3e: 80 .byte 0x80 3f: 3c .byte 0x3c