------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 1279 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 408 Comm: syz.0.31 Not tainted syzkaller #0 d17067fa43c370e744802cb602e9182a4a42e9ef
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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:kasan_check_range+0x1c6/0x2b0 mm/kasan/generic.c:-1
Code: f5 49 01 dd 4d 01 f3 49 8d 5d 07 4d 85 ed 49 0f 49 dd 48 83 e3 f8 49 29 dd 74 0e 41 80 3b 00 75 74 49 ff c3 49 ff cd 75 f2 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 45 84 ff 0f 85 99 00
RSP: 0018:ffffc9000d9df478 EFLAGS: 00000256
RAX: ffffffff81d5c701 RBX: ffffea000472f7c0 RCX: ffffffff81d5c76c
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000472f7f0
RBP: ffffc9000d9df498 R08: ffffea000472f7f3 R09: 1ffffd40008e5efe
R10: dffffc0000000000 R11: fffff940008e5eff R12: ffffea000472f7c0
R13: 0000000000000001 R14: fffff940008e5eff R15: 1ffffd40008e5efe
__kasan_check_write+0x18/0x20 mm/kasan/shadow.c:37
instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
atomic_inc_and_test include/linux/atomic/atomic-instrumented.h:1401 [inline]
__folio_add_rmap mm/rmap.c:1132 [inline]
__folio_add_file_rmap mm/rmap.c:1448 [inline]
folio_add_file_rmap_ptes+0x8c/0x3d0 mm/rmap.c:1475
set_pte_range+0x3ca/0x660 mm/memory.c:5088
finish_fault+0xd88/0x1140 mm/memory.c:5227
do_read_fault mm/memory.c:5386 [inline]
do_fault mm/memory.c:5516 [inline]
do_pte_missing+0x36cc/0x4410 mm/memory.c:3990
handle_pte_fault mm/memory.c:5861 [inline]
__handle_mm_fault mm/memory.c:6004 [inline]
handle_mm_fault+0x11b8/0x1bf0 mm/memory.c:6172
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x1186/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x2f8/0x430 mm/gup.c:2049
mm_populate include/linux/mm.h:3555 [inline]
vm_mmap_pgoff+0x426/0x4b0 mm/util.c:599
ksys_mmap_pgoff+0xfa/0x1e0 mm/mmap.c:558
__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:0x7fcce179ce59
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:00007fcce01f7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fcce1a15fa0 RCX: 00007fcce179ce59
RDX: b635773f06ebbeeb RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fcce1832d6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcce1a16038 R14: 00007fcce1a15fa0 R15: 00007ffc32261588
---[ 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 ffffffff8670fcbc by task syz.0.31/408
CPU: 0 UID: 0 PID: 408 Comm: syz.0.31 Not tainted syzkaller #0 d17067fa43c370e744802cb602e9182a4a42e9ef
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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:kasan_check_range+0x1c6/0x2b0 mm/kasan/generic.c:-1
Code: f5 49 01 dd 4d 01 f3 49 8d 5d 07 4d 85 ed 49 0f 49 dd 48 83 e3 f8 49 29 dd 74 0e 41 80 3b 00 75 74 49 ff c3 49 ff cd 75 f2 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 45 84 ff 0f 85 99 00
RSP: 0018:ffffc9000d9df478 EFLAGS: 00000256
RAX: ffffffff81d5c701 RBX: ffffea000472f7c0 RCX: ffffffff81d5c76c
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000472f7f0
RBP: ffffc9000d9df498 R08: ffffea000472f7f3 R09: 1ffffd40008e5efe
R10: dffffc0000000000 R11: fffff940008e5eff R12: ffffea000472f7c0
R13: 0000000000000001 R14: fffff940008e5eff R15: 1ffffd40008e5efe
__kasan_check_write+0x18/0x20 mm/kasan/shadow.c:37
instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
atomic_inc_and_test include/linux/atomic/atomic-instrumented.h:1401 [inline]
__folio_add_rmap mm/rmap.c:1132 [inline]
__folio_add_file_rmap mm/rmap.c:1448 [inline]
folio_add_file_rmap_ptes+0x8c/0x3d0 mm/rmap.c:1475
set_pte_range+0x3ca/0x660 mm/memory.c:5088
finish_fault+0xd88/0x1140 mm/memory.c:5227
do_read_fault mm/memory.c:5386 [inline]
do_fault mm/memory.c:5516 [inline]
do_pte_missing+0x36cc/0x4410 mm/memory.c:3990
handle_pte_fault mm/memory.c:5861 [inline]
__handle_mm_fault mm/memory.c:6004 [inline]
handle_mm_fault+0x11b8/0x1bf0 mm/memory.c:6172
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x1186/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x2f8/0x430 mm/gup.c:2049
mm_populate include/linux/mm.h:3555 [inline]
vm_mmap_pgoff+0x426/0x4b0 mm/util.c:599
ksys_mmap_pgoff+0xfa/0x1e0 mm/mmap.c:558
__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:0x7fcce179ce59
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:00007fcce01f7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fcce1a15fa0 RCX: 00007fcce179ce59
RDX: b635773f06ebbeeb RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fcce1832d6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcce1a16038 R14: 00007fcce1a15fa0 R15: 00007ffc32261588
The buggy address belongs to the variable:
.str+0x1c/0x20
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x670f
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c3c8 ffffea000019c3c8 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:
ffffffff8670fb80: 05 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 02 f9 f9
ffffffff8670fc00: f9 f9 f9 f9 00 00 00 00 00 00 00 00 f9 f9 f9 f9
>ffffffff8670fc80: 00 00 00 00 06 f9 f9 f9 00 04 f9 f9 00 00 00 00
^
ffffffff8670fd00: 00 f9 f9 f9 00 07 f9 f9 00 02 f9 f9 00 00 00 00
ffffffff8670fd80: 00 03 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 1280 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 408 Comm: syz.0.31 Tainted: G B syzkaller #0 d17067fa43c370e744802cb602e9182a4a42e9ef
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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:kasan_check_range+0x1c6/0x2b0 mm/kasan/generic.c:-1
Code: f5 49 01 dd 4d 01 f3 49 8d 5d 07 4d 85 ed 49 0f 49 dd 48 83 e3 f8 49 29 dd 74 0e 41 80 3b 00 75 74 49 ff c3 49 ff cd 75 f2 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 45 84 ff 0f 85 99 00
RSP: 0018:ffffc9000d9df478 EFLAGS: 00000256
RAX: ffffffff81d5c701 RBX: ffffea000472f7c0 RCX: ffffffff81d5c76c
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000472f7f0
RBP: ffffc9000d9df498 R08: ffffea000472f7f3 R09: 1ffffd40008e5efe
R10: dffffc0000000000 R11: fffff940008e5eff R12: ffffea000472f7c0
R13: 0000000000000001 R14: fffff940008e5eff R15: 1ffffd40008e5efe
__kasan_check_write+0x18/0x20 mm/kasan/shadow.c:37
instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
atomic_inc_and_test include/linux/atomic/atomic-instrumented.h:1401 [inline]
__folio_add_rmap mm/rmap.c:1132 [inline]
__folio_add_file_rmap mm/rmap.c:1448 [inline]
folio_add_file_rmap_ptes+0x8c/0x3d0 mm/rmap.c:1475
set_pte_range+0x3ca/0x660 mm/memory.c:5088
finish_fault+0xd88/0x1140 mm/memory.c:5227
do_read_fault mm/memory.c:5386 [inline]
do_fault mm/memory.c:5516 [inline]
do_pte_missing+0x36cc/0x4410 mm/memory.c:3990
handle_pte_fault mm/memory.c:5861 [inline]
__handle_mm_fault mm/memory.c:6004 [inline]
handle_mm_fault+0x11b8/0x1bf0 mm/memory.c:6172
faultin_page mm/gup.c:1207 [inline]
__get_user_pages+0x1186/0x22d0 mm/gup.c:1508
populate_vma_page_range mm/gup.c:1946 [inline]
__mm_populate+0x2f8/0x430 mm/gup.c:2049
mm_populate include/linux/mm.h:3555 [inline]
vm_mmap_pgoff+0x426/0x4b0 mm/util.c:599
ksys_mmap_pgoff+0xfa/0x1e0 mm/mmap.c:558
__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:0x7fcce179ce59
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:00007fcce01f7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fcce1a15fa0 RCX: 00007fcce179ce59
RDX: b635773f06ebbeeb RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fcce1832d6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcce1a16038 R14: 00007fcce1a15fa0 R15: 00007ffc32261588
---[ end trace ]---
aiptek 4-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: f5 cmc
1: 49 01 dd add %rbx,%r13
4: 4d 01 f3 add %r14,%r11
7: 49 8d 5d 07 lea 0x7(%r13),%rbx
b: 4d 85 ed test %r13,%r13
e: 49 0f 49 dd cmovns %r13,%rbx
12: 48 83 e3 f8 and $0xfffffffffffffff8,%rbx
16: 49 29 dd sub %rbx,%r13
19: 74 0e je 0x29
1b: 41 80 3b 00 cmpb $0x0,(%r11)
1f: 75 74 jne 0x95
21: 49 ff c3 inc %r11
24: 49 ff cd dec %r13
27: 75 f2 jne 0x1b
29: 5b pop %rbx
* 2a: 41 5c pop %r12 <-- trapping instruction
2c: 41 5d pop %r13
2e: 41 5e pop %r14
30: 41 5f pop %r15
32: 5d pop %rbp
33: c3 ret
34: cc int3
35: cc int3
36: cc int3
37: cc int3
38: cc int3
39: 45 84 ff test %r15b,%r15b
3c: 0f .byte 0xf
3d: 85 .byte 0x85
3e: 99 cltd