================================================================== BUG: KASAN: stack-out-of-bounds in cp2112_write_req drivers/hid/hid-cp2112.c:482 [inline] BUG: KASAN: stack-out-of-bounds in cp2112_xfer+0x60b/0xdd0 drivers/hid/hid-cp2112.c:699 Read of size 42 at addr ffffc90003b07d41 by task syz.3.2844/13776 CPU: 1 PID: 13776 Comm: syz.3.2844 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 cp2112_write_req drivers/hid/hid-cp2112.c:482 [inline] cp2112_xfer+0x60b/0xdd0 drivers/hid/hid-cp2112.c:699 __i2c_smbus_xfer+0x771/0x1fc0 drivers/i2c/i2c-core-smbus.c:590 i2c_smbus_xfer+0x263/0x3a0 drivers/i2c/i2c-core-smbus.c:545 i2cdev_ioctl_smbus+0x3e3/0x650 drivers/i2c/i2c-dev.c:381 i2cdev_ioctl+0x545/0x750 drivers/i2c/i2c-dev.c:467 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856 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:0x7f97cc78f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f97cd586038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f97cc9e5fa0 RCX: 00007f97cc78f749 RDX: 0000200000000200 RSI: 0000000000000720 RDI: 0000000000000004 RBP: 00007f97cc813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f97cc9e6038 R14: 00007f97cc9e5fa0 R15: 00007fffabc84628 The buggy address belongs to stack of task syz.3.2844/13776 and is located at offset 33 in frame: i2cdev_ioctl_smbus+0x0/0x650 This frame has 1 object: [32, 66) 'temp' The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90003b00000 allocated at copy_process+0x5bd/0x4020 kernel/fork.c:2186 The buggy address belongs to the physical page: page:ffffea00007bfb80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1efee memcg:ffff88807e26ea82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88807e26ea82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 4021, tgid 4021 (sshd), ts 48097592859, free_ts 41618064365 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 vm_area_alloc_pages mm/vmalloc.c:3002 [inline] __vmalloc_area_node mm/vmalloc.c:3071 [inline] __vmalloc_node_range+0x959/0x1390 mm/vmalloc.c:3243 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct+0x3d3/0x6b0 kernel/fork.c:994 copy_process+0x5bd/0x4020 kernel/fork.c:2186 kernel_clone+0x225/0x8b0 kernel/fork.c:2762 __do_sys_clone kernel/fork.c:2903 [inline] __se_sys_clone kernel/fork.c:2887 [inline] __x64_sys_clone+0x17c/0x1d0 kernel/fork.c:2887 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 getname_flags+0xb7/0x500 fs/namei.c:139 getname fs/namei.c:218 [inline] __do_sys_mkdir fs/namei.c:4159 [inline] __se_sys_mkdir fs/namei.c:4157 [inline] __x64_sys_mkdir+0x5b/0x80 fs/namei.c:4157 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 Memory state around the buggy address: ffffc90003b07c00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 ffffc90003b07c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003b07d00: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 02 f3 f3 f3 ^ ffffc90003b07d80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003b07e00: f1 f1 f1 f1 04 f2 00 00 f2 f2 00 00 f3 f3 f3 f3 ==================================================================