------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 8983 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 1262 Comm: syz.0.274 Not tainted syzkaller #0 ffcc03b7087851531ca4478bc989862769751c2e
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1ad/0x620 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:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp2+0x14/0x90 kernel/kcov.c:307
Code: 20 04 cc 0f 1f 00 b8 7b 1c a2 99 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 15 7c 6d 7d 7e <65> 8b 0d 7d 6d 7d 7e 81 e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75
RSP: 0018:ffffc9000d2def50 EFLAGS: 00000246
RAX: ffffffff81e695fb RBX: ffff888120e3ac00 RCX: 0000000000000000
RDX: ffff888120e3a600 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d2def50 R08: ffffc9000d2df01f R09: 0000000000000000
R10: ffffc9000d2defa0 R11: fffff52001a5be04 R12: dffffc0000000000
R13: 1ffff110241c7580 R14: 0000000000000041 R15: 1ffff92001a5bdf0
save_stack+0xeb/0x240 mm/page_owner.c:170
__set_page_owner+0x8e/0x600 mm/page_owner.c:338
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863
prep_new_page+0x2d/0x180 mm/page_alloc.c:1871
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315
__folio_alloc_noprof+0x14/0x80 mm/page_alloc.c:5348
__folio_alloc_node_noprof include/linux/gfp.h:284 [inline]
folio_alloc_noprof include/linux/gfp.h:326 [inline]
folio_prealloc+0x46/0x220 mm/memory.c:-1
do_cow_fault mm/memory.c:5485 [inline]
do_fault mm/memory.c:5597 [inline]
do_pte_missing+0x560/0x4440 mm/memory.c:4069
handle_pte_fault mm/memory.c:5940 [inline]
__handle_mm_fault mm/memory.c:6083 [inline]
handle_mm_fault+0x1189/0x1ba0 mm/memory.c:6251
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x114b/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x300/0x440 mm/gup.c:2049
do_mlock+0x7f3/0xa10 mm/mlock.c:657
__do_sys_mlock mm/mlock.c:665 [inline]
__se_sys_mlock mm/mlock.c:663 [inline]
__x64_sys_mlock+0x64/0x80 mm/mlock.c:663
x64_sys_call+0x670/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:150
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:0x7f9b9219e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9b9310a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 00007f9b92426090 RCX: 00007f9b9219e159
RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000200000000000
RBP: 00007f9b9223506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9b92426128 R14: 00007f9b92426090 R15: 00007fff28edb518
---[ 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 ffffffff8670e3dc by task syz.0.274/1262
CPU: 0 UID: 0 PID: 1262 Comm: syz.0.274 Not tainted syzkaller #0 ffcc03b7087851531ca4478bc989862769751c2e
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1ad/0x620 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:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp2+0x14/0x90 kernel/kcov.c:307
Code: 20 04 cc 0f 1f 00 b8 7b 1c a2 99 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 15 7c 6d 7d 7e <65> 8b 0d 7d 6d 7d 7e 81 e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75
RSP: 0018:ffffc9000d2def50 EFLAGS: 00000246
RAX: ffffffff81e695fb RBX: ffff888120e3ac00 RCX: 0000000000000000
RDX: ffff888120e3a600 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d2def50 R08: ffffc9000d2df01f R09: 0000000000000000
R10: ffffc9000d2defa0 R11: fffff52001a5be04 R12: dffffc0000000000
R13: 1ffff110241c7580 R14: 0000000000000041 R15: 1ffff92001a5bdf0
save_stack+0xeb/0x240 mm/page_owner.c:170
__set_page_owner+0x8e/0x600 mm/page_owner.c:338
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863
prep_new_page+0x2d/0x180 mm/page_alloc.c:1871
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315
__folio_alloc_noprof+0x14/0x80 mm/page_alloc.c:5348
__folio_alloc_node_noprof include/linux/gfp.h:284 [inline]
folio_alloc_noprof include/linux/gfp.h:326 [inline]
folio_prealloc+0x46/0x220 mm/memory.c:-1
do_cow_fault mm/memory.c:5485 [inline]
do_fault mm/memory.c:5597 [inline]
do_pte_missing+0x560/0x4440 mm/memory.c:4069
handle_pte_fault mm/memory.c:5940 [inline]
__handle_mm_fault mm/memory.c:6083 [inline]
handle_mm_fault+0x1189/0x1ba0 mm/memory.c:6251
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x114b/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x300/0x440 mm/gup.c:2049
do_mlock+0x7f3/0xa10 mm/mlock.c:657
__do_sys_mlock mm/mlock.c:665 [inline]
__se_sys_mlock mm/mlock.c:663 [inline]
__x64_sys_mlock+0x64/0x80 mm/mlock.c:663
x64_sys_call+0x670/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:150
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:0x7f9b9219e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9b9310a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 00007f9b92426090 RCX: 00007f9b9219e159
RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000200000000000
RBP: 00007f9b9223506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9b92426128 R14: 00007f9b92426090 R15: 00007fff28edb518
The buggy address belongs to the variable:
.str.39+0x1c/0x20
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:
ffffffff8670e280: f9 f9 f9 f9 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9
ffffffff8670e300: 00 00 00 06 f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9
>ffffffff8670e380: 04 f9 f9 f9 00 03 f9 f9 06 f9 f9 f9 07 f9 f9 f9
^
ffffffff8670e400: 05 f9 f9 f9 06 f9 f9 f9 04 f9 f9 f9 00 00 02 f9
ffffffff8670e480: f9 f9 f9 f9 04 f9 f9 f9 00 00 00 00 07 f9 f9 f9
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 8984 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 1262 Comm: syz.0.274 Tainted: G B syzkaller #0 ffcc03b7087851531ca4478bc989862769751c2e
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x36e/0x530 drivers/usb/core/hcd.c:1648
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732
dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1ad/0x620 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:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp2+0x14/0x90 kernel/kcov.c:307
Code: 20 04 cc 0f 1f 00 b8 7b 1c a2 99 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 15 7c 6d 7d 7e <65> 8b 0d 7d 6d 7d 7e 81 e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75
RSP: 0018:ffffc9000d2def50 EFLAGS: 00000246
RAX: ffffffff81e695fb RBX: ffff888120e3ac00 RCX: 0000000000000000
RDX: ffff888120e3a600 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000d2def50 R08: ffffc9000d2df01f R09: 0000000000000000
R10: ffffc9000d2defa0 R11: fffff52001a5be04 R12: dffffc0000000000
R13: 1ffff110241c7580 R14: 0000000000000041 R15: 1ffff92001a5bdf0
save_stack+0xeb/0x240 mm/page_owner.c:170
__set_page_owner+0x8e/0x600 mm/page_owner.c:338
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863
prep_new_page+0x2d/0x180 mm/page_alloc.c:1871
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315
__folio_alloc_noprof+0x14/0x80 mm/page_alloc.c:5348
__folio_alloc_node_noprof include/linux/gfp.h:284 [inline]
folio_alloc_noprof include/linux/gfp.h:326 [inline]
folio_prealloc+0x46/0x220 mm/memory.c:-1
do_cow_fault mm/memory.c:5485 [inline]
do_fault mm/memory.c:5597 [inline]
do_pte_missing+0x560/0x4440 mm/memory.c:4069
handle_pte_fault mm/memory.c:5940 [inline]
__handle_mm_fault mm/memory.c:6083 [inline]
handle_mm_fault+0x1189/0x1ba0 mm/memory.c:6251
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x114b/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x300/0x440 mm/gup.c:2049
do_mlock+0x7f3/0xa10 mm/mlock.c:657
__do_sys_mlock mm/mlock.c:665 [inline]
__se_sys_mlock mm/mlock.c:663 [inline]
__x64_sys_mlock+0x64/0x80 mm/mlock.c:663
x64_sys_call+0x670/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:150
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:0x7f9b9219e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9b9310a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 00007f9b92426090 RCX: 00007f9b9219e159
RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000200000000000
RBP: 00007f9b9223506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9b92426128 R14: 00007f9b92426090 R15: 00007fff28edb518
---[ end trace ]---
aiptek 5-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 20 04 cc and %al,(%rsp,%rcx,8)
3: 0f 1f 00 nopl (%rax)
6: b8 7b 1c a2 99 mov $0x99a21c7b,%eax
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
16: f3 0f 1e fa endbr64
1a: 55 push %rbp
1b: 48 89 e5 mov %rsp,%rbp
1e: 48 8b 45 08 mov 0x8(%rbp),%rax
22: 65 48 8b 15 7c 6d 7d mov %gs:0x7e7d6d7c(%rip),%rdx # 0x7e7d6da6
29: 7e
* 2a: 65 8b 0d 7d 6d 7d 7e mov %gs:0x7e7d6d7d(%rip),%ecx # 0x7e7d6dae <-- trapping instruction
31: 81 e1 00 01 ff 00 and $0xff0100,%ecx
37: 74 11 je 0x4a
39: 81 f9 00 01 00 00 cmp $0x100,%ecx
3f: 75 .byte 0x75