------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 3647 is out of range for type 'const int[34]' CPU: 1 UID: 0 PID: 318 Comm: udevd Not tainted syzkaller #0 060dd26fc2c3b95caa7774ac3fc7b9d3ed7adcae Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1758 [inline] __hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839 handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684 __do_softirq kernel/softirq.c:722 [inline] invoke_softirq kernel/softirq.c:539 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771 irq_exit_rcu+0xd/0x30 kernel/softirq.c:783 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:__up_read kernel/locking/rwsem.c:1426 [inline] RIP: 0010:up_read+0x32/0x1c0 kernel/locking/rwsem.c:1701 Code: 41 57 41 56 53 48 89 fb 65 ff 05 91 e7 9c 7e 66 90 48 89 df be 08 00 00 00 e8 5a 30 7b 00 48 c7 c0 00 ff ff ff f0 48 0f c1 03 <48> 25 03 ff ff ff 48 3d 02 01 00 00 74 1a 0f 1f 44 00 00 65 ff 0d RSP: 0018:ffffc9000b8178e8 EFLAGS: 00000247 RAX: 0000000000000100 RBX: ffff888101651860 RCX: ffffffff81680806 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888101651860 RBP: ffffc9000b817900 R08: ffff888101651867 R09: 1ffff110202ca30c R10: dffffc0000000000 R11: ffffed10202ca30d R12: 0000000000000000 R13: 0000000000000001 R14: ffff888122d0f440 R15: ffff88811b1e1270 kernfs_dop_revalidate+0x390/0x4e0 fs/kernfs/dir.c:-1 d_revalidate fs/namei.c:868 [inline] lookup_fast+0x214/0x540 fs/namei.c:-1 lookup_fast_for_open fs/namei.c:3640 [inline] open_last_lookups fs/namei.c:3673 [inline] path_openat+0x64f/0x35a0 fs/namei.c:3938 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1434 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1460 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f1763aa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe7ecd4200 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f17641fb880 RCX: 00007f1763aa7407 RDX: 0000000000080000 RSI: 00007ffe7ecd4380 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055776a9797f5 R13: 000055776a9797f5 R14: 0000000000000001 R15: 000055776a994140 ---[ 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 ffffffff8671023c by task udevd/318 CPU: 1 UID: 0 PID: 318 Comm: udevd Not tainted syzkaller #0 060dd26fc2c3b95caa7774ac3fc7b9d3ed7adcae Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1758 [inline] __hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839 handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684 __do_softirq kernel/softirq.c:722 [inline] invoke_softirq kernel/softirq.c:539 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771 irq_exit_rcu+0xd/0x30 kernel/softirq.c:783 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:__up_read kernel/locking/rwsem.c:1426 [inline] RIP: 0010:up_read+0x32/0x1c0 kernel/locking/rwsem.c:1701 Code: 41 57 41 56 53 48 89 fb 65 ff 05 91 e7 9c 7e 66 90 48 89 df be 08 00 00 00 e8 5a 30 7b 00 48 c7 c0 00 ff ff ff f0 48 0f c1 03 <48> 25 03 ff ff ff 48 3d 02 01 00 00 74 1a 0f 1f 44 00 00 65 ff 0d RSP: 0018:ffffc9000b8178e8 EFLAGS: 00000247 RAX: 0000000000000100 RBX: ffff888101651860 RCX: ffffffff81680806 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888101651860 RBP: ffffc9000b817900 R08: ffff888101651867 R09: 1ffff110202ca30c R10: dffffc0000000000 R11: ffffed10202ca30d R12: 0000000000000000 R13: 0000000000000001 R14: ffff888122d0f440 R15: ffff88811b1e1270 kernfs_dop_revalidate+0x390/0x4e0 fs/kernfs/dir.c:-1 d_revalidate fs/namei.c:868 [inline] lookup_fast+0x214/0x540 fs/namei.c:-1 lookup_fast_for_open fs/namei.c:3640 [inline] open_last_lookups fs/namei.c:3673 [inline] path_openat+0x64f/0x35a0 fs/namei.c:3938 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1434 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1460 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f1763aa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe7ecd4200 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f17641fb880 RCX: 00007f1763aa7407 RDX: 0000000000080000 RSI: 00007ffe7ecd4380 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055776a9797f5 R13: 000055776a9797f5 R14: 0000000000000001 R15: 000055776a994140 The buggy address belongs to the variable: .str.48+0x5c/0x60 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6710 flags: 0x4000(reserved|zone=0) raw: 0000000000004000 ffffea000019c408 ffffea000019c408 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: ffffffff86710100: 00 00 00 00 04 f9 f9 f9 f9 f9 f9 f9 00 00 01 f9 ffffffff86710180: f9 f9 f9 f9 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 >ffffffff86710200: 06 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 00 00 00 00 ^ ffffffff86710280: 06 f9 f9 f9 f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 ffffffff86710300: 00 05 f9 f9 00 00 00 00 01 f9 f9 f9 f9 f9 f9 f9 ================================================================== ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 3648 is out of range for type 'const int[34]' CPU: 1 UID: 0 PID: 318 Comm: udevd Tainted: G B syzkaller #0 060dd26fc2c3b95caa7774ac3fc7b9d3ed7adcae Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x371/0x530 drivers/usb/core/hcd.c:1646 usb_hcd_giveback_urb+0x12b/0x400 drivers/usb/core/hcd.c:1730 dummy_timer+0xa3f/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:2003 __run_hrtimer kernel/time/hrtimer.c:1758 [inline] __hrtimer_run_queues+0x3ab/0x8e0 kernel/time/hrtimer.c:1822 hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839 handle_softirqs+0x1b0/0x5b0 kernel/softirq.c:684 __do_softirq kernel/softirq.c:722 [inline] invoke_softirq kernel/softirq.c:539 [inline] __irq_exit_rcu+0x47/0xb0 kernel/softirq.c:771 irq_exit_rcu+0xd/0x30 kernel/softirq.c:783 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:__up_read kernel/locking/rwsem.c:1426 [inline] RIP: 0010:up_read+0x32/0x1c0 kernel/locking/rwsem.c:1701 Code: 41 57 41 56 53 48 89 fb 65 ff 05 91 e7 9c 7e 66 90 48 89 df be 08 00 00 00 e8 5a 30 7b 00 48 c7 c0 00 ff ff ff f0 48 0f c1 03 <48> 25 03 ff ff ff 48 3d 02 01 00 00 74 1a 0f 1f 44 00 00 65 ff 0d RSP: 0018:ffffc9000b8178e8 EFLAGS: 00000247 RAX: 0000000000000100 RBX: ffff888101651860 RCX: ffffffff81680806 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888101651860 RBP: ffffc9000b817900 R08: ffff888101651867 R09: 1ffff110202ca30c R10: dffffc0000000000 R11: ffffed10202ca30d R12: 0000000000000000 R13: 0000000000000001 R14: ffff888122d0f440 R15: ffff88811b1e1270 kernfs_dop_revalidate+0x390/0x4e0 fs/kernfs/dir.c:-1 d_revalidate fs/namei.c:868 [inline] lookup_fast+0x214/0x540 fs/namei.c:-1 lookup_fast_for_open fs/namei.c:3640 [inline] open_last_lookups fs/namei.c:3673 [inline] path_openat+0x64f/0x35a0 fs/namei.c:3938 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1434 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1460 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f1763aa7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe7ecd4200 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f17641fb880 RCX: 00007f1763aa7407 RDX: 0000000000080000 RSI: 00007ffe7ecd4380 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055776a9797f5 R13: 000055776a9797f5 R14: 0000000000000001 R15: 000055776a994140 ---[ end trace ]--- aiptek 2-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 41 57 push %r15 2: 41 56 push %r14 4: 53 push %rbx 5: 48 89 fb mov %rdi,%rbx 8: 65 ff 05 91 e7 9c 7e incl %gs:0x7e9ce791(%rip) # 0x7e9ce7a0 f: 66 90 xchg %ax,%ax 11: 48 89 df mov %rbx,%rdi 14: be 08 00 00 00 mov $0x8,%esi 19: e8 5a 30 7b 00 call 0x7b3078 1e: 48 c7 c0 00 ff ff ff mov $0xffffffffffffff00,%rax 25: f0 48 0f c1 03 lock xadd %rax,(%rbx) * 2a: 48 25 03 ff ff ff and $0xffffffffffffff03,%rax <-- trapping instruction 30: 48 3d 02 01 00 00 cmp $0x102,%rax 36: 74 1a je 0x52 38: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 3d: 65 gs 3e: ff .byte 0xff 3f: 0d .byte 0xd