================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 2803 is out of range for type 'const int[34]'
CPU: 0 PID: 2235 Comm: syz.7.641 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:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x89/0x2a0 mm/kasan/generic.c:189
Code: 49 c1 e9 03 4b 8d 1c 29 49 89 dc 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 45 01 00 00 4c 89 cb 48 f7 d3 4c 01 f3 41 80 3b 00 <0f> 85 95 01 00 00 49 ff c3 48 ff c3 75 ee e9 25 01 00 00 45 89 df
RSP: 0018:ffffc9000cfef280 EFLAGS: 00000246
RAX: ffffc9000cfef301 RBX: ffffffffffffffff RCX: ffffffff843f2267
RDX: 0000000000000001 RSI: 0000000000000030 RDI: ffffc9000cfef380
RBP: ffffc9000cfef2a8 R08: ffffc9000cfef3af R09: 1ffff920019fde75
R10: dffffc0000000000 R11: fffff520019fde75 R12: 0000000000000006
R13: dffffc0000000001 R14: 1ffff920019fde70 R15: ffffc9000cfef380
memset+0x23/0x40 mm/kasan/shadow.c:44
__ip_dev_find+0x247/0x470 net/ipv4/devinet.c:162
ip_route_output_key_hash_rcu+0x4fd/0x2160 net/ipv4/route.c:2718
ip_route_output_key_hash net/ipv4/route.c:2679 [inline]
__ip_route_output_key include/net/route.h:137 [inline]
ip_route_output_flow+0x143/0x300 net/ipv4/route.c:2909
udp_sendmsg+0x12ec/0x2170 net/ipv4/udp.c:1248
inet_sendmsg+0xb6/0xd0 net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649
__do_sys_sendmmsg net/socket.c:2678 [inline]
__se_sys_sendmmsg net/socket.c:2675 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675
x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
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:0x7f237999f559
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:00007f237a7eb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2379c25fa0 RCX: 00007f237999f559
RDX: 000000000800001d RSI: 0000200000007fc0 RDI: 0000000000000003
RBP: 00007f2379a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2379c26038 R14: 00007f2379c25fa0 R15: 00007fffb41c8358
================================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 2804 is out of range for type 'const int[34]'
CPU: 0 PID: 2235 Comm: syz.7.641 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+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:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x89/0x2a0 mm/kasan/generic.c:189
Code: 49 c1 e9 03 4b 8d 1c 29 49 89 dc 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 45 01 00 00 4c 89 cb 48 f7 d3 4c 01 f3 41 80 3b 00 <0f> 85 95 01 00 00 49 ff c3 48 ff c3 75 ee e9 25 01 00 00 45 89 df
RSP: 0018:ffffc9000cfef280 EFLAGS: 00000246
RAX: ffffc9000cfef301 RBX: ffffffffffffffff RCX: ffffffff843f2267
RDX: 0000000000000001 RSI: 0000000000000030 RDI: ffffc9000cfef380
RBP: ffffc9000cfef2a8 R08: ffffc9000cfef3af R09: 1ffff920019fde75
R10: dffffc0000000000 R11: fffff520019fde75 R12: 0000000000000006
R13: dffffc0000000001 R14: 1ffff920019fde70 R15: ffffc9000cfef380
memset+0x23/0x40 mm/kasan/shadow.c:44
__ip_dev_find+0x247/0x470 net/ipv4/devinet.c:162
ip_route_output_key_hash_rcu+0x4fd/0x2160 net/ipv4/route.c:2718
ip_route_output_key_hash net/ipv4/route.c:2679 [inline]
__ip_route_output_key include/net/route.h:137 [inline]
ip_route_output_flow+0x143/0x300 net/ipv4/route.c:2909
udp_sendmsg+0x12ec/0x2170 net/ipv4/udp.c:1248
inet_sendmsg+0xb6/0xd0 net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649
__do_sys_sendmmsg net/socket.c:2678 [inline]
__se_sys_sendmmsg net/socket.c:2675 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675
x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
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:0x7f237999f559
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:00007f237a7eb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2379c25fa0 RCX: 00007f237999f559
RDX: 000000000800001d RSI: 0000200000007fc0 RDI: 0000000000000003
RBP: 00007f2379a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2379c26038 R14: 00007f2379c25fa0 R15: 00007fffb41c8358
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763
Read of size 4 at addr ffffffff85e69050 by task syz.7.641/2235
CPU: 0 PID: 2235 Comm: syz.7.641 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+0x1f32/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:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x89/0x2a0 mm/kasan/generic.c:189
Code: 49 c1 e9 03 4b 8d 1c 29 49 89 dc 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 45 01 00 00 4c 89 cb 48 f7 d3 4c 01 f3 41 80 3b 00 <0f> 85 95 01 00 00 49 ff c3 48 ff c3 75 ee e9 25 01 00 00 45 89 df
RSP: 0018:ffffc9000cfef280 EFLAGS: 00000246
RAX: ffffc9000cfef301 RBX: ffffffffffffffff RCX: ffffffff843f2267
RDX: 0000000000000001 RSI: 0000000000000030 RDI: ffffc9000cfef380
RBP: ffffc9000cfef2a8 R08: ffffc9000cfef3af R09: 1ffff920019fde75
R10: dffffc0000000000 R11: fffff520019fde75 R12: 0000000000000006
R13: dffffc0000000001 R14: 1ffff920019fde70 R15: ffffc9000cfef380
memset+0x23/0x40 mm/kasan/shadow.c:44
__ip_dev_find+0x247/0x470 net/ipv4/devinet.c:162
ip_route_output_key_hash_rcu+0x4fd/0x2160 net/ipv4/route.c:2718
ip_route_output_key_hash net/ipv4/route.c:2679 [inline]
__ip_route_output_key include/net/route.h:137 [inline]
ip_route_output_flow+0x143/0x300 net/ipv4/route.c:2909
udp_sendmsg+0x12ec/0x2170 net/ipv4/udp.c:1248
inet_sendmsg+0xb6/0xd0 net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmmsg+0x2cc/0x4e0 net/socket.c:2649
__do_sys_sendmmsg net/socket.c:2678 [inline]
__se_sys_sendmmsg net/socket.c:2675 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2675
x64_sys_call+0x3f5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
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:0x7f237999f559
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:00007f237a7eb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2379c25fa0 RCX: 00007f237999f559
RDX: 000000000800001d RSI: 0000200000007fc0 RDI: 0000000000000003
RBP: 00007f2379a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2379c26038 R14: 00007f2379c25fa0 R15: 00007fffb41c8358
The buggy address belongs to the variable:
.str.41+0x10/0x40
The buggy address belongs to the physical page:
page:ffffea0000179a40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e69
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea0000179a48 ffffea0000179a48 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:
ffffffff85e68f00: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 00
ffffffff85e68f80: 00 00 00 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
>ffffffff85e69000: 04 f9 f9 f9 f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9
^
ffffffff85e69080: 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9
ffffffff85e69100: f9 f9 f9 f9 00 02 f9 f9 00 00 00 00 06 f9 f9 f9
==================================================================
aiptek 3-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 49 c1 e9 03 shr $0x3,%r9
4: 4b 8d 1c 29 lea (%r9,%r13,1),%rbx
8: 49 89 dc mov %rbx,%r12
b: 4d 29 dc sub %r11,%r12
e: 49 83 fc 10 cmp $0x10,%r12
12: 7f 29 jg 0x3d
14: 4d 85 e4 test %r12,%r12
17: 0f 84 45 01 00 00 je 0x162
1d: 4c 89 cb mov %r9,%rbx
20: 48 f7 d3 not %rbx
23: 4c 01 f3 add %r14,%rbx
26: 41 80 3b 00 cmpb $0x0,(%r11)
* 2a: 0f 85 95 01 00 00 jne 0x1c5 <-- trapping instruction
30: 49 ff c3 inc %r11
33: 48 ff c3 inc %rbx
36: 75 ee jne 0x26
38: e9 25 01 00 00 jmp 0x162
3d: 45 89 df mov %r11d,%r15d