------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 1279 is out of range for type 'const int[34]' CPU: 1 UID: 0 PID: 99 Comm: klogd Not tainted syzkaller #0 4d4a838cf2fc485b043991145ccf8426a0241c16 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x36e/0x530 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1757 [inline] __hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838 handle_softirqs+0x1aa/0x620 kernel/softirq.c:621 __do_softirq kernel/softirq.c:659 [inline] invoke_softirq kernel/softirq.c:476 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708 irq_exit_rcu+0xd/0x30 kernel/softirq.c:720 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:_compound_head include/linux/page-flags.h:252 [inline] RIP: 0010:virt_to_folio include/linux/mm.h:1395 [inline] RIP: 0010:check_heap_object mm/usercopy.c:194 [inline] RIP: 0010:__check_object_size+0x201/0x870 mm/usercopy.c:257 Code: 49 c1 ec 06 49 83 e4 c0 49 bd 08 00 00 00 00 ea ff ff 4d 01 e5 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 4c 89 ef e8 a5 f0 f6 ff 4d 8b 7d 00 44 89 fe 83 e6 01 31 ff RSP: 0018:ffffc90000dcfae0 EFLAGS: 00000246 RAX: 1ffffd40008b38d9 RBX: 1ffff920001b9f60 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000dcfb90 R08: ffff88810cb3df00 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000000 R12: 000000000459c6c0 R13: ffffea000459c6c8 R14: ffff88811671b000 R15: 000000000000011b check_object_size include/linux/thread_info.h:215 [inline] check_copy_size include/linux/thread_info.h:251 [inline] copy_to_user include/linux/uaccess.h:219 [inline] syslog_print+0x4a1/0x6f0 kernel/printk/printk.c:1693 do_syslog+0x584/0x7f0 kernel/printk/printk.c:1794 __do_sys_syslog kernel/printk/printk.c:1886 [inline] __se_sys_syslog kernel/printk/printk.c:1884 [inline] __x64_sys_syslog+0x80/0x90 kernel/printk/printk.c:1884 x64_sys_call+0x19e6/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:104 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:0x7f6c8fa16a37 Code: 73 01 c3 48 8b 0d c1 f3 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 91 f3 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffeed7f8018 EFLAGS: 00000206 ORIG_RAX: 0000000000000067 RAX: ffffffffffffffda RBX: 00007f6c8fbb6490 RCX: 00007f6c8fa16a37 RDX: 00000000000003ff RSI: 00007f6c8fbb6490 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000206 R12: 00007f6c8fbb6490 R13: 00007f6c8fb93dfe R14: 00007f6c8fbb64e0 R15: 00007f6c8fbb64e0 ---[ 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 ffffffff86705b7c by task klogd/99 CPU: 1 UID: 0 PID: 99 Comm: klogd Not tainted syzkaller #0 4d4a838cf2fc485b043991145ccf8426a0241c16 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x36e/0x530 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1757 [inline] __hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838 handle_softirqs+0x1aa/0x620 kernel/softirq.c:621 __do_softirq kernel/softirq.c:659 [inline] invoke_softirq kernel/softirq.c:476 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708 irq_exit_rcu+0xd/0x30 kernel/softirq.c:720 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:_compound_head include/linux/page-flags.h:252 [inline] RIP: 0010:virt_to_folio include/linux/mm.h:1395 [inline] RIP: 0010:check_heap_object mm/usercopy.c:194 [inline] RIP: 0010:__check_object_size+0x201/0x870 mm/usercopy.c:257 Code: 49 c1 ec 06 49 83 e4 c0 49 bd 08 00 00 00 00 ea ff ff 4d 01 e5 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 4c 89 ef e8 a5 f0 f6 ff 4d 8b 7d 00 44 89 fe 83 e6 01 31 ff RSP: 0018:ffffc90000dcfae0 EFLAGS: 00000246 RAX: 1ffffd40008b38d9 RBX: 1ffff920001b9f60 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000dcfb90 R08: ffff88810cb3df00 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000000 R12: 000000000459c6c0 R13: ffffea000459c6c8 R14: ffff88811671b000 R15: 000000000000011b check_object_size include/linux/thread_info.h:215 [inline] check_copy_size include/linux/thread_info.h:251 [inline] copy_to_user include/linux/uaccess.h:219 [inline] syslog_print+0x4a1/0x6f0 kernel/printk/printk.c:1693 do_syslog+0x584/0x7f0 kernel/printk/printk.c:1794 __do_sys_syslog kernel/printk/printk.c:1886 [inline] __se_sys_syslog kernel/printk/printk.c:1884 [inline] __x64_sys_syslog+0x80/0x90 kernel/printk/printk.c:1884 x64_sys_call+0x19e6/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:104 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:0x7f6c8fa16a37 Code: 73 01 c3 48 8b 0d c1 f3 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 91 f3 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffeed7f8018 EFLAGS: 00000206 ORIG_RAX: 0000000000000067 RAX: ffffffffffffffda RBX: 00007f6c8fbb6490 RCX: 00007f6c8fa16a37 RDX: 00000000000003ff RSI: 00007f6c8fbb6490 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000206 R12: 00007f6c8fbb6490 R13: 00007f6c8fb93dfe R14: 00007f6c8fbb64e0 R15: 00007f6c8fbb64e0 The buggy address belongs to the variable: .str+0x1c/0x20 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6705 flags: 0x4000(reserved|zone=0) raw: 0000000000004000 ffffea000019c148 ffffea000019c148 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: ffffffff86705a00: f9 f9 f9 f9 00 00 00 00 05 f9 f9 f9 f9 f9 f9 f9 ffffffff86705a80: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 00 00 00 >ffffffff86705b00: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9 ^ ffffffff86705b80: 00 04 f9 f9 00 00 00 00 00 f9 f9 f9 00 07 f9 f9 ffffffff86705c00: 00 02 f9 f9 00 00 00 00 00 03 f9 f9 f9 f9 f9 f9 ================================================================== ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 1280 is out of range for type 'const int[34]' CPU: 1 UID: 0 PID: 99 Comm: klogd Tainted: G B syzkaller #0 4d4a838cf2fc485b043991145ccf8426a0241c16 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x36e/0x530 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1732 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1757 [inline] __hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1821 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1838 handle_softirqs+0x1aa/0x620 kernel/softirq.c:621 __do_softirq kernel/softirq.c:659 [inline] invoke_softirq kernel/softirq.c:476 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708 irq_exit_rcu+0xd/0x30 kernel/softirq.c:720 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:_compound_head include/linux/page-flags.h:252 [inline] RIP: 0010:virt_to_folio include/linux/mm.h:1395 [inline] RIP: 0010:check_heap_object mm/usercopy.c:194 [inline] RIP: 0010:__check_object_size+0x201/0x870 mm/usercopy.c:257 Code: 49 c1 ec 06 49 83 e4 c0 49 bd 08 00 00 00 00 ea ff ff 4d 01 e5 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 4c 89 ef e8 a5 f0 f6 ff 4d 8b 7d 00 44 89 fe 83 e6 01 31 ff RSP: 0018:ffffc90000dcfae0 EFLAGS: 00000246 RAX: 1ffffd40008b38d9 RBX: 1ffff920001b9f60 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000dcfb90 R08: ffff88810cb3df00 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000000 R12: 000000000459c6c0 R13: ffffea000459c6c8 R14: ffff88811671b000 R15: 000000000000011b check_object_size include/linux/thread_info.h:215 [inline] check_copy_size include/linux/thread_info.h:251 [inline] copy_to_user include/linux/uaccess.h:219 [inline] syslog_print+0x4a1/0x6f0 kernel/printk/printk.c:1693 do_syslog+0x584/0x7f0 kernel/printk/printk.c:1794 __do_sys_syslog kernel/printk/printk.c:1886 [inline] __se_sys_syslog kernel/printk/printk.c:1884 [inline] __x64_sys_syslog+0x80/0x90 kernel/printk/printk.c:1884 x64_sys_call+0x19e6/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:104 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:0x7f6c8fa16a37 Code: 73 01 c3 48 8b 0d c1 f3 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 91 f3 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffeed7f8018 EFLAGS: 00000206 ORIG_RAX: 0000000000000067 RAX: ffffffffffffffda RBX: 00007f6c8fbb6490 RCX: 00007f6c8fa16a37 RDX: 00000000000003ff RSI: 00007f6c8fbb6490 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000206 R12: 00007f6c8fbb6490 R13: 00007f6c8fb93dfe R14: 00007f6c8fbb64e0 R15: 00007f6c8fbb64e0 ---[ end trace ]--- aiptek 3-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 49 c1 ec 06 shr $0x6,%r12 4: 49 83 e4 c0 and $0xffffffffffffffc0,%r12 8: 49 bd 08 00 00 00 00 movabs $0xffffea0000000008,%r13 f: ea ff ff 12: 4d 01 e5 add %r12,%r13 15: 4c 89 e8 mov %r13,%rax 18: 48 c1 e8 03 shr $0x3,%rax 1c: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 23: fc ff df 26: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 4c 89 ef mov %r13,%rdi 2f: e8 a5 f0 f6 ff call 0xfff6f0d9 34: 4d 8b 7d 00 mov 0x0(%r13),%r15 38: 44 89 fe mov %r15d,%esi 3b: 83 e6 01 and $0x1,%esi 3e: 31 ff xor %edi,%edi