================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 45627 is out of range for type 'const int[34]' CPU: 0 PID: 2042 Comm: syz.3.382 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:page_ref_inc include/linux/page_ref.h:158 [inline] RIP: 0010:folio_ref_inc include/linux/page_ref.h:165 [inline] RIP: 0010:folio_get include/linux/mm.h:1407 [inline] RIP: 0010:folio_add_lru+0x10e/0x650 mm/swap.c:533 Code: 03 00 00 45 0f b7 3f 44 89 fe 83 e6 20 31 ff e8 c8 a3 d1 ff 41 83 e7 20 0f 85 0d 02 00 00 e8 39 a0 d1 ff eb 05 e8 32 a0 d1 ff <49> 8d 7d 34 be 04 00 00 00 e8 b4 40 17 00 f0 41 ff 45 34 bf 01 00 RSP: 0018:ffffc900023f7860 EFLAGS: 00000246 RAX: ffffffff819fd5be RBX: 1ffff9200047ef10 RCX: 0000000000080000 RDX: ffffc90001f5c000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900023f7918 R08: ffffea0004d2e4c7 R09: 1ffffd40009a5c98 R10: dffffc0000000000 R11: fffff940009a5c99 R12: dffffc0000000000 R13: ffffea0004d2e4c0 R14: 0000000000000000 R15: ffff8881329fd758 shmem_get_folio_gfp+0xf91/0x20f0 mm/shmem.c:1986 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2573 generic_perform_write+0x32d/0x740 mm/filemap.c:3927 shmem_file_write_iter+0x104/0x130 mm/shmem.c:2760 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f7c0836034e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f7c092e9da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7c092ea6c0 RCX: 00007f7c0836034e RDX: 0000000004000000 RSI: 00007f7bfe9f8000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f7c092e9ee0 R14: 00007f7c092e9ea0 R15: 00007f7bfe9f8000 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e9312c by task syz.3.382/2042 CPU: 0 PID: 2042 Comm: syz.3.382 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:page_ref_inc include/linux/page_ref.h:158 [inline] RIP: 0010:folio_ref_inc include/linux/page_ref.h:165 [inline] RIP: 0010:folio_get include/linux/mm.h:1407 [inline] RIP: 0010:folio_add_lru+0x10e/0x650 mm/swap.c:533 Code: 03 00 00 45 0f b7 3f 44 89 fe 83 e6 20 31 ff e8 c8 a3 d1 ff 41 83 e7 20 0f 85 0d 02 00 00 e8 39 a0 d1 ff eb 05 e8 32 a0 d1 ff <49> 8d 7d 34 be 04 00 00 00 e8 b4 40 17 00 f0 41 ff 45 34 bf 01 00 RSP: 0018:ffffc900023f7860 EFLAGS: 00000246 RAX: ffffffff819fd5be RBX: 1ffff9200047ef10 RCX: 0000000000080000 RDX: ffffc90001f5c000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900023f7918 R08: ffffea0004d2e4c7 R09: 1ffffd40009a5c98 R10: dffffc0000000000 R11: fffff940009a5c99 R12: dffffc0000000000 R13: ffffea0004d2e4c0 R14: 0000000000000000 R15: ffff8881329fd758 shmem_get_folio_gfp+0xf91/0x20f0 mm/shmem.c:1986 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2573 generic_perform_write+0x32d/0x740 mm/filemap.c:3927 shmem_file_write_iter+0x104/0x130 mm/shmem.c:2760 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f7c0836034e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f7c092e9da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7c092ea6c0 RCX: 00007f7c0836034e RDX: 0000000004000000 RSI: 00007f7bfe9f8000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f7c092e9ee0 R14: 00007f7c092e9ea0 R15: 00007f7bfe9f8000 The buggy address belongs to the variable: .str.377+0x2c/0x40 The buggy address belongs to the physical page: page:ffffea000017a4c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e93 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea000017a4c8 ffffea000017a4c8 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: ffffffff85e93000: 00 00 00 00 f9 f9 f9 f9 00 00 00 05 f9 f9 f9 f9 ffffffff85e93080: 00 00 00 07 f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 >ffffffff85e93100: 00 00 00 06 f9 f9 f9 f9 00 00 05 f9 f9 f9 f9 f9 ^ ffffffff85e93180: 00 00 00 00 f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 ffffffff85e93200: 00 00 00 01 f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 45628 is out of range for type 'const int[34]' CPU: 0 PID: 2042 Comm: syz.3.382 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:page_ref_inc include/linux/page_ref.h:158 [inline] RIP: 0010:folio_ref_inc include/linux/page_ref.h:165 [inline] RIP: 0010:folio_get include/linux/mm.h:1407 [inline] RIP: 0010:folio_add_lru+0x10e/0x650 mm/swap.c:533 Code: 03 00 00 45 0f b7 3f 44 89 fe 83 e6 20 31 ff e8 c8 a3 d1 ff 41 83 e7 20 0f 85 0d 02 00 00 e8 39 a0 d1 ff eb 05 e8 32 a0 d1 ff <49> 8d 7d 34 be 04 00 00 00 e8 b4 40 17 00 f0 41 ff 45 34 bf 01 00 RSP: 0018:ffffc900023f7860 EFLAGS: 00000246 RAX: ffffffff819fd5be RBX: 1ffff9200047ef10 RCX: 0000000000080000 RDX: ffffc90001f5c000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900023f7918 R08: ffffea0004d2e4c7 R09: 1ffffd40009a5c98 R10: dffffc0000000000 R11: fffff940009a5c99 R12: dffffc0000000000 R13: ffffea0004d2e4c0 R14: 0000000000000000 R15: ffff8881329fd758 shmem_get_folio_gfp+0xf91/0x20f0 mm/shmem.c:1986 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0xea/0x2c0 mm/shmem.c:2573 generic_perform_write+0x32d/0x740 mm/filemap.c:3927 shmem_file_write_iter+0x104/0x130 mm/shmem.c:2760 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7f7c0836034e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f7c092e9da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7c092ea6c0 RCX: 00007f7c0836034e RDX: 0000000004000000 RSI: 00007f7bfe9f8000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f7c092e9ee0 R14: 00007f7c092e9ea0 R15: 00007f7bfe9f8000 ================================================================================ aiptek 8-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 03 00 add (%rax),%eax 2: 00 45 0f add %al,0xf(%rbp) 5: b7 3f mov $0x3f,%bh 7: 44 89 fe mov %r15d,%esi a: 83 e6 20 and $0x20,%esi d: 31 ff xor %edi,%edi f: e8 c8 a3 d1 ff call 0xffd1a3dc 14: 41 83 e7 20 and $0x20,%r15d 18: 0f 85 0d 02 00 00 jne 0x22b 1e: e8 39 a0 d1 ff call 0xffd1a05c 23: eb 05 jmp 0x2a 25: e8 32 a0 d1 ff call 0xffd1a05c * 2a: 49 8d 7d 34 lea 0x34(%r13),%rdi <-- trapping instruction 2e: be 04 00 00 00 mov $0x4,%esi 33: e8 b4 40 17 00 call 0x1740ec 38: f0 41 ff 45 34 lock incl 0x34(%r13) 3d: bf .byte 0xbf 3e: 01 00 add %eax,(%rax)