------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 6691 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 535 Comm: syz.2.84 Not tainted syzkaller #0 ef3fe522eb78c0a5ba4bdac8f3746cbd31b933a5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x208d/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:__sanitizer_cov_trace_pc+0x5/0x70 kernel/kcov.c:210
Code: e8 20 9e 55 00 5b 5d e9 09 dd 23 04 cc cc cc cc cc cc cc cc cc b8 dc ca 09 50 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <48> 89 e5 48 8b 45 08 65 48 8b 0d fc 84 7b 7e 65 8b 15 fd 84 7b 7e
RSP: 0018:ffffc9000dea7768 EFLAGS: 00000202
RAX: ffffffff81d315c0 RBX: dffffc0000000000 RCX: ffff8881169d62c0
RDX: 0000000000000000 RSI: 000000011449d007 RDI: 0000000000000000
RBP: ffffc9000dea77b0 R08: ffffea0004aaaa77 R09: 1ffffd400095554e
R10: dffffc0000000000 R11: fffff9400095554f R12: ffff88811492f1c8
R13: 000000011449d007 R14: 00007f8e73154000 R15: 1ffff11022925e39
get_locked_pte include/linux/mm.h:2915 [inline]
insert_page mm/memory.c:2183 [inline]
vm_insert_page+0x5cf/0x870 mm/memory.c:2336
kcov_mmap+0xb1/0x120 kernel/kcov.c:506
call_mmap include/linux/fs.h:2203 [inline]
mmap_file mm/internal.h:124 [inline]
__mmap_region mm/mmap.c:1478 [inline]
mmap_region+0x153f/0x1d10 mm/mmap.c:1639
do_mmap+0xa47/0x1370 mm/mmap.c:515
vm_mmap_pgoff+0x367/0x4b0 mm/util.c:594
ksys_mmap_pgoff+0x165/0x1e0 mm/mmap.c:564
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline]
__x64_sys_mmap+0x121/0x140 arch/x86/kernel/sys_x86_64.c:79
x64_sys_call+0x13bf/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:10
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:0x7f8e74ba8c82
Code: 81 01 00 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 3b 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 6e 5b 5d c3 0f 1f 00 48 c7 c0 e8 ff ff ff 64
RSP: 002b:00007ffff1a13f68 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f8e72d71000 RCX: 00007f8e74ba8c82
RDX: 0000000000000003 RSI: 0000000000400000 RDI: 00007f8e72d71000
RBP: 0000000000000011 R08: 00000000000000dc R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000206 R12: 0000000000000003
R13: 0000000000000003 R14: 0000000000000000 R15: 00007f8e74e25fa0
---[ end trace ]---
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x20ab/0x2a00 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff867124cc by task syz.2.84/535
CPU: 1 UID: 0 PID: 535 Comm: syz.2.84 Not tainted syzkaller #0 ef3fe522eb78c0a5ba4bdac8f3746cbd31b933a5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x20ab/0x2a00 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:__sanitizer_cov_trace_pc+0x5/0x70 kernel/kcov.c:210
Code: e8 20 9e 55 00 5b 5d e9 09 dd 23 04 cc cc cc cc cc cc cc cc cc b8 dc ca 09 50 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <48> 89 e5 48 8b 45 08 65 48 8b 0d fc 84 7b 7e 65 8b 15 fd 84 7b 7e
RSP: 0018:ffffc9000dea7768 EFLAGS: 00000202
RAX: ffffffff81d315c0 RBX: dffffc0000000000 RCX: ffff8881169d62c0
RDX: 0000000000000000 RSI: 000000011449d007 RDI: 0000000000000000
RBP: ffffc9000dea77b0 R08: ffffea0004aaaa77 R09: 1ffffd400095554e
R10: dffffc0000000000 R11: fffff9400095554f R12: ffff88811492f1c8
R13: 000000011449d007 R14: 00007f8e73154000 R15: 1ffff11022925e39
get_locked_pte include/linux/mm.h:2915 [inline]
insert_page mm/memory.c:2183 [inline]
vm_insert_page+0x5cf/0x870 mm/memory.c:2336
kcov_mmap+0xb1/0x120 kernel/kcov.c:506
call_mmap include/linux/fs.h:2203 [inline]
mmap_file mm/internal.h:124 [inline]
__mmap_region mm/mmap.c:1478 [inline]
mmap_region+0x153f/0x1d10 mm/mmap.c:1639
do_mmap+0xa47/0x1370 mm/mmap.c:515
vm_mmap_pgoff+0x367/0x4b0 mm/util.c:594
ksys_mmap_pgoff+0x165/0x1e0 mm/mmap.c:564
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline]
__x64_sys_mmap+0x121/0x140 arch/x86/kernel/sys_x86_64.c:79
x64_sys_call+0x13bf/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:10
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:0x7f8e74ba8c82
Code: 81 01 00 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 3b 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 6e 5b 5d c3 0f 1f 00 48 c7 c0 e8 ff ff ff 64
RSP: 002b:00007ffff1a13f68 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f8e72d71000 RCX: 00007f8e74ba8c82
RDX: 0000000000000003 RSI: 0000000000400000 RDI: 00007f8e72d71000
RBP: 0000000000000011 R08: 00000000000000dc R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000206 R12: 0000000000000003
R13: 0000000000000003 R14: 0000000000000000 R15: 00007f8e74e25fa0
The buggy address belongs to the variable:
.str.22+0xc/0x20
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6712
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c488 ffffea000019c488 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:
ffffffff86712380: f9 f9 f9 f9 00 f9 f9 f9 00 00 00 00 02 f9 f9 f9
ffffffff86712400: f9 f9 f9 f9 07 f9 f9 f9 00 f9 f9 f9 00 05 f9 f9
>ffffffff86712480: 00 00 07 f9 f9 f9 f9 f9 05 f9 f9 f9 07 f9 f9 f9
^
ffffffff86712500: 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 f9 f9 f9 f9
ffffffff86712580: 06 f9 f9 f9 00 f9 f9 f9 00 f9 f9 f9 07 f9 f9 f9
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 6692 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 535 Comm: syz.2.84 Tainted: G B syzkaller #0 ef3fe522eb78c0a5ba4bdac8f3746cbd31b933a5
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x1f3c/0x2a00 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:__sanitizer_cov_trace_pc+0x5/0x70 kernel/kcov.c:210
Code: e8 20 9e 55 00 5b 5d e9 09 dd 23 04 cc cc cc cc cc cc cc cc cc b8 dc ca 09 50 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <48> 89 e5 48 8b 45 08 65 48 8b 0d fc 84 7b 7e 65 8b 15 fd 84 7b 7e
RSP: 0018:ffffc9000dea7768 EFLAGS: 00000202
RAX: ffffffff81d315c0 RBX: dffffc0000000000 RCX: ffff8881169d62c0
RDX: 0000000000000000 RSI: 000000011449d007 RDI: 0000000000000000
RBP: ffffc9000dea77b0 R08: ffffea0004aaaa77 R09: 1ffffd400095554e
R10: dffffc0000000000 R11: fffff9400095554f R12: ffff88811492f1c8
R13: 000000011449d007 R14: 00007f8e73154000 R15: 1ffff11022925e39
get_locked_pte include/linux/mm.h:2915 [inline]
insert_page mm/memory.c:2183 [inline]
vm_insert_page+0x5cf/0x870 mm/memory.c:2336
kcov_mmap+0xb1/0x120 kernel/kcov.c:506
call_mmap include/linux/fs.h:2203 [inline]
mmap_file mm/internal.h:124 [inline]
__mmap_region mm/mmap.c:1478 [inline]
mmap_region+0x153f/0x1d10 mm/mmap.c:1639
do_mmap+0xa47/0x1370 mm/mmap.c:515
vm_mmap_pgoff+0x367/0x4b0 mm/util.c:594
ksys_mmap_pgoff+0x165/0x1e0 mm/mmap.c:564
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline]
__x64_sys_mmap+0x121/0x140 arch/x86/kernel/sys_x86_64.c:79
x64_sys_call+0x13bf/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:10
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:0x7f8e74ba8c82
Code: 81 01 00 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 3b 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 6e 5b 5d c3 0f 1f 00 48 c7 c0 e8 ff ff ff 64
RSP: 002b:00007ffff1a13f68 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f8e72d71000 RCX: 00007f8e74ba8c82
RDX: 0000000000000003 RSI: 0000000000400000 RDI: 00007f8e72d71000
RBP: 0000000000000011 R08: 00000000000000dc R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000206 R12: 0000000000000003
R13: 0000000000000003 R14: 0000000000000000 R15: 00007f8e74e25fa0
---[ end trace ]---
aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: e8 20 9e 55 00 call 0x559e25
5: 5b pop %rbx
6: 5d pop %rbp
7: e9 09 dd 23 04 jmp 0x423dd15
c: cc int3
d: cc int3
e: cc int3
f: cc int3
10: cc int3
11: cc int3
12: cc int3
13: cc int3
14: cc int3
15: b8 dc ca 09 50 mov $0x5009cadc,%eax
1a: 90 nop
1b: 90 nop
1c: 90 nop
1d: 90 nop
1e: 90 nop
1f: 90 nop
20: 90 nop
21: 90 nop
22: 90 nop
23: 90 nop
24: 90 nop
25: f3 0f 1e fa endbr64
29: 55 push %rbp
* 2a: 48 89 e5 mov %rsp,%rbp <-- trapping instruction
2d: 48 8b 45 08 mov 0x8(%rbp),%rax
31: 65 48 8b 0d fc 84 7b mov %gs:0x7e7b84fc(%rip),%rcx # 0x7e7b8535
38: 7e
39: 65 8b 15 fd 84 7b 7e mov %gs:0x7e7b84fd(%rip),%edx # 0x7e7b853d