===================================================== BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:355 [inline] BUG: KMSAN: uninit-value in mpol_rebind_mm+0x35b/0x460 mm/mempolicy.c:386 mpol_rebind_policy mm/mempolicy.c:355 [inline] mpol_rebind_mm+0x35b/0x460 mm/mempolicy.c:386 cpuset_attach+0xe2d/0x15f0 kernel/cgroup/cpuset.c:2321 cgroup_migrate_execute+0x1023/0x1d20 kernel/cgroup/cgroup.c:2516 cgroup_migrate kernel/cgroup/cgroup.c:2772 [inline] cgroup_attach_task+0x540/0x8b0 kernel/cgroup/cgroup.c:2805 __cgroup1_procs_write+0x5f2/0x7e0 kernel/cgroup/cgroup-v1.c:523 cgroup1_procs_write+0x97/0xb0 kernel/cgroup/cgroup-v1.c:536 cgroup_file_write+0x4d0/0x9f0 kernel/cgroup/cgroup.c:3882 kernfs_fop_write_iter+0x66a/0x9f0 fs/kernfs/file.c:291 call_write_iter include/linux/fs.h:2050 [inline] new_sync_write fs/read_write.c:504 [inline] vfs_write+0x119f/0x1e80 fs/read_write.c:591 ksys_write+0x28b/0x510 fs/read_write.c:644 __do_sys_write fs/read_write.c:656 [inline] __se_sys_write fs/read_write.c:653 [inline] __x64_sys_write+0xdb/0x120 fs/read_write.c:653 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x51/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was stored to memory at: __mpol_dup+0x107/0x480 mm/mempolicy.c:2407 mpol_dup include/linux/mempolicy.h:88 [inline] vma_replace_policy mm/mempolicy.c:765 [inline] mbind_range+0xd58/0x1820 mm/mempolicy.c:831 do_mbind+0x1401/0x1b60 mm/mempolicy.c:1315 kernel_mbind mm/mempolicy.c:1469 [inline] __do_sys_mbind mm/mempolicy.c:1547 [inline] __se_sys_mbind+0x4f2/0xa80 mm/mempolicy.c:1543 __x64_sys_mbind+0x19d/0x200 mm/mempolicy.c:1543 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x51/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was created at: slab_post_alloc_hook mm/slab.h:754 [inline] slab_alloc_node mm/slub.c:3231 [inline] slab_alloc mm/slub.c:3239 [inline] __kmem_cache_alloc_lru mm/slub.c:3246 [inline] kmem_cache_alloc+0x8d9/0x11a0 mm/slub.c:3256 mpol_new mm/mempolicy.c:295 [inline] do_mbind+0x8f5/0x1b60 mm/mempolicy.c:1271 kernel_mbind mm/mempolicy.c:1469 [inline] __do_sys_mbind mm/mempolicy.c:1547 [inline] __se_sys_mbind+0x4f2/0xa80 mm/mempolicy.c:1543 __x64_sys_mbind+0x19d/0x200 mm/mempolicy.c:1543 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x51/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x44/0xae CPU: 1 PID: 20976 Comm: syz-executor.5 Not tainted 5.18.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 =====================================================