================================================================== BUG: KASAN: slab-out-of-bounds in reg_fixed_voltage_probe+0xb62/0xd90 drivers/regulator/fixed.c:279 Read of size 4 at addr ffff88810deead34 by task syz.2.17/489 CPU: 1 UID: 0 PID: 489 Comm: syz.2.17 Not tainted syzkaller #0 6a8783e8713552033dfd6b010d865f7ea6859adb Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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 reg_fixed_voltage_probe+0xb62/0xd90 drivers/regulator/fixed.c:279 platform_probe+0x17a/0x200 drivers/base/platform.c:1404 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e1/0x8b0 drivers/base/dd.c:657 __driver_probe_device+0x193/0x280 drivers/base/dd.c:799 device_driver_attach+0xdb/0x1f0 drivers/base/dd.c:1126 bind_store+0x1dc/0x230 drivers/base/bus.c:267 drv_attr_store+0x91/0xb0 drivers/base/bus.c:125 sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x762/0xfd0 fs/read_write.c:684 ksys_write+0x145/0x260 fs/read_write.c:737 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x7f/0x90 fs/read_write.c:746 x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2 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:0x7fb41dd9e0d9 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:00007fb41dbff028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb41e025fa0 RCX: 00007fb41dd9e0d9 RDX: 000000000000000b RSI: 0000200000000700 RDI: 0000000000000005 RBP: 00007fb41de35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb41e026038 R14: 00007fb41e025fa0 R15: 00007fffa0b45908 Allocated by task 1: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __do_kmalloc_node mm/slub.c:4395 [inline] __kmalloc_node_track_caller_noprof+0x24e/0x4f0 mm/slub.c:4414 kmemdup_noprof+0x31/0x80 mm/util.c:139 kmemdup_noprof include/linux/fortify-string.h:753 [inline] platform_device_add_data+0x49/0x130 drivers/base/platform.c:639 dummy_hcd_init+0x779/0x1230 drivers/usb/gadget/udc/dummy_hcd.c:2845 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 do_initcalls+0x7e/0x160 init/main.c:1484 do_basic_setup+0x95/0xb0 init/main.c:1503 kernel_init_freeable+0x2b1/0x400 init/main.c:1717 kernel_init+0x21/0x1e0 init/main.c:1606 ret_from_fork+0x67/0xa0 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88810deead20 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 12 bytes to the right of allocated 8-byte region [ffff88810deead20, ffff88810deead28) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10deea flags: 0x4000000000000000(zone=1) page_type: f5(slab) raw: 4000000000000000 ffff888100041500 ffffea0004299300 dead000000000002 raw: 0000000000000000 0000000000800080 00000001f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 3363666081, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1864 prep_new_page+0x2d/0x180 mm/page_alloc.c:1872 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316 alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1 allocate_slab+0x69/0x430 mm/slub.c:2687 new_slab mm/slub.c:2741 [inline] ___slab_alloc+0x591/0x8c0 mm/slub.c:3934 __slab_alloc mm/slub.c:4025 [inline] __slab_alloc_node mm/slub.c:4078 [inline] slab_alloc_node mm/slub.c:4239 [inline] __do_kmalloc_node mm/slub.c:4394 [inline] __kmalloc_node_track_caller_noprof+0x2e3/0x4f0 mm/slub.c:4414 kstrdup+0x4d/0x130 mm/util.c:70 kstrdup_const+0x45/0x60 mm/util.c:93 __kernfs_new_node+0xaa/0x740 fs/kernfs/dir.c:624 kernfs_new_node+0x154/0x280 fs/kernfs/dir.c:704 kernfs_create_link+0xa8/0x200 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x8a/0x120 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x6c/0x90 fs/sysfs/symlink.c:92 device_add_class_symlinks+0x1dd/0x260 drivers/base/core.c:3451 page_owner free stack trace missing Memory state around the buggy address: ffff88810deeac00: 05 fc fc fc fa fc fc fc 05 fc fc fc 00 fc fc fc ffff88810deeac80: 00 fc fc fc 00 fc fc fc 00 fc fc fc 05 fc fc fc >ffff88810deead00: 03 fc fc fc 00 fc fc fc 00 fc fc fc 05 fc fc fc ^ ffff88810deead80: 05 fc fc fc 00 fc fc fc 00 fc fc fc 05 fc fc fc ffff88810deeae00: 05 fc fc fc 03 fc fc fc 05 fc fc fc fa fc fc fc ================================================================== @t�ˆÿÿ@t�ˆÿÿæ‹ÿÿ: Operation of current configuration missing @t�ˆÿÿ@t�ˆÿÿæ‹ÿÿ: no set_mode operation reg-fixed-voltage dummy_udc.0: error -EINVAL: Failed to register regulator: -22 reg-fixed-voltage dummy_udc.0: probe with driver reg-fixed-voltage failed with error -22