================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 2312 is out of range for type 'const int[34]' CPU: 0 PID: 5857 Comm: kworker/0:8 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 ubsan_epilogue+0xa/0x30 lib/ubsan.c:217 __ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348 aiptek_irq+0x1eb8/0x2920 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1648 dummy_timer+0xa58/0x34e0 drivers/usb/gadget/udc/dummy_hcd.c:2017 __run_hrtimer kernel/time/hrtimer.c:1754 [inline] __hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818 hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xc0/0x120 kernel/locking/spinlock.c:194 Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 fb 4e c6 f6 65 8b 05 5c 1d 6d 75 85 c0 74 3c 48 c7 04 24 0e 36 RSP: 0018:ffffc90004b16820 EFLAGS: 00000206 RAX: dffffc0000000004 RBX: 0000000000000a02 RCX: 29aaff608fe75300 RDX: dffffc0000000000 RSI: ffffffff8acacbe0 RDI: 0000000000000001 RBP: ffffc90004b168b0 R08: ffffffff911eb53f R09: 1ffffffff223d6a7 R10: dffffc0000000000 R11: fffffbfff223d6a8 R12: dffffc0000000000 R13: ffff8880b8e3cfd8 R14: ffff88807da1a800 R15: 1ffff92000962d04 class_raw_spinlock_irqsave_destructor include/linux/spinlock.h:524 [inline] try_to_wake_up+0x680/0x10e0 kernel/sched/core.c:4233 wake_up_process kernel/sched/core.c:4481 [inline] wake_up_q+0xb6/0x100 kernel/sched/core.c:1032 rwsem_wake+0xeb/0x130 kernel/locking/rwsem.c:1214 __up_write kernel/locking/rwsem.c:1376 [inline] up_write+0x1e0/0x410 kernel/locking/rwsem.c:1626 kernfs_add_one+0x149/0x6b0 fs/kernfs/dir.c:-1 kernfs_create_dir_ns+0xde/0x120 fs/kernfs/dir.c:1071 sysfs_create_dir_ns+0x130/0x2a0 fs/sysfs/dir.c:59 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x617/0xc90 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_add+0x164/0x240 lib/kobject.c:426 device_add+0x3fa/0xc40 drivers/base/core.c:3623 cdev_device_add+0x1c6/0x380 fs/char_dev.c:556 mousedev_create+0x56a/0x690 drivers/input/mousedev.c:907 mousedev_connect+0x26/0x3a0 drivers/input/mousedev.c:981 input_attach_handler drivers/input/input.c:1064 [inline] input_register_device+0xcb0/0x1050 drivers/input/input.c:2470 aiptek_probe+0x1534/0x1c50 drivers/input/tablet/aiptek.c:1845 usb_probe_interface+0x5c2/0xaf0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x247/0xae0 drivers/base/dd.c:717 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c1/0x420 drivers/base/dd.c:1109 bus_probe_device+0x180/0x260 drivers/base/bus.c:580 device_add+0x87c/0xc40 drivers/base/core.c:3700 usb_set_configuration+0x1ad0/0x2150 drivers/usb/core/message.c:2265 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x12a/0x260 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x247/0xae0 drivers/base/dd.c:717 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c1/0x420 drivers/base/dd.c:1109 bus_probe_device+0x180/0x260 drivers/base/bus.c:580 device_add+0x87c/0xc40 drivers/base/core.c:3700 usb_new_device+0x995/0x1550 drivers/usb/core/hub.c:2660 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ================================================================================ ---------------- Code disassembly (best guess): 0: c7 44 24 20 00 00 00 movl $0x0,0x20(%rsp) 7: 00 8: 9c pushf 9: 8f 44 24 20 pop 0x20(%rsp) d: f7 44 24 20 00 02 00 testl $0x200,0x20(%rsp) 14: 00 15: 41 c6 04 07 f8 movb $0xf8,(%r15,%rax,1) 1a: 75 4b jne 0x67 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 fb 4e c6 f6 call 0xf6c64f2a <-- trapping instruction 2f: 65 8b 05 5c 1d 6d 75 mov %gs:0x756d1d5c(%rip),%eax # 0x756d1d92 36: 85 c0 test %eax,%eax 38: 74 3c je 0x76 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 04 24 add $0x24,%al 3e: 0e (bad) 3f: 36 ss