================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 511 is out of range for type 'const int[34]' CPU: 0 PID: 2035 Comm: syz.1.368 Not tainted 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:update_stack_state+0x36c/0x490 arch/x86/kernel/unwind_frame.c:243 Code: 8d 70 38 4c 89 f0 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 80 3c 28 00 74 08 4c 89 f7 e8 5b 6b 81 00 48 8b 45 a0 49 89 06 <49> 89 c6 48 8b 45 a8 42 80 3c 28 00 48 8b 45 d0 4c 8d 78 58 74 08 RSP: 0018:ffffc900028a6b28 EFLAGS: 00000246 RAX: ffffc900028a6f70 RBX: ffffc900028a6c50 RCX: ffffc900028a6f01 RDX: ffffc900028a6f70 RSI: 1ffff92000514d8a RDI: ffffc900028a6ca0 RBP: ffffc900028a6bd8 R08: ffffc900028a6d10 R09: ffffc900028a6d08 R10: 0000000000000000 R11: fffff52000514d95 R12: 1ffff92000514d91 R13: dffffc0000000000 R14: ffffc900028a6c80 R15: ffffc900028a8000 unwind_next_frame+0x39e/0x660 arch/x86/kernel/unwind_frame.c:315 arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 save_stack+0x121/0x230 mm/page_owner.c:147 __reset_page_owner+0x54/0x190 mm/page_owner.c:168 reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page_list+0x117/0x8d0 mm/page_alloc.c:3773 release_pages+0xc7e/0xce0 mm/swap.c:1053 __pagevec_release+0x71/0xe0 mm/swap.c:1073 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x564/0x14e0 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176 evict+0x4c4/0x8c0 fs/inode.c:709 iput_final fs/inode.c:1845 [inline] iput+0x633/0x690 fs/inode.c:1871 dentry_unlink_inode+0x346/0x3f0 fs/dcache.c:405 __dentry_kill+0x46c/0x680 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5c0/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+0xb0d/0x29f0 kernel/exit.c:896 do_group_exit+0x21b/0x2e0 kernel/exit.c:1040 get_signal+0x167c/0x1700 kernel/signal.c:2904 arch_do_signal_or_restart+0xd1/0x11c0 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 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:316 irqentry_exit+0x12/0x40 kernel/entry/common.c:419 exc_page_fault+0x5e/0xb0 arch/x86/mm/fault.c:1520 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0033:0x7ff46a59f561 Code: Unable to access opcode bytes at 0x7ff46a59f537. RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007ff46a826360 RCX: 00007ff46a59f559 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007ff46a636b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ff46a8263f8 R14: 00007ff46a826360 R15: 00007ffc33d3b1f8 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 512 is out of range for type 'const int[34]' CPU: 0 PID: 2035 Comm: syz.1.368 Not tainted 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:update_stack_state+0x36c/0x490 arch/x86/kernel/unwind_frame.c:243 Code: 8d 70 38 4c 89 f0 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 80 3c 28 00 74 08 4c 89 f7 e8 5b 6b 81 00 48 8b 45 a0 49 89 06 <49> 89 c6 48 8b 45 a8 42 80 3c 28 00 48 8b 45 d0 4c 8d 78 58 74 08 RSP: 0018:ffffc900028a6b28 EFLAGS: 00000246 RAX: ffffc900028a6f70 RBX: ffffc900028a6c50 RCX: ffffc900028a6f01 RDX: ffffc900028a6f70 RSI: 1ffff92000514d8a RDI: ffffc900028a6ca0 RBP: ffffc900028a6bd8 R08: ffffc900028a6d10 R09: ffffc900028a6d08 R10: 0000000000000000 R11: fffff52000514d95 R12: 1ffff92000514d91 R13: dffffc0000000000 R14: ffffc900028a6c80 R15: ffffc900028a8000 unwind_next_frame+0x39e/0x660 arch/x86/kernel/unwind_frame.c:315 arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 save_stack+0x121/0x230 mm/page_owner.c:147 __reset_page_owner+0x54/0x190 mm/page_owner.c:168 reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page_list+0x117/0x8d0 mm/page_alloc.c:3773 release_pages+0xc7e/0xce0 mm/swap.c:1053 __pagevec_release+0x71/0xe0 mm/swap.c:1073 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x564/0x14e0 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176 evict+0x4c4/0x8c0 fs/inode.c:709 iput_final fs/inode.c:1845 [inline] iput+0x633/0x690 fs/inode.c:1871 dentry_unlink_inode+0x346/0x3f0 fs/dcache.c:405 __dentry_kill+0x46c/0x680 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5c0/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+0xb0d/0x29f0 kernel/exit.c:896 do_group_exit+0x21b/0x2e0 kernel/exit.c:1040 get_signal+0x167c/0x1700 kernel/signal.c:2904 arch_do_signal_or_restart+0xd1/0x11c0 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 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:316 irqentry_exit+0x12/0x40 kernel/entry/common.c:419 exc_page_fault+0x5e/0xb0 arch/x86/mm/fault.c:1520 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0033:0x7ff46a59f561 Code: Unable to access opcode bytes at 0x7ff46a59f537. RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007ff46a826360 RCX: 00007ff46a59f559 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007ff46a636b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ff46a8263f8 R14: 00007ff46a826360 R15: 00007ffc33d3b1f8 ================================================================================ aiptek 10-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 8d 70 38 lea 0x38(%rax),%esi 3: 4c 89 f0 mov %r14,%rax 6: 48 c1 e8 03 shr $0x3,%rax a: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 11: fc ff df 14: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 19: 74 08 je 0x23 1b: 4c 89 f7 mov %r14,%rdi 1e: e8 5b 6b 81 00 call 0x816b7e 23: 48 8b 45 a0 mov -0x60(%rbp),%rax 27: 49 89 06 mov %rax,(%r14) * 2a: 49 89 c6 mov %rax,%r14 <-- trapping instruction 2d: 48 8b 45 a8 mov -0x58(%rbp),%rax 31: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 36: 48 8b 45 d0 mov -0x30(%rbp),%rax 3a: 4c 8d 78 58 lea 0x58(%rax),%r15 3e: 74 08 je 0x48