================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 21762 is out of range for type 'const int[34]' CPU: 1 PID: 13351 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x1dd/0x5f0 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:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] RIP: 0010:arch_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:443 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1781 [inline] RIP: 0010:__mutex_trylock_fast kernel/locking/mutex.c:176 [inline] RIP: 0010:mutex_lock+0x9d/0x1b0 kernel/locking/mutex.c:295 Code: 48 c7 44 24 20 00 00 00 00 be 08 00 00 00 e8 6a 3d b6 fc 4c 89 ff be 08 00 00 00 e8 5d 3d b6 fc 48 8b 44 24 20 f0 49 0f b1 1e <75> 5d 48 c7 c0 c0 b9 00 87 48 c1 e8 03 42 80 3c 20 00 74 0c 48 c7 RSP: 0018:ffffc9000105fd00 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88811f9b0000 RCX: ffffffff8500d3a3 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000105fd20 RBP: ffffc9000105fd90 R08: ffffc9000105fd27 R09: 1ffff9200020bfa4 R10: dffffc0000000000 R11: fffff5200020bfa5 R12: dffffc0000000000 R13: 1ffff9200020bfa0 R14: ffff88812a176f48 R15: ffffc9000105fd20 __fdget_pos+0x2cd/0x380 fs/file.c:1068 fdget_pos include/linux/file.h:75 [inline] __do_sys_getdents64 fs/readdir.c:365 [inline] __se_sys_getdents64+0xcb/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1724bc7ef3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007fffa3ceab38 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055558b8a7910 RCX: 00007f1724bc7ef3 RDX: 0000000000008000 RSI: 000055558b8a7940 RDI: 0000000000000005 RBP: 000055558b8a7940 R08: 000055558b8a796b R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 000055558b8a7914 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fffa3cecde0 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e7b908 by task syz-executor/13351 CPU: 1 PID: 13351 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x1dd/0x5f0 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:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] RIP: 0010:arch_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:443 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1781 [inline] RIP: 0010:__mutex_trylock_fast kernel/locking/mutex.c:176 [inline] RIP: 0010:mutex_lock+0x9d/0x1b0 kernel/locking/mutex.c:295 Code: 48 c7 44 24 20 00 00 00 00 be 08 00 00 00 e8 6a 3d b6 fc 4c 89 ff be 08 00 00 00 e8 5d 3d b6 fc 48 8b 44 24 20 f0 49 0f b1 1e <75> 5d 48 c7 c0 c0 b9 00 87 48 c1 e8 03 42 80 3c 20 00 74 0c 48 c7 RSP: 0018:ffffc9000105fd00 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88811f9b0000 RCX: ffffffff8500d3a3 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000105fd20 RBP: ffffc9000105fd90 R08: ffffc9000105fd27 R09: 1ffff9200020bfa4 R10: dffffc0000000000 R11: fffff5200020bfa5 R12: dffffc0000000000 R13: 1ffff9200020bfa0 R14: ffff88812a176f48 R15: ffffc9000105fd20 __fdget_pos+0x2cd/0x380 fs/file.c:1068 fdget_pos include/linux/file.h:75 [inline] __do_sys_getdents64 fs/readdir.c:365 [inline] __se_sys_getdents64+0xcb/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1724bc7ef3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007fffa3ceab38 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055558b8a7910 RCX: 00007f1724bc7ef3 RDX: 0000000000008000 RSI: 000055558b8a7940 RDI: 0000000000000005 RBP: 000055558b8a7940 R08: 000055558b8a796b R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 000055558b8a7914 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fffa3cecde0 The buggy address belongs to the variable: v4l2_dv_timings_presets+0x4288/0x48e0 The buggy address belongs to the physical page: page:ffffea0000179ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e7b flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179ec8 ffffea0000179ec8 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: ffffffff85e7b800: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ffffffff85e7b880: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 >ffffffff85e7b900: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ^ ffffffff85e7b980: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ffffffff85e7ba00: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 21763 is out of range for type 'const int[34]' CPU: 1 PID: 13351 Comm: syz-executor Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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+0x1dd/0x5f0 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:arch_atomic64_try_cmpxchg arch/x86/include/asm/atomic64_64.h:190 [inline] RIP: 0010:arch_atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-long.h:443 [inline] RIP: 0010:atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1781 [inline] RIP: 0010:__mutex_trylock_fast kernel/locking/mutex.c:176 [inline] RIP: 0010:mutex_lock+0x9d/0x1b0 kernel/locking/mutex.c:295 Code: 48 c7 44 24 20 00 00 00 00 be 08 00 00 00 e8 6a 3d b6 fc 4c 89 ff be 08 00 00 00 e8 5d 3d b6 fc 48 8b 44 24 20 f0 49 0f b1 1e <75> 5d 48 c7 c0 c0 b9 00 87 48 c1 e8 03 42 80 3c 20 00 74 0c 48 c7 RSP: 0018:ffffc9000105fd00 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88811f9b0000 RCX: ffffffff8500d3a3 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000105fd20 RBP: ffffc9000105fd90 R08: ffffc9000105fd27 R09: 1ffff9200020bfa4 R10: dffffc0000000000 R11: fffff5200020bfa5 R12: dffffc0000000000 R13: 1ffff9200020bfa0 R14: ffff88812a176f48 R15: ffffc9000105fd20 __fdget_pos+0x2cd/0x380 fs/file.c:1068 fdget_pos include/linux/file.h:75 [inline] __do_sys_getdents64 fs/readdir.c:365 [inline] __se_sys_getdents64+0xcb/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1724bc7ef3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007fffa3ceab38 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055558b8a7910 RCX: 00007f1724bc7ef3 RDX: 0000000000008000 RSI: 000055558b8a7940 RDI: 0000000000000005 RBP: 000055558b8a7940 R08: 000055558b8a796b R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 000055558b8a7914 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007fffa3cecde0 ================================================================================ aiptek 5-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 48 c7 44 24 20 00 00 movq $0x0,0x20(%rsp) 7: 00 00 9: be 08 00 00 00 mov $0x8,%esi e: e8 6a 3d b6 fc call 0xfcb63d7d 13: 4c 89 ff mov %r15,%rdi 16: be 08 00 00 00 mov $0x8,%esi 1b: e8 5d 3d b6 fc call 0xfcb63d7d 20: 48 8b 44 24 20 mov 0x20(%rsp),%rax 25: f0 49 0f b1 1e lock cmpxchg %rbx,(%r14) * 2a: 75 5d jne 0x89 <-- trapping instruction 2c: 48 c7 c0 c0 b9 00 87 mov $0xffffffff8700b9c0,%rax 33: 48 c1 e8 03 shr $0x3,%rax 37: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 3c: 74 0c je 0x4a 3e: 48 rex.W 3f: c7 .byte 0xc7