================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 767 is out of range for type 'const int[34]'
CPU: 0 PID: 3161 Comm: syz.4.705 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x24 lib/dump_stack.c:113
ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x2045/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x4/0x90 kernel/kcov.c:314
Code: 74 11 18 48 89 44 11 20 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 b8 7d 47 2f 67 55 48 89 e5 <48> 8b 45 08 65 48 8b 15 70 f6 90 7e 65 8b 0d 71 f6 90 7e 81 e1 00
RSP: 0018:ffffc900011876f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000080000
RDX: ffff88812da86480 RSI: 00000000ffffffff RDI: 00000000ffffffff
RBP: ffffc900011876f0 R08: ffff88812da86367 R09: 1ffff11025b50c6c
R10: dffffc0000000000 R11: ffffed1025b50c6d R12: 1ffff92000230eec
R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff88812aace3c0
sk_peek_offset_bwd include/net/sock.h:700 [inline]
sk_peek_offset_fwd include/net/sock.h:708 [inline]
__unix_dgram_recvmsg+0x8db/0xd90 net/unix/af_unix.c:2535
unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2562
____sys_recvmsg+0x2d6/0x5c0 net/socket.c:-1
___sys_recvmsg+0x210/0x590 net/socket.c:2770
do_recvmmsg+0x370/0x7e0 net/socket.c:2864
__sys_recvmmsg net/socket.c:2943 [inline]
__do_sys_recvmmsg net/socket.c:2966 [inline]
__se_sys_recvmmsg net/socket.c:2959 [inline]
__x64_sys_recvmmsg+0x195/0x250 net/socket.c:2959
x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
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:0x7f539399f559
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:00007f539493a028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f5393c26090 RCX: 00007f539399f559
RDX: 0000000004000087 RSI: 0000200000001ac0 RDI: 0000000000000003
RBP: 00007f5393a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5393c26128 R14: 00007f5393c26090 R15: 00007fff893d22e8
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e6717c by task syz.4.705/3161
CPU: 0 PID: 3161 Comm: syz.4.705 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x71/0x200 mm/kasan/report.c:316
print_report+0x4a/0x60 mm/kasan/report.c:420
kasan_report+0x122/0x150 mm/kasan/report.c:524
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350
aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x4/0x90 kernel/kcov.c:314
Code: 74 11 18 48 89 44 11 20 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 b8 7d 47 2f 67 55 48 89 e5 <48> 8b 45 08 65 48 8b 15 70 f6 90 7e 65 8b 0d 71 f6 90 7e 81 e1 00
RSP: 0018:ffffc900011876f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000080000
RDX: ffff88812da86480 RSI: 00000000ffffffff RDI: 00000000ffffffff
RBP: ffffc900011876f0 R08: ffff88812da86367 R09: 1ffff11025b50c6c
R10: dffffc0000000000 R11: ffffed1025b50c6d R12: 1ffff92000230eec
R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff88812aace3c0
sk_peek_offset_bwd include/net/sock.h:700 [inline]
sk_peek_offset_fwd include/net/sock.h:708 [inline]
__unix_dgram_recvmsg+0x8db/0xd90 net/unix/af_unix.c:2535
unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2562
____sys_recvmsg+0x2d6/0x5c0 net/socket.c:-1
___sys_recvmsg+0x210/0x590 net/socket.c:2770
do_recvmmsg+0x370/0x7e0 net/socket.c:2864
__sys_recvmmsg net/socket.c:2943 [inline]
__do_sys_recvmmsg net/socket.c:2966 [inline]
__se_sys_recvmmsg net/socket.c:2959 [inline]
__x64_sys_recvmmsg+0x195/0x250 net/socket.c:2959
x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
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:0x7f539399f559
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:00007f539493a028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f5393c26090 RCX: 00007f539399f559
RDX: 0000000004000087 RSI: 0000200000001ac0 RDI: 0000000000000003
RBP: 00007f5393a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5393c26128 R14: 00007f5393c26090 R15: 00007fff893d22e8
The buggy address belongs to the variable:
.str.76+0x1c/0x20
The buggy address belongs to the physical page:
page:ffffea00001799c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e67
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea00001799c8 ffffea00001799c8 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:
ffffffff85e67000: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9
ffffffff85e67080: 00 01 f9 f9 00 f9 f9 f9 00 03 f9 f9 00 06 f9 f9
>ffffffff85e67100: 06 f9 f9 f9 00 05 f9 f9 06 f9 f9 f9 06 f9 f9 f9
^
ffffffff85e67180: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 05 f9 f9
ffffffff85e67200: 00 03 f9 f9 05 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 768 is out of range for type 'const int[34]'
CPU: 0 PID: 3161 Comm: syz.4.705 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x24 lib/dump_stack.c:113
ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
aiptek_irq+0x1f14/0x29b0 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x4/0x90 kernel/kcov.c:314
Code: 74 11 18 48 89 44 11 20 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 b8 7d 47 2f 67 55 48 89 e5 <48> 8b 45 08 65 48 8b 15 70 f6 90 7e 65 8b 0d 71 f6 90 7e 81 e1 00
RSP: 0018:ffffc900011876f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 0000000000080000
RDX: ffff88812da86480 RSI: 00000000ffffffff RDI: 00000000ffffffff
RBP: ffffc900011876f0 R08: ffff88812da86367 R09: 1ffff11025b50c6c
R10: dffffc0000000000 R11: ffffed1025b50c6d R12: 1ffff92000230eec
R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff88812aace3c0
sk_peek_offset_bwd include/net/sock.h:700 [inline]
sk_peek_offset_fwd include/net/sock.h:708 [inline]
__unix_dgram_recvmsg+0x8db/0xd90 net/unix/af_unix.c:2535
unix_dgram_recvmsg+0xc7/0xe0 net/unix/af_unix.c:2562
____sys_recvmsg+0x2d6/0x5c0 net/socket.c:-1
___sys_recvmsg+0x210/0x590 net/socket.c:2770
do_recvmmsg+0x370/0x7e0 net/socket.c:2864
__sys_recvmmsg net/socket.c:2943 [inline]
__do_sys_recvmmsg net/socket.c:2966 [inline]
__se_sys_recvmmsg net/socket.c:2959 [inline]
__x64_sys_recvmmsg+0x195/0x250 net/socket.c:2959
x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
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:0x7f539399f559
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:00007f539493a028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f5393c26090 RCX: 00007f539399f559
RDX: 0000000004000087 RSI: 0000200000001ac0 RDI: 0000000000000003
RBP: 00007f5393a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5393c26128 R14: 00007f5393c26090 R15: 00007fff893d22e8
================================================================================
aiptek 6-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 74 11 je 0x13
2: 18 48 89 sbb %cl,-0x77(%rax)
5: 44 11 20 adc %r12d,(%rax)
8: 5d pop %rbp
9: c3 ret
a: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
11: 00 00 00
14: 66 90 xchg %ax,%ax
16: 90 nop
17: 90 nop
18: 90 nop
19: 90 nop
1a: 90 nop
1b: 90 nop
1c: 90 nop
1d: 90 nop
1e: 90 nop
1f: 90 nop
20: 90 nop
21: b8 7d 47 2f 67 mov $0x672f477d,%eax
26: 55 push %rbp
27: 48 89 e5 mov %rsp,%rbp
* 2a: 48 8b 45 08 mov 0x8(%rbp),%rax <-- trapping instruction
2e: 65 48 8b 15 70 f6 90 mov %gs:0x7e90f670(%rip),%rdx # 0x7e90f6a6
35: 7e
36: 65 8b 0d 71 f6 90 7e mov %gs:0x7e90f671(%rip),%ecx # 0x7e90f6ae
3d: 81 .byte 0x81
3e: e1 00 loope 0x40