================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 3839 is out of range for type 'const int[34]' CPU: 1 PID: 534 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+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:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:24 Code: 05 00 48 85 c0 74 2c 48 89 df 48 89 c6 41 ba 4a 9c 94 52 45 03 56 fc 74 02 0f 0b 41 ff d6 84 c0 74 11 4c 89 ff e8 9c a6 05 00 <83> bd 78 ff ff ff 00 75 c7 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 RSP: 0018:ffffc90000cd7908 EFLAGS: 00000292 RAX: 1ffff9200019af01 RBX: ffffc90000cd79c0 RCX: 000000000019af01 RDX: ffffc90000cd7c78 RSI: 1ffff9200019af22 RDI: ffffc90000cd7930 RBP: ffffc90000cd7990 R08: ffffc90000cd79d0 R09: ffffc90000cd79c8 R10: 0000000000000001 R11: fffff5200019af2d R12: ffff88810d0f9440 R13: 0000000000000001 R14: ffffffff816207b0 R15: ffffc90000cd7908 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911 do_readlinkat+0xd9/0x490 fs/stat.c:468 __do_sys_readlink fs/stat.c:501 [inline] __se_sys_readlink fs/stat.c:498 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:498 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:90 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:0x7f357c3153a7 Code: 00 00 90 48 83 ec 10 48 63 ff 45 31 c9 45 31 c0 6a 00 31 c9 e8 8a 20 f9 ff 48 83 c4 18 c3 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 21 ba 0d 00 f7 d8 64 89 02 48 RSP: 002b:00007ffec75508b8 EFLAGS: 00000202 ORIG_RAX: 0000000000000059 RAX: ffffffffffffffda RBX: 00007ffec7551100 RCX: 00007f357c3153a7 RDX: 0000000000000400 RSI: 00007ffec7550cc0 RDI: 00007ffec75508c0 RBP: 0000000000000200 R08: 0000555a583bf604 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000202 R12: 00007ffec75508c0 R13: 00007ffec7550cc0 R14: 0000555a583c6ca4 R15: 0000555a583c6bcc ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741 Read of size 4 at addr ffffffff85e69c3c by task udevd/534 CPU: 1 PID: 534 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+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:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:24 Code: 05 00 48 85 c0 74 2c 48 89 df 48 89 c6 41 ba 4a 9c 94 52 45 03 56 fc 74 02 0f 0b 41 ff d6 84 c0 74 11 4c 89 ff e8 9c a6 05 00 <83> bd 78 ff ff ff 00 75 c7 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 RSP: 0018:ffffc90000cd7908 EFLAGS: 00000292 RAX: 1ffff9200019af01 RBX: ffffc90000cd79c0 RCX: 000000000019af01 RDX: ffffc90000cd7c78 RSI: 1ffff9200019af22 RDI: ffffc90000cd7930 RBP: ffffc90000cd7990 R08: ffffc90000cd79d0 R09: ffffc90000cd79c8 R10: 0000000000000001 R11: fffff5200019af2d R12: ffff88810d0f9440 R13: 0000000000000001 R14: ffffffff816207b0 R15: ffffc90000cd7908 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911 do_readlinkat+0xd9/0x490 fs/stat.c:468 __do_sys_readlink fs/stat.c:501 [inline] __se_sys_readlink fs/stat.c:498 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:498 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:90 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:0x7f357c3153a7 Code: 00 00 90 48 83 ec 10 48 63 ff 45 31 c9 45 31 c0 6a 00 31 c9 e8 8a 20 f9 ff 48 83 c4 18 c3 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 21 ba 0d 00 f7 d8 64 89 02 48 RSP: 002b:00007ffec75508b8 EFLAGS: 00000202 ORIG_RAX: 0000000000000059 RAX: ffffffffffffffda RBX: 00007ffec7551100 RCX: 00007f357c3153a7 RDX: 0000000000000400 RSI: 00007ffec7550cc0 RDI: 00007ffec75508c0 RBP: 0000000000000200 R08: 0000555a583bf604 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000202 R12: 00007ffec75508c0 R13: 00007ffec7550cc0 R14: 0000555a583c6ca4 R15: 0000555a583c6bcc The buggy address belongs to the variable: .str.49+0x3c/0x60 The buggy address belongs to the physical page: page:ffffea0000179a40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e69 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179a48 ffffea0000179a48 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: ffffffff85e69b00: 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 06 f9 f9 f9 ffffffff85e69b80: f9 f9 f9 f9 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 >ffffffff85e69c00: 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 ^ ffffffff85e69c80: 00 00 03 f9 f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 ffffffff85e69d00: 00 00 00 01 f9 f9 f9 f9 00 00 00 00 01 f9 f9 f9 ================================================================== ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 3840 is out of range for type 'const int[34]' CPU: 1 PID: 534 Comm: udevd Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+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:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:arch_stack_walk+0x124/0x150 arch/x86/kernel/stacktrace.c:24 Code: 05 00 48 85 c0 74 2c 48 89 df 48 89 c6 41 ba 4a 9c 94 52 45 03 56 fc 74 02 0f 0b 41 ff d6 84 c0 74 11 4c 89 ff e8 9c a6 05 00 <83> bd 78 ff ff ff 00 75 c7 65 48 8b 04 25 28 00 00 00 48 3b 45 d8 RSP: 0018:ffffc90000cd7908 EFLAGS: 00000292 RAX: 1ffff9200019af01 RBX: ffffc90000cd79c0 RCX: 000000000019af01 RDX: ffffc90000cd7c78 RSI: 1ffff9200019af22 RDI: ffffc90000cd7930 RBP: ffffc90000cd7990 R08: ffffc90000cd79d0 R09: ffffc90000cd79c8 R10: 0000000000000001 R11: fffff5200019af2d R12: ffff88810d0f9440 R13: 0000000000000001 R14: ffffffff816207b0 R15: ffffc90000cd7908 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911 do_readlinkat+0xd9/0x490 fs/stat.c:468 __do_sys_readlink fs/stat.c:501 [inline] __se_sys_readlink fs/stat.c:498 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:498 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:90 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:0x7f357c3153a7 Code: 00 00 90 48 83 ec 10 48 63 ff 45 31 c9 45 31 c0 6a 00 31 c9 e8 8a 20 f9 ff 48 83 c4 18 c3 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 21 ba 0d 00 f7 d8 64 89 02 48 RSP: 002b:00007ffec75508b8 EFLAGS: 00000202 ORIG_RAX: 0000000000000059 RAX: ffffffffffffffda RBX: 00007ffec7551100 RCX: 00007f357c3153a7 RDX: 0000000000000400 RSI: 00007ffec7550cc0 RDI: 00007ffec75508c0 RBP: 0000000000000200 R08: 0000555a583bf604 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000202 R12: 00007ffec75508c0 R13: 00007ffec7550cc0 R14: 0000555a583c6ca4 R15: 0000555a583c6bcc ================================================================================ aiptek 4-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 05 00 48 85 c0 add $0xc0854800,%eax 5: 74 2c je 0x33 7: 48 89 df mov %rbx,%rdi a: 48 89 c6 mov %rax,%rsi d: 41 ba 4a 9c 94 52 mov $0x52949c4a,%r10d 13: 45 03 56 fc add -0x4(%r14),%r10d 17: 74 02 je 0x1b 19: 0f 0b ud2 1b: 41 ff d6 call *%r14 1e: 84 c0 test %al,%al 20: 74 11 je 0x33 22: 4c 89 ff mov %r15,%rdi 25: e8 9c a6 05 00 call 0x5a6c6 * 2a: 83 bd 78 ff ff ff 00 cmpl $0x0,-0x88(%rbp) <-- trapping instruction 31: 75 c7 jne 0xfffffffa 33: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 3a: 00 00 3c: 48 3b 45 d8 cmp -0x28(%rbp),%rax