===================================================== BUG: KMSAN: uninit-value in cpa_flush arch/x86/mm/pat/set_memory.c:453 [inline] BUG: KMSAN: uninit-value in change_page_attr_set_clr+0x1413/0x21a0 arch/x86/mm/pat/set_memory.c:2115 cpa_flush arch/x86/mm/pat/set_memory.c:453 [inline] change_page_attr_set_clr+0x1413/0x21a0 arch/x86/mm/pat/set_memory.c:2115 cpa_set_pages_array arch/x86/mm/pat/set_memory.c:2137 [inline] _set_pages_array+0x23d/0x4b0 arch/x86/mm/pat/set_memory.c:2521 set_pages_array_wc+0x39/0x50 arch/x86/mm/pat/set_memory.c:2552 drm_gem_shmem_get_pages_locked+0x3f7/0x4e0 drivers/gpu/drm/drm_gem_shmem_helper.c:214 drm_gem_shmem_mmap+0x2b0/0x700 drivers/gpu/drm/drm_gem_shmem_helper.c:646 drm_gem_shmem_object_mmap+0x36/0x50 include/drm/drm_gem_shmem_helper.h:277 drm_gem_mmap_obj+0x210/0x7b0 drivers/gpu/drm/drm_gem.c:1167 drm_gem_mmap+0x55b/0xb70 drivers/gpu/drm/drm_gem.c:1245 vfs_mmap include/linux/fs.h:2405 [inline] mmap_file mm/internal.h:167 [inline] __mmap_new_file_vma mm/vma.c:2413 [inline] __mmap_new_vma mm/vma.c:2476 [inline] __mmap_region mm/vma.c:2670 [inline] mmap_region+0x3632/0x5020 mm/vma.c:2740 do_mmap+0x17a8/0x1d70 mm/mmap.c:558 vm_mmap_pgoff+0x40d/0x770 mm/util.c:581 ksys_mmap_pgoff+0x51b/0x7c0 mm/mmap.c:604 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline] __x64_sys_mmap+0x19c/0x260 arch/x86/kernel/sys_x86_64.c:82 x64_sys_call+0x18a7/0x3e30 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: slab_post_alloc_hook mm/slub.c:4962 [inline] slab_alloc_node mm/slub.c:5265 [inline] __do_kmalloc_node mm/slub.c:5626 [inline] __kvmalloc_node_noprof+0xb8f/0x1d40 mm/slub.c:7081 kvmalloc_array_node_noprof include/linux/slab.h:1122 [inline] drm_gem_get_pages+0x153/0x14c0 drivers/gpu/drm/drm_gem.c:647 drm_gem_shmem_get_pages_locked+0x1d2/0x4e0 drivers/gpu/drm/drm_gem_shmem_helper.c:200 drm_gem_shmem_mmap+0x2b0/0x700 drivers/gpu/drm/drm_gem_shmem_helper.c:646 drm_gem_shmem_object_mmap+0x36/0x50 include/drm/drm_gem_shmem_helper.h:277 drm_gem_mmap_obj+0x210/0x7b0 drivers/gpu/drm/drm_gem.c:1167 drm_gem_mmap+0x55b/0xb70 drivers/gpu/drm/drm_gem.c:1245 vfs_mmap include/linux/fs.h:2405 [inline] mmap_file mm/internal.h:167 [inline] __mmap_new_file_vma mm/vma.c:2413 [inline] __mmap_new_vma mm/vma.c:2476 [inline] __mmap_region mm/vma.c:2670 [inline] mmap_region+0x3632/0x5020 mm/vma.c:2740 do_mmap+0x17a8/0x1d70 mm/mmap.c:558 vm_mmap_pgoff+0x40d/0x770 mm/util.c:581 ksys_mmap_pgoff+0x51b/0x7c0 mm/mmap.c:604 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline] __x64_sys_mmap+0x19c/0x260 arch/x86/kernel/sys_x86_64.c:82 x64_sys_call+0x18a7/0x3e30 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 1 UID: 0 PID: 6682 Comm: syz.5.187 Not tainted syzkaller #0 PREEMPT(none) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 =====================================================