------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 4662 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 707 Comm: udevd Not tainted syzkaller #0 4c932c043eb01f9e3eebd51d42a946ef7c91072c
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
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+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:arch_stack_walk+0x13f/0x170 arch/x86/kernel/stacktrace.c:24
Code: 4d 89 f3 41 ba 97 7a 92 3f 45 03 53 f1 74 02 0f 0b 41 ff d3 0f 1f 00 84 c0 74 11 4c 89 ff e8 28 85 06 00 83 bd 78 ff ff ff 00 <75> c1 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 75 12 48 83 c4 68 5b
RSP: 0018:ffffc9000e337068 EFLAGS: 00000202
RAX: 1ffff92001c66e01 RBX: ffffc9000e337120 RCX: 0000000001c66e01
RDX: ffffc9000e337ee0 RSI: 1ffff92001c66e0e RDI: ffffc9000e337090
RBP: ffffc9000e3370f0 R08: ffffc9000e337130 R09: ffffc9000e337128
R10: 000000000000000e R11: ffffffff81779330 R12: ffff888118a24f00
R13: 1ffff11023144ab8 R14: ffffffff81779330 R15: ffffc9000e337068
stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
save_stack+0x125/0x240 mm/page_owner.c:174
__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:1864
prep_new_page+0x2d/0x180 mm/page_alloc.c:1872
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316
alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1
allocate_slab+0x69/0x430 mm/slub.c:2687
new_slab mm/slub.c:2741 [inline]
___slab_alloc+0x591/0x8c0 mm/slub.c:3934
__slab_alloc mm/slub.c:4025 [inline]
__slab_alloc_node mm/slub.c:4078 [inline]
slab_alloc_node mm/slub.c:4241 [inline]
kmem_cache_alloc_noprof+0x290/0x410 mm/slub.c:4262
prepare_creds+0x47/0x6b0 kernel/cred.c:215
selinux_lsm_setattr+0x216/0x8e0 security/selinux/hooks.c:6498
selinux_setprocattr+0x53/0x70 security/selinux/hooks.c:6623
security_setprocattr+0x35e/0x380 security/security.c:4265
proc_pid_attr_write+0x2aa/0x310 fs/proc/base.c:2865
vfs_write+0x3c1/0xfd0 fs/read_write.c:682
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
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:0x7f22764a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffc57130dc0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f2276cb5880 RCX: 00007f22764a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001
R13: 00007f2276cb5770 R14: 00007ffc57130e10 R15: 0000561061983350
---[ 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 ffffffff867105d8 by task udevd/707
CPU: 0 UID: 0 PID: 707 Comm: udevd Not tainted syzkaller #0 4c932c043eb01f9e3eebd51d42a946ef7c91072c
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
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+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:arch_stack_walk+0x13f/0x170 arch/x86/kernel/stacktrace.c:24
Code: 4d 89 f3 41 ba 97 7a 92 3f 45 03 53 f1 74 02 0f 0b 41 ff d3 0f 1f 00 84 c0 74 11 4c 89 ff e8 28 85 06 00 83 bd 78 ff ff ff 00 <75> c1 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 75 12 48 83 c4 68 5b
RSP: 0018:ffffc9000e337068 EFLAGS: 00000202
RAX: 1ffff92001c66e01 RBX: ffffc9000e337120 RCX: 0000000001c66e01
RDX: ffffc9000e337ee0 RSI: 1ffff92001c66e0e RDI: ffffc9000e337090
RBP: ffffc9000e3370f0 R08: ffffc9000e337130 R09: ffffc9000e337128
R10: 000000000000000e R11: ffffffff81779330 R12: ffff888118a24f00
R13: 1ffff11023144ab8 R14: ffffffff81779330 R15: ffffc9000e337068
stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
save_stack+0x125/0x240 mm/page_owner.c:174
__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:1864
prep_new_page+0x2d/0x180 mm/page_alloc.c:1872
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316
alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1
allocate_slab+0x69/0x430 mm/slub.c:2687
new_slab mm/slub.c:2741 [inline]
___slab_alloc+0x591/0x8c0 mm/slub.c:3934
__slab_alloc mm/slub.c:4025 [inline]
__slab_alloc_node mm/slub.c:4078 [inline]
slab_alloc_node mm/slub.c:4241 [inline]
kmem_cache_alloc_noprof+0x290/0x410 mm/slub.c:4262
prepare_creds+0x47/0x6b0 kernel/cred.c:215
selinux_lsm_setattr+0x216/0x8e0 security/selinux/hooks.c:6498
selinux_setprocattr+0x53/0x70 security/selinux/hooks.c:6623
security_setprocattr+0x35e/0x380 security/security.c:4265
proc_pid_attr_write+0x2aa/0x310 fs/proc/base.c:2865
vfs_write+0x3c1/0xfd0 fs/read_write.c:682
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
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:0x7f22764a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffc57130dc0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f2276cb5880 RCX: 00007f22764a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001
R13: 00007f2276cb5770 R14: 00007ffc57130e10 R15: 0000561061983350
The buggy address belongs to the variable:
.str.52+0x38/0x40
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6710
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c408 ffffea000019c408 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:
ffffffff86710480: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
ffffffff86710500: 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 03 f9
>ffffffff86710580: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 01
^
ffffffff86710600: f9 f9 f9 f9 00 00 00 00 01 f9 f9 f9 f9 f9 f9 f9
ffffffff86710680: 00 00 00 00 00 01 f9 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 4663 is out of range for type 'const int[34]'
CPU: 0 UID: 0 PID: 707 Comm: udevd Tainted: G B syzkaller #0 4c932c043eb01f9e3eebd51d42a946ef7c91072c
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646
usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730
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+0x1b0/0x5b0 kernel/softirq.c:684
__do_softirq kernel/softirq.c:722 [inline]
invoke_softirq kernel/softirq.c:539 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771
irq_exit_rcu+0xd/0x30 kernel/softirq.c:783
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:arch_stack_walk+0x13f/0x170 arch/x86/kernel/stacktrace.c:24
Code: 4d 89 f3 41 ba 97 7a 92 3f 45 03 53 f1 74 02 0f 0b 41 ff d3 0f 1f 00 84 c0 74 11 4c 89 ff e8 28 85 06 00 83 bd 78 ff ff ff 00 <75> c1 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 75 12 48 83 c4 68 5b
RSP: 0018:ffffc9000e337068 EFLAGS: 00000202
RAX: 1ffff92001c66e01 RBX: ffffc9000e337120 RCX: 0000000001c66e01
RDX: ffffc9000e337ee0 RSI: 1ffff92001c66e0e RDI: ffffc9000e337090
RBP: ffffc9000e3370f0 R08: ffffc9000e337130 R09: ffffc9000e337128
R10: 000000000000000e R11: ffffffff81779330 R12: ffff888118a24f00
R13: 1ffff11023144ab8 R14: ffffffff81779330 R15: ffffc9000e337068
stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
save_stack+0x125/0x240 mm/page_owner.c:174
__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:1864
prep_new_page+0x2d/0x180 mm/page_alloc.c:1872
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316
alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1
allocate_slab+0x69/0x430 mm/slub.c:2687
new_slab mm/slub.c:2741 [inline]
___slab_alloc+0x591/0x8c0 mm/slub.c:3934
__slab_alloc mm/slub.c:4025 [inline]
__slab_alloc_node mm/slub.c:4078 [inline]
slab_alloc_node mm/slub.c:4241 [inline]
kmem_cache_alloc_noprof+0x290/0x410 mm/slub.c:4262
prepare_creds+0x47/0x6b0 kernel/cred.c:215
selinux_lsm_setattr+0x216/0x8e0 security/selinux/hooks.c:6498
selinux_setprocattr+0x53/0x70 security/selinux/hooks.c:6623
security_setprocattr+0x35e/0x380 security/security.c:4265
proc_pid_attr_write+0x2aa/0x310 fs/proc/base.c:2865
vfs_write+0x3c1/0xfd0 fs/read_write.c:682
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
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:0x7f22764a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffc57130dc0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f2276cb5880 RCX: 00007f22764a7407
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001
R13: 00007f2276cb5770 R14: 00007ffc57130e10 R15: 0000561061983350
---[ end trace ]---
aiptek 6-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 4d 89 f3 mov %r14,%r11
3: 41 ba 97 7a 92 3f mov $0x3f927a97,%r10d
9: 45 03 53 f1 add -0xf(%r11),%r10d
d: 74 02 je 0x11
f: 0f 0b ud2
11: 41 ff d3 call *%r11
14: 0f 1f 00 nopl (%rax)
17: 84 c0 test %al,%al
19: 74 11 je 0x2c
1b: 4c 89 ff mov %r15,%rdi
1e: e8 28 85 06 00 call 0x6854b
23: 83 bd 78 ff ff ff 00 cmpl $0x0,-0x88(%rbp)
* 2a: 75 c1 jne 0xffffffed <-- trapping instruction
2c: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
33: 00 00
35: 48 3b 45 d8 cmp -0x28(%rbp),%rax
39: 75 12 jne 0x4d
3b: 48 83 c4 68 add $0x68,%rsp
3f: 5b pop %rbx