================================================================== BUG: KASAN: slab-out-of-bounds in reg_fixed_voltage_probe+0xb62/0xd90 drivers/regulator/fixed.c:279 Read of size 4 at addr ffff88810cedd1f4 by task syz-executor498/312 CPU: 1 UID: 0 PID: 312 Comm: syz-executor498 Not tainted syzkaller #0 119f1c0cd44458c2ddc7f806e6d4d2dd11ae7dae Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x13e/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+0x75f/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:0x7f2e9193bdb9 Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe65f64478 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f2e9193bdb9 RDX: 000000000000000b RSI: 0000200000000700 RDI: 0000000000000005 RBP: 0000000000000001 R08: 00007ffe65f645b8 R09: 00007ffe65f645b8 R10: 00007ffe65f645b8 R11: 0000000000000246 R12: 00007ffe65f645a8 R13: 0000000000000002 R14: 00007f2e919ccca0 R15: 0000200000000004 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:2841 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 ffff88810cedd1e0 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 [ffff88810cedd1e0, ffff88810cedd1e8) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810cedd4c0 pfn:0x10cedd flags: 0x4000000000000200(workingset|zone=1) page_type: f5(slab) raw: 4000000000000200 ffff888100041500 ffffea0004299210 ffffea00042cbcd0 raw: ffff88810cedd4c0 0000000000800068 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 3246072899, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863 prep_new_page+0x2d/0x180 mm/page_alloc.c:1871 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315 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] __kmalloc_cache_noprof+0x2cd/0x470 mm/slub.c:4421 kmalloc_noprof include/linux/slab.h:881 [inline] kmalloc_array_noprof include/linux/slab.h:-1 [inline] alloc_node_to_cpumask lib/group_cpus.c:50 [inline] group_cpus_evenly+0xe3/0x510 lib/group_cpus.c:364 blk_mq_map_queues+0x4e/0x400 block/blk-mq-cpumap.c:24 blk_mq_update_queue_map+0x3a9/0x460 block/blk-mq.c:4781 blk_mq_alloc_tag_set+0x854/0x10a0 block/blk-mq.c:4895 loop_add+0x3a1/0xbc0 drivers/block/loop.c:2021 loop_init+0x17a/0x230 drivers/block/loop.c:2260 do_one_initcall+0x1e8/0x6a0 init/main.c:1406 do_initcall_level+0x174/0x2e5 init/main.c:1468 page_owner free stack trace missing Memory state around the buggy address: ffff88810cedd080: 03 fc fc fc 07 fc fc fc fa fc fc fc 00 fc fc fc ffff88810cedd100: 00 fc fc fc 00 fc fc fc 03 fc fc fc 05 fc fc fc >ffff88810cedd180: 00 fc fc fc fa fc fc fc 03 fc fc fc 00 fc fc fc ^ ffff88810cedd200: 00 fc fc fc fa fc fc fc 00 fc fc fc 03 fc fc fc ffff88810cedd280: 00 fc fc fc fa fc fc fc 00 fc fc fc fa fc fc fc ================================================================== : Operation of current configuration missing : no set_mode operation reg-fixed-voltage dummy_udc.0: error -EINVAL: Failed to register regulator: -22 reg-fixed-voltage dummy_ud