================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 259 is out of range for type 'const int[34]' CPU: 1 PID: 3437 Comm: kworker/1:10 Tainted: G W 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: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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748 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 71 48 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:ffffc90000eb63e0 EFLAGS: 00000246 RAX: ffffffff814d88a9 RBX: 0000000000000246 RCX: 0000000000100000 RDX: ffffc90007ae1000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc90000eb66b0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001d6c6c R12: dffffc0000000000 R13: fffff520001d6c8c 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_warn+0x11b/0x16c drivers/base/core.c:4569 hid_parser_main+0x737/0xac0 drivers/hid/hid-core.c:635 hid_open_report+0x817/0xe50 drivers/hid/hid-core.c:1270 hid_parse include/linux/hid.h:1049 [inline] appleir_probe+0xe5/0x1b0 drivers/hid/hid-appleir.c:300 hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2320 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2472 usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436 usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2654 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 ffffffff855adaec by task kworker/1:10/3437 CPU: 1 PID: 3437 Comm: kworker/1:10 Tainted: G W 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: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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748 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 71 48 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:ffffc90000eb63e0 EFLAGS: 00000246 RAX: ffffffff814d88a9 RBX: 0000000000000246 RCX: 0000000000100000 RDX: ffffc90007ae1000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc90000eb66b0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001d6c6c R12: dffffc0000000000 R13: fffff520001d6c8c 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_warn+0x11b/0x16c drivers/base/core.c:4569 hid_parser_main+0x737/0xac0 drivers/hid/hid-core.c:635 hid_open_report+0x817/0xe50 drivers/hid/hid-core.c:1270 hid_parse include/linux/hid.h:1049 [inline] appleir_probe+0xe5/0x1b0 drivers/hid/hid-appleir.c:300 hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2320 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2472 usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436 usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2654 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.21+0xc/0x20 Memory state around the buggy address: ffffffff855ad980: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 ffffffff855ada00: 00 02 f9 f9 00 00 00 00 00 03 f9 f9 f9 f9 f9 f9 >ffffffff855ada80: 05 f9 f9 f9 07 f9 f9 f9 00 05 f9 f9 04 f9 f9 f9 ^ ffffffff855adb00: 00 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9 07 f9 f9 f9 ffffffff855adb80: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 260 is out of range for type 'const int[34]' CPU: 1 PID: 3437 Comm: kworker/1:10 Tainted: G B W 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: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:1674 usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748 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 71 48 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:ffffc90000eb63e0 EFLAGS: 00000246 RAX: ffffffff814d88a9 RBX: 0000000000000246 RCX: 0000000000100000 RDX: ffffc90007ae1000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc90000eb66b0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff520001d6c6c R12: dffffc0000000000 R13: fffff520001d6c8c 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_warn+0x11b/0x16c drivers/base/core.c:4569 hid_parser_main+0x737/0xac0 drivers/hid/hid-core.c:635 hid_open_report+0x817/0xe50 drivers/hid/hid-core.c:1270 hid_parse include/linux/hid.h:1049 [inline] appleir_probe+0xe5/0x1b0 drivers/hid/hid-appleir.c:300 hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2320 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2472 usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436 usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8ce/0xc00 drivers/base/core.c:3273 usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2654 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 7-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: 71 48 jno 0x53 b: 34 03 xor $0x3,%al d: 80 fb 01 cmp $0x1,%bl 10: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx 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)