------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 831 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 758 Comm: udevd Not tainted syzkaller #0 7512b07cb8b2b81a08448db7682669b21f09f733
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x36e/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+0x1ad/0x5b0 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:snprintf+0x92/0x140 lib/vsprintf.c:2933
Code: 8d 6c 24 40 49 c1 ed 03 48 b8 f1 f1 f1 f1 f8 f8 f8 f3 49 bc 00 00 00 00 00 fc ff df 4b 89 44 25 00 43 c7 44 25 08 f3 f3 f3 f3 49 b1 e3 fb 66 43 c7 44 25 04 00 00 43 c6 44 25 06 00 ba 18 00
RSP: 0018:ffffc9000e7cf700 EFLAGS: 00000a06
RAX: f3f8f8f8f1f1f1f1 RBX: ffffc9000e7cf760 RCX: 000001000d000103
RDX: ffffffff866fd020 RSI: 0000000000000767 RDI: ffff8881083ca2b4
RBP: ffffc9000e7cf7e8 R08: 0000000000000000 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92001cf9ee8 R14: 0000000000000767 R15: ffff8881083ca2b4
input_bits_to_string drivers/input/input.c:1070 [inline]
input_print_bitmap+0x140/0x310 drivers/input/input.c:1570
input_add_uevent_bm_var+0xd9/0x200 drivers/input/input.c:1666
input_dev_uevent+0x584/0xa20 drivers/input/input.c:1756
dev_uevent+0x521/0x5c0 drivers/base/core.c:2712
uevent_show+0x1cc/0x3e0 drivers/base/core.c:2759
dev_attr_show+0x6c/0xe0 drivers/base/core.c:2424
sysfs_kf_seq_show+0x289/0x3a0 fs/sysfs/file.c:59
kernfs_seq_show+0x12e/0x180 fs/kernfs/file.c:223
seq_read_iter+0x4d2/0xf30 fs/seq_file.c:230
kernfs_fop_read_iter+0x149/0x570 fs/kernfs/file.c:297
new_sync_read fs/read_write.c:489 [inline]
vfs_read+0x60e/0xc70 fs/read_write.c:570
ksys_read+0x145/0x260 fs/read_write.c:713
__do_sys_read fs/read_write.c:723 [inline]
__se_sys_read fs/read_write.c:721 [inline]
__x64_sys_read+0x7f/0x90 fs/read_write.c:721
x64_sys_call+0x2638/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f7f1b6a7407
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:00007ffcfae234e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f7f1bd92880 RCX: 00007f7f1b6a7407
RDX: 0000000000001000 RSI: 000056335bb1b2d0 RDI: 0000000000000008
RBP: 00007f7f1b7efff0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a
R13: 00007f7f1b7efea0 R14: 0000000000000000 R15: 000056335bbad7a0
---[ 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 ffffffff8670ae9c by task udevd/758
CPU: 1 UID: 0 PID: 758 Comm: udevd Not tainted syzkaller #0 7512b07cb8b2b81a08448db7682669b21f09f733
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x36e/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+0x1ad/0x5b0 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:snprintf+0x92/0x140 lib/vsprintf.c:2933
Code: 8d 6c 24 40 49 c1 ed 03 48 b8 f1 f1 f1 f1 f8 f8 f8 f3 49 bc 00 00 00 00 00 fc ff df 4b 89 44 25 00 43 c7 44 25 08 f3 f3 f3 f3 49 b1 e3 fb 66 43 c7 44 25 04 00 00 43 c6 44 25 06 00 ba 18 00
RSP: 0018:ffffc9000e7cf700 EFLAGS: 00000a06
RAX: f3f8f8f8f1f1f1f1 RBX: ffffc9000e7cf760 RCX: 000001000d000103
RDX: ffffffff866fd020 RSI: 0000000000000767 RDI: ffff8881083ca2b4
RBP: ffffc9000e7cf7e8 R08: 0000000000000000 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92001cf9ee8 R14: 0000000000000767 R15: ffff8881083ca2b4
input_bits_to_string drivers/input/input.c:1070 [inline]
input_print_bitmap+0x140/0x310 drivers/input/input.c:1570
input_add_uevent_bm_var+0xd9/0x200 drivers/input/input.c:1666
input_dev_uevent+0x584/0xa20 drivers/input/input.c:1756
dev_uevent+0x521/0x5c0 drivers/base/core.c:2712
uevent_show+0x1cc/0x3e0 drivers/base/core.c:2759
dev_attr_show+0x6c/0xe0 drivers/base/core.c:2424
sysfs_kf_seq_show+0x289/0x3a0 fs/sysfs/file.c:59
kernfs_seq_show+0x12e/0x180 fs/kernfs/file.c:223
seq_read_iter+0x4d2/0xf30 fs/seq_file.c:230
kernfs_fop_read_iter+0x149/0x570 fs/kernfs/file.c:297
new_sync_read fs/read_write.c:489 [inline]
vfs_read+0x60e/0xc70 fs/read_write.c:570
ksys_read+0x145/0x260 fs/read_write.c:713
__do_sys_read fs/read_write.c:723 [inline]
__se_sys_read fs/read_write.c:721 [inline]
__x64_sys_read+0x7f/0x90 fs/read_write.c:721
x64_sys_call+0x2638/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f7f1b6a7407
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:00007ffcfae234e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f7f1bd92880 RCX: 00007f7f1b6a7407
RDX: 0000000000001000 RSI: 000056335bb1b2d0 RDI: 0000000000000008
RBP: 00007f7f1b7efff0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a
R13: 00007f7f1b7efea0 R14: 0000000000000000 R15: 000056335bbad7a0
The buggy address belongs to the variable:
.str.86+0x1c/0x20
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x670a
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c288 ffffea000019c288 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:
ffffffff8670ad80: 00 05 f9 f9 06 f9 f9 f9 06 f9 f9 f9 00 00 00 00
ffffffff8670ae00: 00 00 f9 f9 f9 f9 f9 f9 00 05 f9 f9 00 03 f9 f9
>ffffffff8670ae80: 05 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9 00 00 00 00
^
ffffffff8670af00: 00 00 00 00 f9 f9 f9 f9 00 05 f9 f9 00 04 f9 f9
ffffffff8670af80: 06 f9 f9 f9 00 f9 f9 f9 00 00 00 00 00 00 05 f9
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 832 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 758 Comm: udevd Tainted: G B syzkaller #0 7512b07cb8b2b81a08448db7682669b21f09f733
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x36e/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+0x1ad/0x5b0 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:snprintf+0x92/0x140 lib/vsprintf.c:2933
Code: 8d 6c 24 40 49 c1 ed 03 48 b8 f1 f1 f1 f1 f8 f8 f8 f3 49 bc 00 00 00 00 00 fc ff df 4b 89 44 25 00 43 c7 44 25 08 f3 f3 f3 f3 49 b1 e3 fb 66 43 c7 44 25 04 00 00 43 c6 44 25 06 00 ba 18 00
RSP: 0018:ffffc9000e7cf700 EFLAGS: 00000a06
RAX: f3f8f8f8f1f1f1f1 RBX: ffffc9000e7cf760 RCX: 000001000d000103
RDX: ffffffff866fd020 RSI: 0000000000000767 RDI: ffff8881083ca2b4
RBP: ffffc9000e7cf7e8 R08: 0000000000000000 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff92001cf9ee8 R14: 0000000000000767 R15: ffff8881083ca2b4
input_bits_to_string drivers/input/input.c:1070 [inline]
input_print_bitmap+0x140/0x310 drivers/input/input.c:1570
input_add_uevent_bm_var+0xd9/0x200 drivers/input/input.c:1666
input_dev_uevent+0x584/0xa20 drivers/input/input.c:1756
dev_uevent+0x521/0x5c0 drivers/base/core.c:2712
uevent_show+0x1cc/0x3e0 drivers/base/core.c:2759
dev_attr_show+0x6c/0xe0 drivers/base/core.c:2424
sysfs_kf_seq_show+0x289/0x3a0 fs/sysfs/file.c:59
kernfs_seq_show+0x12e/0x180 fs/kernfs/file.c:223
seq_read_iter+0x4d2/0xf30 fs/seq_file.c:230
kernfs_fop_read_iter+0x149/0x570 fs/kernfs/file.c:297
new_sync_read fs/read_write.c:489 [inline]
vfs_read+0x60e/0xc70 fs/read_write.c:570
ksys_read+0x145/0x260 fs/read_write.c:713
__do_sys_read fs/read_write.c:723 [inline]
__se_sys_read fs/read_write.c:721 [inline]
__x64_sys_read+0x7f/0x90 fs/read_write.c:721
x64_sys_call+0x2638/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:1
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:0x7f7f1b6a7407
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:00007ffcfae234e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f7f1bd92880 RCX: 00007f7f1b6a7407
RDX: 0000000000001000 RSI: 000056335bb1b2d0 RDI: 0000000000000008
RBP: 00007f7f1b7efff0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a
R13: 00007f7f1b7efea0 R14: 0000000000000000 R15: 000056335bbad7a0
---[ end trace ]---
aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 8d 6c 24 40 lea 0x40(%rsp),%ebp
4: 49 c1 ed 03 shr $0x3,%r13
8: 48 b8 f1 f1 f1 f1 f8 movabs $0xf3f8f8f8f1f1f1f1,%rax
f: f8 f8 f3
12: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12
19: fc ff df
1c: 4b 89 44 25 00 mov %rax,0x0(%r13,%r12,1)
21: 43 c7 44 25 08 f3 f3 movl $0xf3f3f3f3,0x8(%r13,%r12,1)
28: f3 f3
* 2a: e8 49 b1 e3 fb call 0xfbe3b178 <-- trapping instruction
2f: 66 43 c7 44 25 04 00 movw $0x0,0x4(%r13,%r12,1)
36: 00
37: 43 c6 44 25 06 00 movb $0x0,0x6(%r13,%r12,1)
3d: ba .byte 0xba
3e: 18 00 sbb %al,(%rax)