================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 547 is out of range for type 'const int[34]'
CPU: 0 PID: 4267 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x1eaa/0x28f0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1675
dummy_timer+0x8d0/0x3330 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x54a/0xd50 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x183/0x2a0 kernel/time/hrtimer.c:1832
handle_softirqs+0x2a1/0x930 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:orc_ip arch/x86/kernel/unwind_orc.c:30 [inline]
RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
RIP: 0010:unwind_next_frame+0x135a/0x20b0 arch/x86/kernel/unwind_orc.c:448
Code: c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 4d 8d 74 45 00 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 <84> c0 75 27 49 63 06 4c 01 f0 49 8d 4e 04 48 39 e8 4c 0f 46 e9 49
RSP: 0018:ffffc900041f7410 EFLAGS: 00000a07
RAX: 0000000000000000 RBX: ffffc900041f74e8 RCX: dffffc0000000000
RDX: ffffffff8eca939c RSI: ffffffff8e4c7c20 RDI: ffffffff81391adf
RBP: ffffffff83cc1b7e R08: 0000000000000010 R09: 0000000000000007
R10: dffffc0000000000 R11: fffff5200083eea9 R12: ffffffff8e4c7c5c
R13: ffffffff8e4c7c20 R14: ffffffff8e4c7c3c R15: ffffffff8e4c7c20
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+0x2d/0x50 mm/kasan/generic.c:516
____kasan_slab_free+0x126/0x1e0 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+0x131/0x1a0 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
__kmem_cache_free+0xb6/0x1f0 mm/slub.c:3700
tomoyo_realpath_from_path+0x599/0x5d0 security/tomoyo/realpath.c:286
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x26f/0x610 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x120 security/security.c:1362
vfs_getattr+0x26/0x3a0 fs/stat.c:158
vfs_statx+0x168/0x620 fs/stat.c:233
vfs_fstatat fs/stat.c:267 [inline]
__do_sys_newfstatat fs/stat.c:437 [inline]
__se_sys_newfstatat fs/stat.c:431 [inline]
__x64_sys_newfstatat+0x190/0x240 fs/stat.c:431
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:0x7fa1cc311b0a
Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7
RSP: 002b:00007ffdb06f8ad8 EFLAGS: 00000202 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00005573a772e1e3 RCX: 00007fa1cc311b0a
RDX: 00007ffdb06f8ae0 RSI: 00007ffdb06f8b70 RDI: 00000000ffffff9c
RBP: 00005573ae925830 R08: 00005573a772e1e3 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000202 R12: 00005573ae925920
R13: 00007ffdb06f8b70 R14: 00007ffdb06fb580 R15: 00005573a7734bcc
================================================================================
----------------
Code disassembly (best guess):
0: c1 48 c1 f9 rorl $0xf9,-0x3f(%rax)
4: 02 48 c1 add -0x3f(%rax),%cl
7: e8 3f 48 01 c8 call 0xc801484b
c: 48 83 e0 fe and $0xfffffffffffffffe,%rax
10: 4d 8d 74 45 00 lea 0x0(%r13,%rax,2),%r14
15: 4c 89 f0 mov %r14,%rax
18: 48 c1 e8 03 shr $0x3,%rax
1c: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
23: fc ff df
26: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax
* 2a: 84 c0 test %al,%al <-- trapping instruction
2c: 75 27 jne 0x55
2e: 49 63 06 movslq (%r14),%rax
31: 4c 01 f0 add %r14,%rax
34: 49 8d 4e 04 lea 0x4(%r14),%rcx
38: 48 39 e8 cmp %rbp,%rax
3b: 4c 0f 46 e9 cmovbe %rcx,%r13
3f: 49 rex.WB