================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 261 is out of range for type 'const int[34]'
CPU: 0 PID: 6349 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+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:__orc_find arch/x86/kernel/unwind_orc.c:49 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
RIP: 0010:unwind_next_frame+0x1233/0x1fd0 arch/x86/kernel/unwind_orc.c:448
Code: 00 00 fc ff df 0f b6 04 08 84 c0 75 27 49 63 07 4c 01 f8 49 8d 4f 04 4c 39 f0 48 0f 46 e9 49 8d 47 fc 4c 0f 47 e8 4d 0f 46 e7 <4c> 39 ed 76 a8 e9 ec ef ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 7c
RSP: 0018:ffffc9000cfe7120 EFLAGS: 00000287
RAX: ffffffff8e379a90 RBX: ffffc9000cfe71c8 RCX: ffffffff8e379a98
RDX: ffffffff8eab056c RSI: ffffffff8e379a94 RDI: ffffffff8138fb37
RBP: ffffffff8e379a98 R08: 0000000000000001 R09: 0000000000000007
R10: dffffc0000000000 R11: fffff520019fce45 R12: ffffffff8e379a94
R13: ffffffff8e379a94 R14: ffffffff81e0a2fc R15: ffffffff8e379a94
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_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
__do_kmalloc_node mm/slab_common.c:936 [inline]
__kmalloc+0xb3/0x240 mm/slab_common.c:949
kmalloc include/linux/slab.h:568 [inline]
kzalloc include/linux/slab.h:699 [inline]
tomoyo_encode2 security/tomoyo/realpath.c:45 [inline]
tomoyo_encode+0x28a/0x550 security/tomoyo/realpath.c:80
tomoyo_realpath_from_path+0x578/0x5c0 security/tomoyo/realpath.c:283
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_check_open_permission+0x212/0x440 security/tomoyo/file.c:771
security_file_open+0x5e/0xa0 security/security.c:1682
do_dentry_open+0x2fd/0x10b0 fs/open.c:869
do_open fs/namei.c:3634 [inline]
path_openat+0x2674/0x2f10 fs/namei.c:3791
do_filp_open+0x1ee/0x420 fs/namei.c:3818
do_sys_openat2+0x14b/0x4f0 fs/open.c:1320
do_sys_open fs/open.c:1336 [inline]
__do_sys_openat fs/open.c:1352 [inline]
__se_sys_openat fs/open.c:1347 [inline]
__x64_sys_openat+0x135/0x160 fs/open.c:1347
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:0x7fe54aaa7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffd096f78c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fe54b181880 RCX: 00007fe54aaa7407
RDX: 0000000000080000 RSI: 0000558ef5465cc0 RDI: ffffffffffffff9c
RBP: 0000558ef5469830 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd09708080
R13: 0000000000000003 R14: 0000558ecd81500c R15: 0000000000000000
================================================================================
----------------
Code disassembly (best guess), 5 bytes skipped:
0: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax
4: 84 c0 test %al,%al
6: 75 27 jne 0x2f
8: 49 63 07 movslq (%r15),%rax
b: 4c 01 f8 add %r15,%rax
e: 49 8d 4f 04 lea 0x4(%r15),%rcx
12: 4c 39 f0 cmp %r14,%rax
15: 48 0f 46 e9 cmovbe %rcx,%rbp
19: 49 8d 47 fc lea -0x4(%r15),%rax
1d: 4c 0f 47 e8 cmova %rax,%r13
21: 4d 0f 46 e7 cmovbe %r15,%r12
* 25: 4c 39 ed cmp %r13,%rbp <-- trapping instruction
28: 76 a8 jbe 0xffffffd2
2a: e9 ec ef ff ff jmp 0xfffff01b
2f: 44 89 f9 mov %r15d,%ecx
32: 80 e1 07 and $0x7,%cl
35: 80 c1 03 add $0x3,%cl
38: 38 c1 cmp %al,%cl
3a: 7c .byte 0x7c