================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 58388 is out of range for type 'const int[34]'
CPU: 1 PID: 967 Comm: syz.4.234 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1749
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:kasan_check_range+0x0/0x2a0 mm/kasan/generic.c:188
Code: 48 c1 ee 03 48 01 c6 48 89 c7 e8 0b aa 05 03 31 c0 5d c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 00 00 cc cc 00 00 cc 01 48 85 f6 0f 84 c0 01 00 00 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc90000f973f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810030bb40 RCX: ffffffff81488e89
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff88811c39f4e0
RBP: ffffc90000f973f8 R08: ffff88811c39f4db R09: 1ffff11023873e9b
R10: dffffc0000000000 R11: ffffed1023873e9c R12: ffff8881f71378c0
R13: dffffc0000000000 R14: ffff88811c39f480 R15: ffff88811c39f4d8
instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
atomic_dec_and_test include/linux/atomic/atomic-instrumented.h:542 [inline]
mmdrop include/linux/sched/mm.h:48 [inline]
finish_task_switch+0x209/0x790 kernel/sched/core.c:5075
context_switch kernel/sched/core.c:5181 [inline]
__schedule+0xbd7/0x14a0 kernel/sched/core.c:6538
schedule+0x11e/0x1e0 kernel/sched/core.c:6621
schedule_timeout+0xba/0x340 kernel/time/timer.c:1898
unix_wait_for_peer+0x1f2/0x2e0 net/unix/af_unix.c:1319
unix_dgram_sendmsg+0x1155/0x19b0 net/unix/af_unix.c:1917
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436
___sys_sendmsg+0x236/0x2e0 net/socket.c:2490
__sys_sendmmsg+0x2ba/0x4e0 net/socket.c:2576
__do_sys_sendmmsg net/socket.c:2605 [inline]
__se_sys_sendmmsg net/socket.c:2602 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2602
x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f682ccd60d9
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:00007f682b72f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f682cf5dfa0 RCX: 00007f682ccd60d9
RDX: 0000000000000318 RSI: 00002000000bd000 RDI: 0000000000000004
RBP: 00007f682cd6d024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f682cf5e038 R14: 00007f682cf5dfa0 R15: 00007fff18b17478
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85827110 by task syz.4.234/967
CPU: 1 PID: 967 Comm: syz.4.234 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x10f/0x150 mm/kasan/report.c:444
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1749
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:kasan_check_range+0x0/0x2a0 mm/kasan/generic.c:188
Code: 48 c1 ee 03 48 01 c6 48 89 c7 e8 0b aa 05 03 31 c0 5d c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 00 00 cc cc 00 00 cc 01 48 85 f6 0f 84 c0 01 00 00 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc90000f973f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810030bb40 RCX: ffffffff81488e89
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff88811c39f4e0
RBP: ffffc90000f973f8 R08: ffff88811c39f4db R09: 1ffff11023873e9b
R10: dffffc0000000000 R11: ffffed1023873e9c R12: ffff8881f71378c0
R13: dffffc0000000000 R14: ffff88811c39f480 R15: ffff88811c39f4d8
instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
atomic_dec_and_test include/linux/atomic/atomic-instrumented.h:542 [inline]
mmdrop include/linux/sched/mm.h:48 [inline]
finish_task_switch+0x209/0x790 kernel/sched/core.c:5075
context_switch kernel/sched/core.c:5181 [inline]
__schedule+0xbd7/0x14a0 kernel/sched/core.c:6538
schedule+0x11e/0x1e0 kernel/sched/core.c:6621
schedule_timeout+0xba/0x340 kernel/time/timer.c:1898
unix_wait_for_peer+0x1f2/0x2e0 net/unix/af_unix.c:1319
unix_dgram_sendmsg+0x1155/0x19b0 net/unix/af_unix.c:1917
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436
___sys_sendmsg+0x236/0x2e0 net/socket.c:2490
__sys_sendmmsg+0x2ba/0x4e0 net/socket.c:2576
__do_sys_sendmmsg net/socket.c:2605 [inline]
__se_sys_sendmmsg net/socket.c:2602 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2602
x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f682ccd60d9
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:00007f682b72f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f682cf5dfa0 RCX: 00007f682ccd60d9
RDX: 0000000000000318 RSI: 00002000000bd000 RDI: 0000000000000004
RBP: 00007f682cd6d024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f682cf5e038 R14: 00007f682cf5dfa0 R15: 00007fff18b17478
The buggy address belongs to the variable:
.str.48+0x50/0x60
Memory state around the buggy address:
ffffffff85827000: 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
ffffffff85827080: f9 f9 f9 f9 00 f9 f9 f9 00 00 00 00 03 f9 f9 f9
>ffffffff85827100: f9 f9 f9 f9 00 03 f9 f9 00 04 f9 f9 00 04 f9 f9
^
ffffffff85827180: 00 05 f9 f9 00 00 00 04 f9 f9 f9 f9 00 00 f9 f9
ffffffff85827200: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 58389 is out of range for type 'const int[34]'
CPU: 1 PID: 967 Comm: syz.4.234 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x20 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+0x32f/0x4f0 drivers/usb/core/hcd.c:1672
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1749
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1998
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:kasan_check_range+0x0/0x2a0 mm/kasan/generic.c:188
Code: 48 c1 ee 03 48 01 c6 48 89 c7 e8 0b aa 05 03 31 c0 5d c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 00 00 cc cc 00 00 cc 01 48 85 f6 0f 84 c0 01 00 00 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc90000f973f0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810030bb40 RCX: ffffffff81488e89
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff88811c39f4e0
RBP: ffffc90000f973f8 R08: ffff88811c39f4db R09: 1ffff11023873e9b
R10: dffffc0000000000 R11: ffffed1023873e9c R12: ffff8881f71378c0
R13: dffffc0000000000 R14: ffff88811c39f480 R15: ffff88811c39f4d8
instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
atomic_dec_and_test include/linux/atomic/atomic-instrumented.h:542 [inline]
mmdrop include/linux/sched/mm.h:48 [inline]
finish_task_switch+0x209/0x790 kernel/sched/core.c:5075
context_switch kernel/sched/core.c:5181 [inline]
__schedule+0xbd7/0x14a0 kernel/sched/core.c:6538
schedule+0x11e/0x1e0 kernel/sched/core.c:6621
schedule_timeout+0xba/0x340 kernel/time/timer.c:1898
unix_wait_for_peer+0x1f2/0x2e0 net/unix/af_unix.c:1319
unix_dgram_sendmsg+0x1155/0x19b0 net/unix/af_unix.c:1917
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436
___sys_sendmsg+0x236/0x2e0 net/socket.c:2490
__sys_sendmmsg+0x2ba/0x4e0 net/socket.c:2576
__do_sys_sendmmsg net/socket.c:2605 [inline]
__se_sys_sendmmsg net/socket.c:2602 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2602
x64_sys_call+0x6c6/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f682ccd60d9
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:00007f682b72f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f682cf5dfa0 RCX: 00007f682ccd60d9
RDX: 0000000000000318 RSI: 00002000000bd000 RDI: 0000000000000004
RBP: 00007f682cd6d024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f682cf5e038 R14: 00007f682cf5dfa0 R15: 00007fff18b17478
================================================================================
sched: RT throttling activated
----------------
Code disassembly (best guess):
0: 48 c1 ee 03 shr $0x3,%rsi
4: 48 01 c6 add %rax,%rsi
7: 48 89 c7 mov %rax,%rdi
a: e8 0b aa 05 03 call 0x305aa1a
f: 31 c0 xor %eax,%eax
11: 5d pop %rbp
12: c3 ret
13: 0f 0b ud2
15: b8 ea ff ff ff mov $0xffffffea,%eax
1a: c3 ret
1b: 0f 0b ud2
1d: b8 ea ff ff ff mov $0xffffffea,%eax
22: c3 ret
23: 00 00 add %al,(%rax)
25: cc int3
26: cc int3
27: 00 00 add %al,(%rax)
29: cc int3
* 2a: b0 01 mov $0x1,%al <-- trapping instruction
2c: 48 85 f6 test %rsi,%rsi
2f: 0f 84 c0 01 00 00 je 0x1f5
35: 55 push %rbp
36: 48 89 e5 mov %rsp,%rbp
39: 41 57 push %r15
3b: 41 56 push %r14
3d: 41 55 push %r13
3f: 41 rex.B