================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:685:31
index 122 is out of range for type 'const int[34]'
CPU: 1 PID: 5651 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
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+0x2443/0x28f0 drivers/input/tablet/aiptek.c:685
__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:unwind_next_frame+0x62e/0x1fd0 arch/x86/kernel/unwind_orc.c:475
Code: e8 03 0f b6 04 28 84 c0 0f 85 ea 14 00 00 49 0f bf 04 24 49 01 c6 e9 a8 08 00 00 4c 8d 73 40 4c 89 f0 48 c1 e8 03 80 3c 28 00 <74> 08 4c 89 f7 e8 08 5a 9a 00 49 8b 16 4d 8d 74 24 01 4c 89 e0 48
RSP: 0018:ffffc9000656f420 EFLAGS: 00000246
RAX: 1ffff92000cadea1 RBX: ffffc9000656f4c8 RCX: ffffffff8e37f430
RDX: ffffffff8eab5cc2 RSI: ffffffff8e37f428 RDI: ffffffff8138fb37
RBP: dffffc0000000000 R08: 000000000000000e R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000cadea5 R12: ffffffff8eab5cc2
R13: ffffffff8eab5cc6 R14: ffffc9000656f508 R15: 1ffffffff1d56b98
arch_stack_walk+0x10c/0x140 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+0x27/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1729 [inline]
slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
__kmem_cache_free+0xb6/0x200 mm/slub.c:3700
tomoyo_realpath_from_path+0x583/0x5c0 security/tomoyo/realpath.c:286
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path2_perm+0x2aa/0x880 security/tomoyo/file.c:922
tomoyo_path_rename+0x14b/0x1a0 security/tomoyo/tomoyo.c:287
security_path_rename+0x168/0x200 security/security.c:1218
do_renameat2+0x691/0xc80 fs/namei.c:5022
__do_sys_rename fs/namei.c:5081 [inline]
__se_sys_rename fs/namei.c:5079 [inline]
__x64_sys_rename+0x82/0x90 fs/namei.c:5079
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f604219dcc7
Code: e8 5e a7 09 00 f7 d8 19 c0 5b c3 0f 1f 84 00 00 00 00 00 b8 ff ff ff ff 5b c3 66 0f 1f 84 00 00 00 00 00 b8 52 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 01 61 17 00 f7 d8 64 89 02 b8
RSP: 002b:00007ffcf0632408 EFLAGS: 00000206 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0000556592be4440 RCX: 00007f604219dcc7
RDX: 0000556592bd0010 RSI: 00007ffcf0632420 RDI: 00007ffcf0632820
RBP: 0000556592be4ba0 R08: 00000000000001e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffcf0632420
R13: 00007ffcf0632820 R14: 0000000000000000 R15: 0000556592bdb630
================================================================================
----------------
Code disassembly (best guess):
0: e8 03 0f b6 04 call 0x4b60f08
5: 28 84 c0 0f 85 ea 14 sub %al,0x14ea850f(%rax,%rax,8)
c: 00 00 add %al,(%rax)
e: 49 0f bf 04 24 movswq (%r12),%rax
13: 49 01 c6 add %rax,%r14
16: e9 a8 08 00 00 jmp 0x8c3
1b: 4c 8d 73 40 lea 0x40(%rbx),%r14
1f: 4c 89 f0 mov %r14,%rax
22: 48 c1 e8 03 shr $0x3,%rax
26: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1)
* 2a: 74 08 je 0x34 <-- trapping instruction
2c: 4c 89 f7 mov %r14,%rdi
2f: e8 08 5a 9a 00 call 0x9a5a3c
34: 49 8b 16 mov (%r14),%rdx
37: 4d 8d 74 24 01 lea 0x1(%r12),%r14
3c: 4c 89 e0 mov %r12,%rax
3f: 48 rex.W