------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 7423 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 297 Comm: syz-executor Not tainted syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
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+0x3ae/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:avc_reclaim_node security/selinux/avc.c:466 [inline]
RIP: 0010:avc_alloc_node+0x404/0x520 security/selinux/avc.c:506
Code: 41 fa fe 48 8b 7c 24 20 48 89 de e8 86 1f 35 03 48 8b 1c 24 44 8b 6c 24 1c 41 ff c5 41 81 fd 00 02 00 00 74 7f e8 0c 81 11 ff 05 fd ff ff e8 02 81 11 ff eb 31 e8 fb 80 11 ff 49 be 00 00 00
RSP: 0018:ffffc900011df560 EFLAGS: 00000293
RAX: ffffffff8277e924 RBX: 1ffff9200023beb4 RCX: ffff88810434bb40
RDX: 0000000000000000 RSI: 0000000000000206 RDI: ffffffff8943e968
RBP: ffffc900011df630 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200023be9c R12: 0000000000000206
R13: 00000000000000be R14: dffffc0000000000 R15: 0000000000000000
avc_insert security/selinux/avc.c:619 [inline]
avc_compute_av+0xeb/0x760 security/selinux/avc.c:995
avc_perm_nonode+0xda/0x1d0 security/selinux/avc.c:1118
avc_has_perm_noaudit+0x21f/0x360 security/selinux/avc.c:1161
selinux_inode_permission+0x37d/0x5d0 security/selinux/hooks.c:3148
security_inode_permission+0xb0/0x150 security/security.c:2325
inode_permission+0xf3/0x4c0 fs/namei.c:543
may_open+0x197/0x430 fs/namei.c:3372
do_open fs/namei.c:3780 [inline]
path_openat+0x2ae5/0x35a0 fs/namei.c:3941
do_filp_open+0x1f2/0x440 fs/namei.c:3968
do_sys_openat2+0x134/0x1d0 fs/open.c:1434
do_sys_open fs/open.c:1449 [inline]
__do_sys_openat fs/open.c:1465 [inline]
__se_sys_openat fs/open.c:1460 [inline]
__x64_sys_openat+0x13a/0x170 fs/open.c:1460
x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258
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:0x7f6fdb164157
Code: 48 89 fa 4c 89 df e8 a8 56 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:00007fffdec3c070 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005555864e5500 RCX: 00007f6fdb164157
RDX: 0000000000000000 RSI: 00007fffdec3c1c0 RDI: ffffffffffffff9c
RBP: 00007fffdec3c1c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffdec3d2b0
R13: 00007f6fdb2373e3 R14: 00005555864e54e8 R15: 0000000000000009
---[ 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 ffffffff8671317c by task syz-executor/297
CPU: 1 UID: 0 PID: 297 Comm: syz-executor Not tainted syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
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+0x3ae/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:avc_reclaim_node security/selinux/avc.c:466 [inline]
RIP: 0010:avc_alloc_node+0x404/0x520 security/selinux/avc.c:506
Code: 41 fa fe 48 8b 7c 24 20 48 89 de e8 86 1f 35 03 48 8b 1c 24 44 8b 6c 24 1c 41 ff c5 41 81 fd 00 02 00 00 74 7f e8 0c 81 11 ff 05 fd ff ff e8 02 81 11 ff eb 31 e8 fb 80 11 ff 49 be 00 00 00
RSP: 0018:ffffc900011df560 EFLAGS: 00000293
RAX: ffffffff8277e924 RBX: 1ffff9200023beb4 RCX: ffff88810434bb40
RDX: 0000000000000000 RSI: 0000000000000206 RDI: ffffffff8943e968
RBP: ffffc900011df630 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200023be9c R12: 0000000000000206
R13: 00000000000000be R14: dffffc0000000000 R15: 0000000000000000
avc_insert security/selinux/avc.c:619 [inline]
avc_compute_av+0xeb/0x760 security/selinux/avc.c:995
avc_perm_nonode+0xda/0x1d0 security/selinux/avc.c:1118
avc_has_perm_noaudit+0x21f/0x360 security/selinux/avc.c:1161
selinux_inode_permission+0x37d/0x5d0 security/selinux/hooks.c:3148
security_inode_permission+0xb0/0x150 security/security.c:2325
inode_permission+0xf3/0x4c0 fs/namei.c:543
may_open+0x197/0x430 fs/namei.c:3372
do_open fs/namei.c:3780 [inline]
path_openat+0x2ae5/0x35a0 fs/namei.c:3941
do_filp_open+0x1f2/0x440 fs/namei.c:3968
do_sys_openat2+0x134/0x1d0 fs/open.c:1434
do_sys_open fs/open.c:1449 [inline]
__do_sys_openat fs/open.c:1465 [inline]
__se_sys_openat fs/open.c:1460 [inline]
__x64_sys_openat+0x13a/0x170 fs/open.c:1460
x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258
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:0x7f6fdb164157
Code: 48 89 fa 4c 89 df e8 a8 56 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:00007fffdec3c070 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005555864e5500 RCX: 00007f6fdb164157
RDX: 0000000000000000 RSI: 00007fffdec3c1c0 RDI: ffffffffffffff9c
RBP: 00007fffdec3c1c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffdec3d2b0
R13: 00007f6fdb2373e3 R14: 00005555864e54e8 R15: 0000000000000009
The buggy address belongs to the variable:
rtc_time64_to_tm_test_date_range.__text+0x3c/0x40
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6713
flags: 0x4000(reserved|zone=0)
raw: 0000000000004000 ffffea000019c4c8 ffffea000019c4c8 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:
ffffffff86713000: 00 00 04 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
ffffffff86713080: 06 f9 f9 f9 f9 f9 f9 f9 00 01 f9 f9 00 00 00 00
>ffffffff86713100: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9
^
ffffffff86713180: 03 f9 f9 f9 00 04 f9 f9 00 07 f9 f9 00 00 07 f9
ffffffff86713200: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00 02
==================================================================
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 7424 is out of range for type 'const int[34]'
CPU: 1 UID: 0 PID: 297 Comm: syz-executor Tainted: G B syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
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+0x3ae/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:avc_reclaim_node security/selinux/avc.c:466 [inline]
RIP: 0010:avc_alloc_node+0x404/0x520 security/selinux/avc.c:506
Code: 41 fa fe 48 8b 7c 24 20 48 89 de e8 86 1f 35 03 48 8b 1c 24 44 8b 6c 24 1c 41 ff c5 41 81 fd 00 02 00 00 74 7f e8 0c 81 11 ff 05 fd ff ff e8 02 81 11 ff eb 31 e8 fb 80 11 ff 49 be 00 00 00
RSP: 0018:ffffc900011df560 EFLAGS: 00000293
RAX: ffffffff8277e924 RBX: 1ffff9200023beb4 RCX: ffff88810434bb40
RDX: 0000000000000000 RSI: 0000000000000206 RDI: ffffffff8943e968
RBP: ffffc900011df630 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200023be9c R12: 0000000000000206
R13: 00000000000000be R14: dffffc0000000000 R15: 0000000000000000
avc_insert security/selinux/avc.c:619 [inline]
avc_compute_av+0xeb/0x760 security/selinux/avc.c:995
avc_perm_nonode+0xda/0x1d0 security/selinux/avc.c:1118
avc_has_perm_noaudit+0x21f/0x360 security/selinux/avc.c:1161
selinux_inode_permission+0x37d/0x5d0 security/selinux/hooks.c:3148
security_inode_permission+0xb0/0x150 security/security.c:2325
inode_permission+0xf3/0x4c0 fs/namei.c:543
may_open+0x197/0x430 fs/namei.c:3372
do_open fs/namei.c:3780 [inline]
path_openat+0x2ae5/0x35a0 fs/namei.c:3941
do_filp_open+0x1f2/0x440 fs/namei.c:3968
do_sys_openat2+0x134/0x1d0 fs/open.c:1434
do_sys_open fs/open.c:1449 [inline]
__do_sys_openat fs/open.c:1465 [inline]
__se_sys_openat fs/open.c:1460 [inline]
__x64_sys_openat+0x13a/0x170 fs/open.c:1460
x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258
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:0x7f6fdb164157
Code: 48 89 fa 4c 89 df e8 a8 56 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:00007fffdec3c070 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005555864e5500 RCX: 00007f6fdb164157
RDX: 0000000000000000 RSI: 00007fffdec3c1c0 RDI: ffffffffffffff9c
RBP: 00007fffdec3c1c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffdec3d2b0
R13: 00007f6fdb2373e3 R14: 00005555864e54e8 R15: 0000000000000009
---[ end trace ]---
aiptek 7-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 41 fa rex.B cli
2: fe 48 8b decb -0x75(%rax)
5: 7c 24 jl 0x2b
7: 20 48 89 and %cl,-0x77(%rax)
a: de e8 fsubrp %st,%st(0)
c: 86 1f xchg %bl,(%rdi)
e: 35 03 48 8b 1c xor $0x1c8b4803,%eax
13: 24 44 and $0x44,%al
15: 8b 6c 24 1c mov 0x1c(%rsp),%ebp
19: 41 ff c5 inc %r13d
1c: 41 81 fd 00 02 00 00 cmp $0x200,%r13d
23: 74 7f je 0xa4
25: e8 0c 81 11 ff call 0xff118136
* 2a: e9 05 fd ff ff jmp 0xfffffd34 <-- trapping instruction
2f: e8 02 81 11 ff call 0xff118136
34: eb 31 jmp 0x67
36: e8 fb 80 11 ff call 0xff118136
3b: 49 rex.WB
3c: be .byte 0xbe
3d: 00 00 add %al,(%rax)