================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 1798 is out of range for type 'const int[34]'
CPU: 1 PID: 4640 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+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:tomoyo_pathcmp security/tomoyo/common.h:1167 [inline]
RIP: 0010:tomoyo_path_matches_pattern+0x108/0x260 security/tomoyo/util.c:946
Code: 1c 24 48 89 df 4c 89 f6 4c 89 ea e8 32 22 4c 06 89 c5 31 ff 89 c6 e8 37 8e ad fd 85 ed 0f 84 8b 00 00 00 e8 ca 8a ad fd eb 73 <49> 83 c4 08 4c 89 e0 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 fa 00 00
RSP: 0018:ffffc90005107578 EFLAGS: 00000246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff88801d721e00
RDX: 0000000000000000 RSI: ffff88802fd07818 RDI: ffff88802fd07824
RBP: ffff88802fd07827 R08: ffff88801d721e00 R09: 0000000000000002
R10: 000000000000005c R11: 0000000000000000 R12: ffffc900051076e0
R13: 0000000000000011 R14: ffff88802fd07828 R15: ffff88802fd07818
tomoyo_compare_name_union security/tomoyo/file.c:87 [inline]
tomoyo_check_path_acl+0x111/0x1c0 security/tomoyo/file.c:260
tomoyo_check_acl+0x139/0x3f0 security/tomoyo/domain.c:175
tomoyo_path_permission+0x1a6/0x3a0 security/tomoyo/file.c:586
tomoyo_check_open_permission+0x29b/0x440 security/tomoyo/file.c:777
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:0x7f09436a7407
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:00007ffff949bcd0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0943dec880 RCX: 00007f09436a7407
RDX: 0000000000080000 RSI: 00007ffff949be50 RDI: ffffffffffffff9c
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000559acc6537f5
R13: 0000559acc6537f5 R14: 0000000000000001 R15: 0000559acc66e140
================================================================================
----------------
Code disassembly (best guess):
0: 1c 24 sbb $0x24,%al
2: 48 89 df mov %rbx,%rdi
5: 4c 89 f6 mov %r14,%rsi
8: 4c 89 ea mov %r13,%rdx
b: e8 32 22 4c 06 call 0x64c2242
10: 89 c5 mov %eax,%ebp
12: 31 ff xor %edi,%edi
14: 89 c6 mov %eax,%esi
16: e8 37 8e ad fd call 0xfdad8e52
1b: 85 ed test %ebp,%ebp
1d: 0f 84 8b 00 00 00 je 0xae
23: e8 ca 8a ad fd call 0xfdad8af2
28: eb 73 jmp 0x9d
* 2a: 49 83 c4 08 add $0x8,%r12 <-- trapping instruction
2e: 4c 89 e0 mov %r12,%rax
31: 48 c1 e8 03 shr $0x3,%rax
35: 0f b6 04 18 movzbl (%rax,%rbx,1),%eax
39: 84 c0 test %al,%al
3b: 0f .byte 0xf
3c: 85 fa test %edi,%edx