------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 35 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 371 Comm: udevd Not tainted syzkaller #0 471281939cd7bfdfff4c6b6074d5d68627c837ba
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
dump_stack+0x19/0x20 lib/dump_stack.c:129
ubsan_epilogue+0xe/0x40 lib/ubsan.c:231
__ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:429
aiptek_irq+0x20cb/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x375/0x540 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x11b/0x410 drivers/usb/core/hcd.c:1732
dummy_timer+0x816/0x4300 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1753 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1817
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1834
handle_softirqs+0x1aa/0x630 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:legitimize_root fs/namei.c:755 [inline]
RIP: 0010:try_to_unlazy+0x4b1/0xb60 fs/namei.c:790
Code: fc ff df 41 0f b6 04 14 84 c0 0f 85 78 05 00 00 48 8b 45 d0 44 89 70 3c 4c 8d a0 d8 00 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 10 <84> c0 49 89 d6 0f 85 76 05 00 00 45 8b 24 24 48 8b 45 a8 42 0f b6
RSP: 0018:ffffc9000c97f780 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: ffffc9000c97f9fc RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000c97f810 R08: ffffc9000c97f707 R09: 1ffff9200192fee0
R10: dffffc0000000000 R11: fffff5200192fee1 R12: ffffc9000c97fa98
R13: ffffc9000c97f9e0 R14: 0000000000000006 R15: 1ffff9200192ff3c
may_lookup fs/namei.c:1777 [inline]
link_path_walk+0x7d3/0xec0 fs/namei.c:2374
path_lookupat+0x95/0x4a0 fs/namei.c:2587
filename_lookup+0x228/0x580 fs/namei.c:2617
vfs_statx+0x106/0x210 fs/stat.c:312
vfs_fstatat+0xe5/0x1d0 fs/stat.c:341
__do_sys_newfstatat fs/stat.c:505 [inline]
__se_sys_newfstatat+0x127/0x3c0 fs/stat.c:499
__x64_sys_newfstatat+0x9f/0xc0 fs/stat.c:499
x64_sys_call+0x1821/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:263
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f719f511b0a
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:00007ffd2992b2e8 EFLAGS: 00000202 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000561fb6478091 RCX: 00007f719f511b0a
RDX: 00007ffd2992b2f0 RSI: 00007ffd2992b380 RDI: 00000000ffffff9c
RBP: 0000561fb64535d0 R08: 0000561fb6478091 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000202 R12: 0000561fb64536c0
R13: 00007ffd2992b380 R14: 0000561f9329fca4 R15: 0000561f9329fbcc
---[ end trace ]---
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x20e9/0x2a00 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff8670eb4c by task udevd/371
CPU: 1 UID: 0 PID: 371 Comm: udevd Not tainted syzkaller #0 471281939cd7bfdfff4c6b6074d5d68627c837ba
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
print_address_description+0x71/0x210 mm/kasan/report.c:377
print_report+0x4a/0x70 mm/kasan/report.c:481
kasan_report+0x162/0x1a0 mm/kasan/report.c:594
__asan_report_load4_noabort+0x18/0x20 mm/kasan/report_generic.c:380
aiptek_irq+0x20e9/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x375/0x540 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x11b/0x410 drivers/usb/core/hcd.c:1732
dummy_timer+0x816/0x4300 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1753 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1817
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1834
handle_softirqs+0x1aa/0x630 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:legitimize_root fs/namei.c:755 [inline]
RIP: 0010:try_to_unlazy+0x4b1/0xb60 fs/namei.c:790
Code: fc ff df 41 0f b6 04 14 84 c0 0f 85 78 05 00 00 48 8b 45 d0 44 89 70 3c 4c 8d a0 d8 00 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 10 <84> c0 49 89 d6 0f 85 76 05 00 00 45 8b 24 24 48 8b 45 a8 42 0f b6
RSP: 0018:ffffc9000c97f780 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: ffffc9000c97f9fc RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000c97f810 R08: ffffc9000c97f707 R09: 1ffff9200192fee0
R10: dffffc0000000000 R11: fffff5200192fee1 R12: ffffc9000c97fa98
R13: ffffc9000c97f9e0 R14: 0000000000000006 R15: 1ffff9200192ff3c
may_lookup fs/namei.c:1777 [inline]
link_path_walk+0x7d3/0xec0 fs/namei.c:2374
path_lookupat+0x95/0x4a0 fs/namei.c:2587
filename_lookup+0x228/0x580 fs/namei.c:2617
vfs_statx+0x106/0x210 fs/stat.c:312
vfs_fstatat+0xe5/0x1d0 fs/stat.c:341
__do_sys_newfstatat fs/stat.c:505 [inline]
__se_sys_newfstatat+0x127/0x3c0 fs/stat.c:499
__x64_sys_newfstatat+0x9f/0xc0 fs/stat.c:499
x64_sys_call+0x1821/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:263
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f719f511b0a
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:00007ffd2992b2e8 EFLAGS: 00000202 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000561fb6478091 RCX: 00007f719f511b0a
RDX: 00007ffd2992b2f0 RSI: 00007ffd2992b380 RDI: 00000000ffffff9c
RBP: 0000561fb64535d0 R08: 0000561fb6478091 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000202 R12: 0000561fb64536c0
R13: 00007ffd2992b380 R14: 0000561f9329fca4 R15: 0000561f9329fbcc
The buggy address belongs to the variable:
macroKeyEvents+0x8c/0xe0
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x670e
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c388 ffffea000019c388 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)
Memory state around the buggy address:
ffffffff8670ea00: 07 f9 f9 f9 00 00 00 04 f9 f9 f9 f9 00 00 00 00
ffffffff8670ea80: 00 00 04 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
>ffffffff8670eb00: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
^
ffffffff8670eb80: 00 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9
ffffffff8670ec00: 00 00 00 00 06 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 36 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 371 Comm: udevd Tainted: G B syzkaller #0 471281939cd7bfdfff4c6b6074d5d68627c837ba
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
dump_stack+0x19/0x20 lib/dump_stack.c:129
ubsan_epilogue+0xe/0x40 lib/ubsan.c:231
__ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:429
aiptek_irq+0x1f85/0x2a00 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x375/0x540 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x11b/0x410 drivers/usb/core/hcd.c:1732
dummy_timer+0x816/0x4300 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1753 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1817
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1834
handle_softirqs+0x1aa/0x630 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:legitimize_root fs/namei.c:755 [inline]
RIP: 0010:try_to_unlazy+0x4b1/0xb60 fs/namei.c:790
Code: fc ff df 41 0f b6 04 14 84 c0 0f 85 78 05 00 00 48 8b 45 d0 44 89 70 3c 4c 8d a0 d8 00 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 10 <84> c0 49 89 d6 0f 85 76 05 00 00 45 8b 24 24 48 8b 45 a8 42 0f b6
RSP: 0018:ffffc9000c97f780 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: ffffc9000c97f9fc RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000c97f810 R08: ffffc9000c97f707 R09: 1ffff9200192fee0
R10: dffffc0000000000 R11: fffff5200192fee1 R12: ffffc9000c97fa98
R13: ffffc9000c97f9e0 R14: 0000000000000006 R15: 1ffff9200192ff3c
may_lookup fs/namei.c:1777 [inline]
link_path_walk+0x7d3/0xec0 fs/namei.c:2374
path_lookupat+0x95/0x4a0 fs/namei.c:2587
filename_lookup+0x228/0x580 fs/namei.c:2617
vfs_statx+0x106/0x210 fs/stat.c:312
vfs_fstatat+0xe5/0x1d0 fs/stat.c:341
__do_sys_newfstatat fs/stat.c:505 [inline]
__se_sys_newfstatat+0x127/0x3c0 fs/stat.c:499
__x64_sys_newfstatat+0x9f/0xc0 fs/stat.c:499
x64_sys_call+0x1821/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:263
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f719f511b0a
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:00007ffd2992b2e8 EFLAGS: 00000202 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000561fb6478091 RCX: 00007f719f511b0a
RDX: 00007ffd2992b2f0 RSI: 00007ffd2992b380 RDI: 00000000ffffff9c
RBP: 0000561fb64535d0 R08: 0000561fb6478091 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000202 R12: 0000561fb64536c0
R13: 00007ffd2992b380 R14: 0000561f9329fca4 R15: 0000561f9329fbcc
---[ end trace ]---
aiptek 2-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: fc cld
1: ff lcall (bad)
2: df 41 0f filds 0xf(%rcx)
5: b6 04 mov $0x4,%dh
7: 14 84 adc $0x84,%al
9: c0 0f 85 rorb $0x85,(%rdi)
c: 78 05 js 0x13
e: 00 00 add %al,(%rax)
10: 48 8b 45 d0 mov -0x30(%rbp),%rax
14: 44 89 70 3c mov %r14d,0x3c(%rax)
18: 4c 8d a0 d8 00 00 00 lea 0xd8(%rax),%r12
1f: 4c 89 e0 mov %r12,%rax
22: 48 c1 e8 03 shr $0x3,%rax
26: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
* 2a: 84 c0 test %al,%al <-- trapping instruction
2c: 49 89 d6 mov %rdx,%r14
2f: 0f 85 76 05 00 00 jne 0x5ab
35: 45 8b 24 24 mov (%r12),%r12d
39: 48 8b 45 a8 mov -0x58(%rbp),%rax
3d: 42 rex.X
3e: 0f .byte 0xf
3f: b6 .byte 0xb6