================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 44 is out of range for type 'const int[34]'
CPU: 0 PID: 11389 Comm: syz.2.3288 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
dump_stack+0x15/0x1c lib/dump_stack.c:135
ubsan_epilogue+0xe/0x40 lib/ubsan.c:148
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347
aiptek_irq+0x1fa2/0x2860 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__should_failslab+0x98/0xe0 mm/failslab.c:33
Code: 48 c1 e8 03 42 0f b6 04 38 84 c0 75 46 41 f6 46 03 02 74 d8 48 83 c3 1c 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 15 8b 33 <48> c7 c7 20 a5 63 86 e8 0c db b5 00 5b 41 5e 41 5f 5d c3 89 d9 80
RSP: 0018:ffffc900020af5d0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810004309c RCX: 0000000000000000
RDX: ffffffff83bc855c RSI: 0000000000000200 RDI: ffff888100043080
RBP: ffffc900020af5e8 R08: 0000000000000140 R09: ffff88813ee0ca00
R10: 0000000000000001 R11: 0000000025c03994 R12: ffffffff83bc855c
R13: ffff888100043080 R14: 0000000000082cc0 R15: dffffc0000000000
should_failslab+0x9/0x20 mm/slab_common.c:1223
slab_pre_alloc_hook mm/slab.h:555 [inline]
slab_alloc_node mm/slub.c:2873 [inline]
slab_alloc mm/slub.c:2960 [inline]
__kmalloc_track_caller+0x5f/0x310 mm/slub.c:4541
__kmalloc_reserve net/core/skbuff.c:144 [inline]
__alloc_skb+0xdc/0x520 net/core/skbuff.c:212
alloc_skb include/linux/skbuff.h:1126 [inline]
nlmsg_new include/net/netlink.h:953 [inline]
netlink_ack+0x35c/0xb30 net/netlink/af_netlink.c:2438
netlink_rcv_skb+0x267/0x430 net/netlink/af_netlink.c:2509
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5632
netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1914
sock_sendmsg_nosec net/socket.c:652 [inline]
__sock_sendmsg net/socket.c:664 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2376
___sys_sendmsg+0x236/0x2e0 net/socket.c:2430
__sys_sendmsg net/socket.c:2459 [inline]
__do_sys_sendmsg net/socket.c:2468 [inline]
__se_sys_sendmsg net/socket.c:2466 [inline]
__x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2466
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6e5324fe59
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:00007f6e51c89028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f6e534c9090 RCX: 00007f6e5324fe59
RDX: 0000000004041080 RSI: 0000200000006040 RDI: 0000000000000007
RBP: 00007f6e532e5e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6e534c9128 R14: 00007f6e534c9090 R15: 00007ffccff06738
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff855ad310 by task syz.2.3288/11389
CPU: 0 PID: 11389 Comm: syz.2.3288 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:435 [inline]
kasan_report+0x100/0x140 mm/kasan/report.c:452
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
aiptek_irq+0x1fc0/0x2860 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__should_failslab+0x98/0xe0 mm/failslab.c:33
Code: 48 c1 e8 03 42 0f b6 04 38 84 c0 75 46 41 f6 46 03 02 74 d8 48 83 c3 1c 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 15 8b 33 <48> c7 c7 20 a5 63 86 e8 0c db b5 00 5b 41 5e 41 5f 5d c3 89 d9 80
RSP: 0018:ffffc900020af5d0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810004309c RCX: 0000000000000000
RDX: ffffffff83bc855c RSI: 0000000000000200 RDI: ffff888100043080
RBP: ffffc900020af5e8 R08: 0000000000000140 R09: ffff88813ee0ca00
R10: 0000000000000001 R11: 0000000025c03994 R12: ffffffff83bc855c
R13: ffff888100043080 R14: 0000000000082cc0 R15: dffffc0000000000
should_failslab+0x9/0x20 mm/slab_common.c:1223
slab_pre_alloc_hook mm/slab.h:555 [inline]
slab_alloc_node mm/slub.c:2873 [inline]
slab_alloc mm/slub.c:2960 [inline]
__kmalloc_track_caller+0x5f/0x310 mm/slub.c:4541
__kmalloc_reserve net/core/skbuff.c:144 [inline]
__alloc_skb+0xdc/0x520 net/core/skbuff.c:212
alloc_skb include/linux/skbuff.h:1126 [inline]
nlmsg_new include/net/netlink.h:953 [inline]
netlink_ack+0x35c/0xb30 net/netlink/af_netlink.c:2438
netlink_rcv_skb+0x267/0x430 net/netlink/af_netlink.c:2509
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5632
netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1914
sock_sendmsg_nosec net/socket.c:652 [inline]
__sock_sendmsg net/socket.c:664 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2376
___sys_sendmsg+0x236/0x2e0 net/socket.c:2430
__sys_sendmsg net/socket.c:2459 [inline]
__do_sys_sendmsg net/socket.c:2468 [inline]
__se_sys_sendmsg net/socket.c:2466 [inline]
__x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2466
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6e5324fe59
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:00007f6e51c89028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f6e534c9090 RCX: 00007f6e5324fe59
RDX: 0000000004041080 RSI: 0000200000006040 RDI: 0000000000000007
RBP: 00007f6e532e5e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6e534c9128 R14: 00007f6e534c9090 R15: 00007ffccff06738
The buggy address belongs to the variable:
macroKeyEvents+0xb0/0xe0
Memory state around the buggy address:
ffffffff855ad200: 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 00 00 00 00
ffffffff855ad280: 00 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9
>ffffffff855ad300: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 04
^
ffffffff855ad380: f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9 f9 f9 f9 f9
ffffffff855ad400: 00 00 00 00 00 03 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 45 is out of range for type 'const int[34]'
CPU: 0 PID: 11389 Comm: syz.2.3288 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
dump_stack+0x15/0x1c lib/dump_stack.c:135
ubsan_epilogue+0xe/0x40 lib/ubsan.c:148
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347
aiptek_irq+0x1e71/0x2860 drivers/input/tablet/aiptek.c:763
__usb_hcd_giveback_urb+0x32f/0x4f0 drivers/usb/core/hcd.c:1674
usb_hcd_giveback_urb+0x11d/0x3f0 drivers/usb/core/hcd.c:1748
dummy_timer+0xa34/0x31d0 drivers/usb/gadget/udc/dummy_hcd.c:1986
call_timer_fn+0x38/0x290 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x637/0x9a0 kernel/time/timer.c:1789
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802
__do_softirq+0x255/0x563 kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__should_failslab+0x98/0xe0 mm/failslab.c:33
Code: 48 c1 e8 03 42 0f b6 04 38 84 c0 75 46 41 f6 46 03 02 74 d8 48 83 c3 1c 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 15 8b 33 <48> c7 c7 20 a5 63 86 e8 0c db b5 00 5b 41 5e 41 5f 5d c3 89 d9 80
RSP: 0018:ffffc900020af5d0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810004309c RCX: 0000000000000000
RDX: ffffffff83bc855c RSI: 0000000000000200 RDI: ffff888100043080
RBP: ffffc900020af5e8 R08: 0000000000000140 R09: ffff88813ee0ca00
R10: 0000000000000001 R11: 0000000025c03994 R12: ffffffff83bc855c
R13: ffff888100043080 R14: 0000000000082cc0 R15: dffffc0000000000
should_failslab+0x9/0x20 mm/slab_common.c:1223
slab_pre_alloc_hook mm/slab.h:555 [inline]
slab_alloc_node mm/slub.c:2873 [inline]
slab_alloc mm/slub.c:2960 [inline]
__kmalloc_track_caller+0x5f/0x310 mm/slub.c:4541
__kmalloc_reserve net/core/skbuff.c:144 [inline]
__alloc_skb+0xdc/0x520 net/core/skbuff.c:212
alloc_skb include/linux/skbuff.h:1126 [inline]
nlmsg_new include/net/netlink.h:953 [inline]
netlink_ack+0x35c/0xb30 net/netlink/af_netlink.c:2438
netlink_rcv_skb+0x267/0x430 net/netlink/af_netlink.c:2509
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5632
netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1914
sock_sendmsg_nosec net/socket.c:652 [inline]
__sock_sendmsg net/socket.c:664 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2376
___sys_sendmsg+0x236/0x2e0 net/socket.c:2430
__sys_sendmsg net/socket.c:2459 [inline]
__do_sys_sendmsg net/socket.c:2468 [inline]
__se_sys_sendmsg net/socket.c:2466 [inline]
__x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2466
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6e5324fe59
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:00007f6e51c89028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f6e534c9090 RCX: 00007f6e5324fe59
RDX: 0000000004041080 RSI: 0000200000006040 RDI: 0000000000000007
RBP: 00007f6e532e5e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6e534c9128 R14: 00007f6e534c9090 R15: 00007ffccff06738
================================================================================
----------------
Code disassembly (best guess):
0: 48 c1 e8 03 shr $0x3,%rax
4: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax
9: 84 c0 test %al,%al
b: 75 46 jne 0x53
d: 41 f6 46 03 02 testb $0x2,0x3(%r14)
12: 74 d8 je 0xffffffec
14: 48 83 c3 1c add $0x1c,%rbx
18: 48 89 d8 mov %rbx,%rax
1b: 48 c1 e8 03 shr $0x3,%rax
1f: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax
24: 84 c0 test %al,%al
26: 75 15 jne 0x3d
28: 8b 33 mov (%rbx),%esi
* 2a: 48 c7 c7 20 a5 63 86 mov $0xffffffff8663a520,%rdi <-- trapping instruction
31: e8 0c db b5 00 call 0xb5db42
36: 5b pop %rbx
37: 41 5e pop %r14
39: 41 5f pop %r15
3b: 5d pop %rbp
3c: c3 ret
3d: 89 d9 mov %ebx,%ecx
3f: 80 .byte 0x80