================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 4775 is out of range for type 'const int[34]' CPU: 1 PID: 10658 Comm: syz.9.3731 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x208d/0x29b0 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 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 arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:216 Code: de e8 44 ec 44 00 5b 5d c3 00 90 90 90 90 90 90 90 90 90 90 90 b8 0c 67 40 a5 55 48 89 e5 48 8b 45 08 65 48 8b 0d 30 f2 90 7e <65> 8b 15 31 f2 90 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc9000502f230 EFLAGS: 00000246 RAX: ffffffff81a47346 RBX: ffffc9000502f410 RCX: ffff888129819440 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000502f230 R08: ffffea0004884747 R09: 1ffffd40009108e8 R10: dffffc0000000000 R11: fffff940009108e9 R12: 00000000000000fe R13: 000000000000000f R14: 1ffffd40009108e8 R15: ffffea0004884740 shmem_undo_range+0x536/0x1540 mm/shmem.c:932 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x255/0xa50 mm/shmem.c:1176 evict+0x4d7/0x8f0 fs/inode.c:708 iput_final fs/inode.c:1844 [inline] iput+0x620/0x670 fs/inode.c:1870 dentry_unlink_inode+0x33d/0x3f0 fs/dcache.c:405 __dentry_kill+0x460/0x670 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5be/0x8f0 fs/file_table.c:328 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa35/0x2660 kernel/exit.c:886 do_group_exit+0x225/0x2e0 kernel/exit.c:1029 get_signal+0x13b5/0x1520 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x1140 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f90ecd9ce59 Code: Unable to access opcode bytes at 0x7f90ecd9ce2f. RSP: 002b:00007f90edd0e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000200000000000 RBX: 00007f90ed016090 RCX: 00007f90ecd9ce59 RDX: 0000000000000002 RSI: 0000000000003000 RDI: 0000200000000000 RBP: 00007f90ece32d6f R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000012012 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f90ed016128 R14: 00007f90ed016090 R15: 00007fffdab910f8 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x20ab/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e6f19c by task syz.9.3731/10658 CPU: 1 PID: 10658 Comm: syz.9.3731 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x20ab/0x29b0 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 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 arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:216 Code: de e8 44 ec 44 00 5b 5d c3 00 90 90 90 90 90 90 90 90 90 90 90 b8 0c 67 40 a5 55 48 89 e5 48 8b 45 08 65 48 8b 0d 30 f2 90 7e <65> 8b 15 31 f2 90 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc9000502f230 EFLAGS: 00000246 RAX: ffffffff81a47346 RBX: ffffc9000502f410 RCX: ffff888129819440 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000502f230 R08: ffffea0004884747 R09: 1ffffd40009108e8 R10: dffffc0000000000 R11: fffff940009108e9 R12: 00000000000000fe R13: 000000000000000f R14: 1ffffd40009108e8 R15: ffffea0004884740 shmem_undo_range+0x536/0x1540 mm/shmem.c:932 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x255/0xa50 mm/shmem.c:1176 evict+0x4d7/0x8f0 fs/inode.c:708 iput_final fs/inode.c:1844 [inline] iput+0x620/0x670 fs/inode.c:1870 dentry_unlink_inode+0x33d/0x3f0 fs/dcache.c:405 __dentry_kill+0x460/0x670 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5be/0x8f0 fs/file_table.c:328 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa35/0x2660 kernel/exit.c:886 do_group_exit+0x225/0x2e0 kernel/exit.c:1029 get_signal+0x13b5/0x1520 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x1140 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f90ecd9ce59 Code: Unable to access opcode bytes at 0x7f90ecd9ce2f. RSP: 002b:00007f90edd0e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000200000000000 RBX: 00007f90ed016090 RCX: 00007f90ecd9ce59 RDX: 0000000000000002 RSI: 0000000000003000 RDI: 0000200000000000 RBP: 00007f90ece32d6f R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000012012 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f90ed016128 R14: 00007f90ed016090 R15: 00007fffdab910f8 The buggy address belongs to the variable: .str.3+0x3c/0x60 The buggy address belongs to the physical page: page:ffffea0000179bc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e6f flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179bc8 ffffea0000179bc8 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: ffffffff85e6f080: 00 00 00 00 00 00 00 00 00 01 f9 f9 04 f9 f9 f9 ffffffff85e6f100: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 00 00 00 >ffffffff85e6f180: 00 00 00 04 f9 f9 f9 f9 00 00 00 00 00 00 02 f9 ^ ffffffff85e6f200: f9 f9 f9 f9 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 ffffffff85e6f280: 00 00 00 00 00 00 01 f9 f9 f9 f9 f9 00 00 00 02 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 4776 is out of range for type 'const int[34]' CPU: 1 PID: 10658 Comm: syz.9.3731 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x1f6d/0x29b0 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x364/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11c/0x410 drivers/usb/core/hcd.c:1758 dummy_timer+0x88c/0x3070 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x3bb/0x8e0 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 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 arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:216 Code: de e8 44 ec 44 00 5b 5d c3 00 90 90 90 90 90 90 90 90 90 90 90 b8 0c 67 40 a5 55 48 89 e5 48 8b 45 08 65 48 8b 0d 30 f2 90 7e <65> 8b 15 31 f2 90 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc9000502f230 EFLAGS: 00000246 RAX: ffffffff81a47346 RBX: ffffc9000502f410 RCX: ffff888129819440 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000502f230 R08: ffffea0004884747 R09: 1ffffd40009108e8 R10: dffffc0000000000 R11: fffff940009108e9 R12: 00000000000000fe R13: 000000000000000f R14: 1ffffd40009108e8 R15: ffffea0004884740 shmem_undo_range+0x536/0x1540 mm/shmem.c:932 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x255/0xa50 mm/shmem.c:1176 evict+0x4d7/0x8f0 fs/inode.c:708 iput_final fs/inode.c:1844 [inline] iput+0x620/0x670 fs/inode.c:1870 dentry_unlink_inode+0x33d/0x3f0 fs/dcache.c:405 __dentry_kill+0x460/0x670 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5be/0x8f0 fs/file_table.c:328 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa35/0x2660 kernel/exit.c:886 do_group_exit+0x225/0x2e0 kernel/exit.c:1029 get_signal+0x13b5/0x1520 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x1140 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f90ecd9ce59 Code: Unable to access opcode bytes at 0x7f90ecd9ce2f. RSP: 002b:00007f90edd0e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000200000000000 RBX: 00007f90ed016090 RCX: 00007f90ecd9ce59 RDX: 0000000000000002 RSI: 0000000000003000 RDI: 0000200000000000 RBP: 00007f90ece32d6f R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000012012 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f90ed016128 R14: 00007f90ed016090 R15: 00007fffdab910f8 ================================================================================ aiptek 3-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: de e8 fsubrp %st,%st(0) 2: 44 ec rex.R in (%dx),%al 4: 44 00 5b 5d add %r11b,0x5d(%rbx) 8: c3 ret 9: 00 90 90 90 90 90 add %dl,-0x6f6f6f70(%rax) f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: b8 0c 67 40 a5 mov $0xa540670c,%eax 1a: 55 push %rbp 1b: 48 89 e5 mov %rsp,%rbp 1e: 48 8b 45 08 mov 0x8(%rbp),%rax 22: 65 48 8b 0d 30 f2 90 mov %gs:0x7e90f230(%rip),%rcx # 0x7e90f25a 29: 7e * 2a: 65 8b 15 31 f2 90 7e mov %gs:0x7e90f231(%rip),%edx # 0x7e90f262 <-- trapping instruction 31: 81 e2 00 01 ff 00 and $0xff0100,%edx 37: 74 11 je 0x4a 39: 81 fa 00 01 00 00 cmp $0x100,%edx 3f: 75 .byte 0x75