================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 58388 is out of range for type 'const int[34]'
CPU: 1 PID: 3598 Comm: kworker/1:3 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_lvl+0x188/0x24e lib/dump_stack.c:106
ubsan_epilogue+0xa/0x30 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x1e87/0x28f0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1673
dummy_timer+0xa21/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832
handle_softirqs+0x291/0x910 kernel/softirq.c:596
__do_softirq kernel/softirq.c:630 [inline]
invoke_softirq kernel/softirq.c:470 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679
irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:kasan_check_range+0x1b6/0x290 mm/kasan/generic.c:-1
Code: df 49 8d 5f 07 4d 85 ff 49 0f 49 df 48 83 e3 f8 49 29 df 74 0e 41 80 3b 00 75 69 49 ff c3 49 ff cf 75 f2 5b 41 5c 41 5e 41 5f <5d> c3 45 84 ff 0f 85 91 00 00 00 41 f7 c7 00 ff 00 00 0f 85 89 00
RSP: 0018:ffffc9000e026ad0 EFLAGS: 00000256
RAX: dffffc0000000001 RBX: ffff8880174734d8 RCX: ffffffff8a39abaf
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88807e20bc00
RBP: ffffc9000e026cd0 R08: ffff88807e20bc07 R09: 1ffff1100fc41780
R10: dffffc0000000000 R11: ffffed100fc41781 R12: 0000000000000001
R13: 1ffff92001c04d70 R14: ffff88807e20bc00 R15: 1ffff11002e8e69c
instrument_atomic_read include/linux/instrumented.h:72 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
test_ti_thread_flag include/linux/thread_info.h:118 [inline]
need_resched include/linux/sched.h:2237 [inline]
rwsem_optimistic_spin kernel/locking/rwsem.c:922 [inline]
rwsem_down_write_slowpath+0x49f/0x1160 kernel/locking/rwsem.c:1121
kernfs_add_one+0x95/0x8f0 fs/kernfs/dir.c:768
kernfs_create_link+0x160/0x200 fs/kernfs/symlink.c:48
sysfs_do_create_link_sd+0x83/0x110 fs/sysfs/symlink.c:44
device_add_class_symlinks drivers/base/core.c:3419 [inline]
device_add+0x641/0x1050 drivers/base/core.c:3645
cdev_device_add+0x19d/0x340 fs/char_dev.c:549
evdev_connect+0x350/0x3f0 drivers/input/evdev.c:1386
input_attach_handler drivers/input/input.c:1060 [inline]
input_register_device+0xd91/0x12d0 drivers/input/input.c:2470
aiptek_probe+0x14a1/0x1ba0 drivers/input/tablet/aiptek.c:1845
usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:639
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:805
driver_probe_device+0x4f/0x420 drivers/base/dd.c:835
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:963
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1035
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3712
usb_set_configuration+0x19d5/0x2030 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x126/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:639
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:805
driver_probe_device+0x4f/0x420 drivers/base/dd.c:835
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:963
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1035
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3712
usb_new_device+0xa01/0x15e0 drivers/usb/core/hub.c:2659
hub_port_connect drivers/usb/core/hub.c:5517 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5657 [inline]
port_event drivers/usb/core/hub.c:5817 [inline]
hub_event+0x2b2f/0x5200 drivers/usb/core/hub.c:5899
process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292
process_scheduled_works kernel/workqueue.c:2355 [inline]
worker_thread+0xd6e/0x12a0 kernel/workqueue.c:2441
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
================================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 49 8d 5f 07 lea 0x7(%r15),%rbx
4: 4d 85 ff test %r15,%r15
7: 49 0f 49 df cmovns %r15,%rbx
b: 48 83 e3 f8 and $0xfffffffffffffff8,%rbx
f: 49 29 df sub %rbx,%r15
12: 74 0e je 0x22
14: 41 80 3b 00 cmpb $0x0,(%r11)
18: 75 69 jne 0x83
1a: 49 ff c3 inc %r11
1d: 49 ff cf dec %r15
20: 75 f2 jne 0x14
22: 5b pop %rbx
23: 41 5c pop %r12
25: 41 5e pop %r14
27: 41 5f pop %r15
* 29: 5d pop %rbp <-- trapping instruction
2a: c3 ret
2b: 45 84 ff test %r15b,%r15b
2e: 0f 85 91 00 00 00 jne 0xc5
34: 41 f7 c7 00 ff 00 00 test $0xff00,%r15d
3b: 0f .byte 0xf
3c: 85 .byte 0x85
3d: 89 00 mov %eax,(%rax)