================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 6418 is out of range for type 'const int[34]'
CPU: 0 PID: 3072 Comm: syz.4.607 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x1d7/0x600 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:preempt_count_sub+0x40/0x170 kernel/sched/core.c:5928
Code: b7 87 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 c2 00 00 00 83 3d f1 39 6b 06 00 75 25 65 8b 05 b0 d6 b5 7e 89 c1 81 e1 ff ff ff 7f <39> cf 7f 27 81 ff ff 00 00 00 0f 93 c1 84 c0 0f 95 c0 08 c8 74 55
RSP: 0000:ffffc90002977e18 EFLAGS: 00000202
RAX: 0000000080000001 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90002977e28 R08: ffff8881145ce607 R09: 1ffff110228b9cc0
R10: dffffc0000000000 R11: ffffed10228b9cc1 R12: ffff88812bc20000
R13: 00007fde68a82000 R14: ffff888128a75978 R15: 0000000000000254
__up_read kernel/locking/rwsem.c:1438 [inline]
up_read+0x56/0x1d0 kernel/locking/rwsem.c:1699
vma_end_read include/linux/mm.h:679 [inline]
do_user_addr_fault+0x95a/0x1030 arch/x86/mm/fault.c:1323
handle_page_fault arch/x86/mm/fault.c:1464 [inline]
exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1517
asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0033:0x7fde7145534e
Code: c1 49 39 4f 08 72 54 8d 4d ff 85 ed 74 3b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 <47> 0f b6 0c 08 45 84 c9 74 08 45 88 0c 00 49 8b 47 10 48 83 c0 01
RSP: 002b:00007fde723b2470 EFLAGS: 00010206
RAX: 0000000000e8a001 RBX: 00007fde723b2530 RCX: 0000000000000074
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fde723b25d0
RBP: 0000000000000102 R08: 00007fde67bf8000 R09: 0000000000e8a000
R10: 0000000000000000 R11: 00007fde723b2540 R12: 0000000000000001
R13: 00007fde71655e20 R14: 0000000000000000 R15: 00007fde723b25d0
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e6c788 by task syz.4.607/3072
CPU: 0 PID: 3072 Comm: syz.4.607 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x1d7/0x600 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:preempt_count_sub+0x40/0x170 kernel/sched/core.c:5928
Code: b7 87 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 c2 00 00 00 83 3d f1 39 6b 06 00 75 25 65 8b 05 b0 d6 b5 7e 89 c1 81 e1 ff ff ff 7f <39> cf 7f 27 81 ff ff 00 00 00 0f 93 c1 84 c0 0f 95 c0 08 c8 74 55
RSP: 0000:ffffc90002977e18 EFLAGS: 00000202
RAX: 0000000080000001 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90002977e28 R08: ffff8881145ce607 R09: 1ffff110228b9cc0
R10: dffffc0000000000 R11: ffffed10228b9cc1 R12: ffff88812bc20000
R13: 00007fde68a82000 R14: ffff888128a75978 R15: 0000000000000254
__up_read kernel/locking/rwsem.c:1438 [inline]
up_read+0x56/0x1d0 kernel/locking/rwsem.c:1699
vma_end_read include/linux/mm.h:679 [inline]
do_user_addr_fault+0x95a/0x1030 arch/x86/mm/fault.c:1323
handle_page_fault arch/x86/mm/fault.c:1464 [inline]
exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1517
asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0033:0x7fde7145534e
Code: c1 49 39 4f 08 72 54 8d 4d ff 85 ed 74 3b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 <47> 0f b6 0c 08 45 84 c9 74 08 45 88 0c 00 49 8b 47 10 48 83 c0 01
RSP: 002b:00007fde723b2470 EFLAGS: 00010206
RAX: 0000000000e8a001 RBX: 00007fde723b2530 RCX: 0000000000000074
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fde723b25d0
RBP: 0000000000000102 R08: 00007fde67bf8000 R09: 0000000000e8a000
R10: 0000000000000000 R11: 00007fde723b2540 R12: 0000000000000001
R13: 00007fde71655e20 R14: 0000000000000000 R15: 00007fde723b25d0
The buggy address belongs to the variable:
.str.1+0x8/0x40
The buggy address belongs to the physical page:
page:ffffea0000179b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e6c
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea0000179b08 ffffea0000179b08 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:
ffffffff85e6c680: 00 06 f9 f9 04 f9 f9 f9 00 f9 f9 f9 03 f9 f9 f9
ffffffff85e6c700: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9
>ffffffff85e6c780: 07 f9 f9 f9 00 00 00 00 00 00 00 00 00 01 f9 f9
^
ffffffff85e6c800: 00 01 f9 f9 00 03 f9 f9 00 00 00 00 00 00 00 00
ffffffff85e6c880: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 6419 is out of range for type 'const int[34]'
CPU: 0 PID: 3072 Comm: syz.4.607 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x1d7/0x600 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:preempt_count_sub+0x40/0x170 kernel/sched/core.c:5928
Code: b7 87 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 c2 00 00 00 83 3d f1 39 6b 06 00 75 25 65 8b 05 b0 d6 b5 7e 89 c1 81 e1 ff ff ff 7f <39> cf 7f 27 81 ff ff 00 00 00 0f 93 c1 84 c0 0f 95 c0 08 c8 74 55
RSP: 0000:ffffc90002977e18 EFLAGS: 00000202
RAX: 0000000080000001 RBX: dffffc0000000000 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90002977e28 R08: ffff8881145ce607 R09: 1ffff110228b9cc0
R10: dffffc0000000000 R11: ffffed10228b9cc1 R12: ffff88812bc20000
R13: 00007fde68a82000 R14: ffff888128a75978 R15: 0000000000000254
__up_read kernel/locking/rwsem.c:1438 [inline]
up_read+0x56/0x1d0 kernel/locking/rwsem.c:1699
vma_end_read include/linux/mm.h:679 [inline]
do_user_addr_fault+0x95a/0x1030 arch/x86/mm/fault.c:1323
handle_page_fault arch/x86/mm/fault.c:1464 [inline]
exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1517
asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0033:0x7fde7145534e
Code: c1 49 39 4f 08 72 54 8d 4d ff 85 ed 74 3b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 <47> 0f b6 0c 08 45 84 c9 74 08 45 88 0c 00 49 8b 47 10 48 83 c0 01
RSP: 002b:00007fde723b2470 EFLAGS: 00010206
RAX: 0000000000e8a001 RBX: 00007fde723b2530 RCX: 0000000000000074
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fde723b25d0
RBP: 0000000000000102 R08: 00007fde67bf8000 R09: 0000000000e8a000
R10: 0000000000000000 R11: 00007fde723b2540 R12: 0000000000000001
R13: 00007fde71655e20 R14: 0000000000000000 R15: 00007fde723b25d0
================================================================================
aiptek 8-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: b7 87 mov $0x87,%bh
2: 48 c1 e8 03 shr $0x3,%rax
6: 0f b6 04 18 movzbl (%rax,%rbx,1),%eax
a: 84 c0 test %al,%al
c: 0f 85 c2 00 00 00 jne 0xd4
12: 83 3d f1 39 6b 06 00 cmpl $0x0,0x66b39f1(%rip) # 0x66b3a0a
19: 75 25 jne 0x40
1b: 65 8b 05 b0 d6 b5 7e mov %gs:0x7eb5d6b0(%rip),%eax # 0x7eb5d6d2
22: 89 c1 mov %eax,%ecx
24: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx
* 2a: 39 cf cmp %ecx,%edi <-- trapping instruction
2c: 7f 27 jg 0x55
2e: 81 ff ff 00 00 00 cmp $0xff,%edi
34: 0f 93 c1 setae %cl
37: 84 c0 test %al,%al
39: 0f 95 c0 setne %al
3c: 08 c8 or %cl,%al
3e: 74 55 je 0x95