================================================================== BUG: KASAN: stack-out-of-bounds in ft260_smbus_write+0x156/0x2f0 drivers/hid/hid-ft260.c:486 Read of size 42 at addr ffffc90003227d21 by task syz.1.32/6793 CPU: 0 UID: 0 PID: 6793 Comm: syz.1.32 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ft260_smbus_write+0x156/0x2f0 drivers/hid/hid-ft260.c:486 ft260_smbus_xfer+0x8bc/0xdd0 drivers/hid/hid-ft260.c:-1 __i2c_smbus_xfer+0x8d8/0x1eb0 drivers/i2c/i2c-core-smbus.c:591 i2c_smbus_xfer+0x1f4/0x310 drivers/i2c/i2c-core-smbus.c:546 i2cdev_ioctl_smbus+0x434/0x730 drivers/i2c/i2c-dev.c:389 i2cdev_ioctl+0x615/0x880 drivers/i2c/i2c-dev.c:478 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f923799aef9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9238887028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9237c05fa0 RCX: 00007f923799aef9 RDX: 0000200000000200 RSI: 0000000000000720 RDI: 0000000000000004 RBP: 00007f9237a2fee0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9237c06038 R14: 00007f9237c05fa0 R15: 00007ffe4dc76c98 The buggy address belongs to stack of task syz.1.32/6793 and is located at offset 33 in frame: i2cdev_ioctl_smbus+0x0/0x730 drivers/i2c/i2c-dev.c:317 This frame has 1 object: [32, 66) 'temp' The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90003220000 allocated at copy_process+0x89b/0x4450 kernel/fork.c:2088 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x79b3f memcg:ffff88807c05c882 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88807c05c882 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 6696, tgid 6696 (dhcpcd-run-hook), ts 127926168587, free_ts 125429066853 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_pages_mpol+0x235/0x490 mm/mempolicy.c:2490 alloc_frozen_pages_noprof mm/mempolicy.c:2561 [inline] alloc_pages_noprof+0xac/0x2a0 mm/mempolicy.c:2581 vm_area_alloc_pages mm/vmalloc.c:3653 [inline] __vmalloc_area_node mm/vmalloc.c:3878 [inline] __vmalloc_node_range_noprof+0x7a7/0x1750 mm/vmalloc.c:4064 __vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124 alloc_thread_stack_node kernel/fork.c:357 [inline] dup_task_struct+0x298/0x840 kernel/fork.c:926 copy_process+0x89b/0x4450 kernel/fork.c:2088 kernel_clone+0x2d7/0x940 kernel/fork.c:2724 __do_sys_clone kernel/fork.c:2865 [inline] __se_sys_clone kernel/fork.c:2849 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2849 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6633 tgid 6633 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943 __slab_free+0x274/0x2c0 mm/slub.c:5608 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] __kmalloc_cache_noprof+0x2ba/0x660 mm/slub.c:5410 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] tomoyo_environ security/tomoyo/domain.c:634 [inline] tomoyo_find_next_domain+0x10e6/0x1aa0 security/tomoyo/domain.c:889 tomoyo_bprm_check_security+0x11b/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x85/0x240 security/security.c:820 search_binary_handler fs/exec.c:1654 [inline] exec_binprm fs/exec.c:1696 [inline] bprm_execve+0x8b0/0x1450 fs/exec.c:1748 do_execveat_common+0x50d/0x690 fs/exec.c:1846 __do_sys_execve fs/exec.c:1930 [inline] __se_sys_execve fs/exec.c:1924 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:1924 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003227c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003227c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003227d00: f1 f1 f1 f1 00 00 00 00 02 f3 f3 f3 f3 f3 f3 f3 ^ ffffc90003227d80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffffc90003227e00: f8 f2 f8 f8 f2 f2 00 00 f3 f3 f3 f3 00 00 00 00 ==================================================================