================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 767 is out of range for type 'const int[34]' CPU: 0 PID: 411 Comm: kworker/0:8 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 dump_stack+0x15/0x1c lib/dump_stack.c:135 ubsan_epilogue+0xe/0x40 lib/ubsan.c:148 __ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347 aiptek_irq+0x1fa2/0x2860 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:405 [inline] __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:79 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:120 [inline] RIP: 0010:console_unlock+0xc2c/0x10d0 kernel/printk/printk.c:2497 Code: 00 48 c7 c7 c0 3d ea 86 e8 a1 8a 34 03 80 fb 01 48 8b 5c 24 20 0f 84 7f 04 00 00 e8 be 59 00 00 48 89 5c 24 70 ff 74 24 70 9d <41> c6 45 22 00 48 c7 84 24 90 01 00 00 00 00 00 00 9c 8f 84 24 90 RSP: 0018:ffffc90000e3f1c0 EFLAGS: 00000283 RAX: ffffffff814d8999 RBX: 0000000000000283 RCX: 0000000000100000 RDX: ffffc90003924000 RSI: 0000000000012e1f RDI: 0000000000012e20 RBP: ffffc90000e3f490 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001c7e28 R12: dffffc0000000000 R13: fffff520001c7e48 R14: 0000000000000000 R15: 0000000000000000 vprintk_emit+0x1a3/0x340 kernel/printk/printk.c:2069 dev_vprintk_emit+0x2c5/0x355 drivers/base/core.c:4502 dev_printk_emit+0xeb/0x139 drivers/base/core.c:4513 __dev_printk+0x17f/0x1b0 drivers/base/core.c:4525 _dev_info+0x11b/0x16c drivers/base/core.c:4571 announce_device+0xa7/0x2b0 drivers/usb/core/hub.c:2368 usb_new_device+0x485/0x1460 drivers/usb/core/hub.c:2634 hub_port_connect drivers/usb/core/hub.c:5499 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5887 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff855ae51c by task kworker/0:8/411 CPU: 0 PID: 411 Comm: kworker/0:8 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:405 [inline] __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:79 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:120 [inline] RIP: 0010:console_unlock+0xc2c/0x10d0 kernel/printk/printk.c:2497 Code: 00 48 c7 c7 c0 3d ea 86 e8 a1 8a 34 03 80 fb 01 48 8b 5c 24 20 0f 84 7f 04 00 00 e8 be 59 00 00 48 89 5c 24 70 ff 74 24 70 9d <41> c6 45 22 00 48 c7 84 24 90 01 00 00 00 00 00 00 9c 8f 84 24 90 RSP: 0018:ffffc90000e3f1c0 EFLAGS: 00000283 RAX: ffffffff814d8999 RBX: 0000000000000283 RCX: 0000000000100000 RDX: ffffc90003924000 RSI: 0000000000012e1f RDI: 0000000000012e20 RBP: ffffc90000e3f490 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001c7e28 R12: dffffc0000000000 R13: fffff520001c7e48 R14: 0000000000000000 R15: 0000000000000000 vprintk_emit+0x1a3/0x340 kernel/printk/printk.c:2069 dev_vprintk_emit+0x2c5/0x355 drivers/base/core.c:4502 dev_printk_emit+0xeb/0x139 drivers/base/core.c:4513 __dev_printk+0x17f/0x1b0 drivers/base/core.c:4525 _dev_info+0x11b/0x16c drivers/base/core.c:4571 announce_device+0xa7/0x2b0 drivers/usb/core/hub.c:2368 usb_new_device+0x485/0x1460 drivers/usb/core/hub.c:2634 hub_port_connect drivers/usb/core/hub.c:5499 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5887 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the variable: .str.81+0x1c/0x20 Memory state around the buggy address: ffffffff855ae400: 06 f9 f9 f9 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 ffffffff855ae480: 00 05 f9 f9 00 03 f9 f9 05 f9 f9 f9 07 f9 f9 f9 >ffffffff855ae500: 06 f9 f9 f9 00 00 00 00 00 00 00 00 f9 f9 f9 f9 ^ ffffffff855ae580: 00 05 f9 f9 00 04 f9 f9 06 f9 f9 f9 00 f9 f9 f9 ffffffff855ae600: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 768 is out of range for type 'const int[34]' CPU: 0 PID: 411 Comm: kworker/0:8 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 dump_stack+0x15/0x1c lib/dump_stack.c:135 ubsan_epilogue+0xe/0x40 lib/ubsan.c:148 __ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347 aiptek_irq+0x1e71/0x2860 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1746 dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:405 [inline] __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:79 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:120 [inline] RIP: 0010:console_unlock+0xc2c/0x10d0 kernel/printk/printk.c:2497 Code: 00 48 c7 c7 c0 3d ea 86 e8 a1 8a 34 03 80 fb 01 48 8b 5c 24 20 0f 84 7f 04 00 00 e8 be 59 00 00 48 89 5c 24 70 ff 74 24 70 9d <41> c6 45 22 00 48 c7 84 24 90 01 00 00 00 00 00 00 9c 8f 84 24 90 RSP: 0018:ffffc90000e3f1c0 EFLAGS: 00000283 RAX: ffffffff814d8999 RBX: 0000000000000283 RCX: 0000000000100000 RDX: ffffc90003924000 RSI: 0000000000012e1f RDI: 0000000000012e20 RBP: ffffc90000e3f490 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001c7e28 R12: dffffc0000000000 R13: fffff520001c7e48 R14: 0000000000000000 R15: 0000000000000000 vprintk_emit+0x1a3/0x340 kernel/printk/printk.c:2069 dev_vprintk_emit+0x2c5/0x355 drivers/base/core.c:4502 dev_printk_emit+0xeb/0x139 drivers/base/core.c:4513 __dev_printk+0x17f/0x1b0 drivers/base/core.c:4525 _dev_info+0x11b/0x16c drivers/base/core.c:4571 announce_device+0xa7/0x2b0 drivers/usb/core/hub.c:2368 usb_new_device+0x485/0x1460 drivers/usb/core/hub.c:2634 hub_port_connect drivers/usb/core/hub.c:5499 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5887 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ================================================================================ aiptek 6-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 00 48 c7 add %cl,-0x39(%rax) 3: c7 c0 3d ea 86 e8 mov $0xe886ea3d,%eax 9: a1 8a 34 03 80 fb 01 movabs 0x8b4801fb8003348a,%eax 10: 48 8b 12: 5c pop %rsp 13: 24 20 and $0x20,%al 15: 0f 84 7f 04 00 00 je 0x49a 1b: e8 be 59 00 00 call 0x59de 20: 48 89 5c 24 70 mov %rbx,0x70(%rsp) 25: ff 74 24 70 push 0x70(%rsp) 29: 9d popf * 2a: 41 c6 45 22 00 movb $0x0,0x22(%r13) <-- trapping instruction 2f: 48 c7 84 24 90 01 00 movq $0x0,0x190(%rsp) 36: 00 00 00 00 00 3b: 9c pushf 3c: 8f .byte 0x8f 3d: 84 24 90 test %ah,(%rax,%rdx,4)