================================================================== BUG: KMSAN: uninit-value in __rmqueue_smallest mm/page_alloc.c:1857 [inline] BUG: KMSAN: uninit-value in __rmqueue mm/page_alloc.c:2349 [inline] BUG: KMSAN: uninit-value in rmqueue mm/page_alloc.c:2914 [inline] BUG: KMSAN: uninit-value in get_page_from_freelist+0x64c5/0xb600 mm/page_alloc.c:3243 CPU: 0 PID: 13629 Comm: syz-executor1 Not tainted 4.16.0+ #87 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:53 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683 __rmqueue_smallest mm/page_alloc.c:1857 [inline] __rmqueue mm/page_alloc.c:2349 [inline] rmqueue mm/page_alloc.c:2914 [inline] get_page_from_freelist+0x64c5/0xb600 mm/page_alloc.c:3243 __alloc_pages_nodemask+0x789/0x5dc0 mm/page_alloc.c:4252 __alloc_pages include/linux/gfp.h:458 [inline] __alloc_pages_node include/linux/gfp.h:471 [inline] alloc_pages_vma+0x1565/0x1800 mm/mempolicy.c:2011 do_huge_pmd_wp_page+0x3103/0x5080 mm/huge_memory.c:1297 wp_huge_pmd mm/memory.c:3880 [inline] __handle_mm_fault mm/memory.c:4093 [inline] handle_mm_fault+0x24ed/0x7e50 mm/memory.c:4140 __do_page_fault+0xec4/0x1a10 arch/x86/mm/fault.c:1423 do_page_fault+0xd3/0x260 arch/x86/mm/fault.c:1500 page_fault+0x45/0x50 arch/x86/entry/entry_64.S:1151 RIP: 0033:0x43cd71 RSP: 002b:0000000000a3e978 EFLAGS: 00010202 RAX: 0000000020000040 RBX: 0000000000000000 RCX: 000000000000000e RDX: 0000000000000013 RSI: 0000000000730020 RDI: 0000000020000040 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000001f24940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000038adf Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:528 __write_once_size include/linux/compiler.h:224 [inline] __list_add include/linux/list.h:66 [inline] list_add include/linux/list.h:79 [inline] __free_one_page+0x16cb/0x1800 mm/page_alloc.c:915 free_one_page mm/page_alloc.c:1185 [inline] __free_pages_ok+0x87f/0x16b0 mm/page_alloc.c:1276 free_compound_page+0x8e/0xc0 mm/page_alloc.c:610 free_transhuge_page+0x3bc/0x470 mm/huge_memory.c:2733 __put_compound_page mm/swap.c:95 [inline] release_pages+0x702/0x1670 mm/swap.c:760 free_pages_and_swap_cache+0x55b/0x580 mm/swap_state.c:322 tlb_flush_mmu_free mm/memory.c:259 [inline] zap_pte_range mm/memory.c:1404 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0x3228/0x3be0 mm/memory.c:1512 unmap_single_vma+0x45b/0x5f0 mm/memory.c:1557 unmap_vmas+0x1f4/0x360 mm/memory.c:1587 exit_mmap+0x3da/0x950 mm/mmap.c:3020 __mmput+0x16c/0x610 kernel/fork.c:961 mmput+0xab/0xf0 kernel/fork.c:982 exit_mm+0x6ed/0x7a0 kernel/exit.c:545 do_exit+0xc01/0x38d0 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 SYSC_exit_group+0x21/0x30 kernel/exit.c:981 SyS_exit_group+0x25/0x30 kernel/exit.c:979 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_alloc_meta_for_pages+0x161/0x3a0 mm/kmsan/kmsan.c:814 kmsan_alloc_page+0x82/0xe0 mm/kmsan/kmsan.c:868 __alloc_pages_nodemask+0xf5b/0x5dc0 mm/page_alloc.c:4283 alloc_pages_current+0x6b5/0x970 mm/mempolicy.c:2055 alloc_pages include/linux/gfp.h:494 [inline] __get_free_pages+0x2d/0xc0 mm/page_alloc.c:4304 tlb_next_batch mm/memory.c:204 [inline] __tlb_remove_page_size mm/memory.c:316 [inline] __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1340 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0x26d2/0x3be0 mm/memory.c:1512 unmap_single_vma+0x45b/0x5f0 mm/memory.c:1557 unmap_vmas+0x1f4/0x360 mm/memory.c:1587 exit_mmap+0x3da/0x950 mm/mmap.c:3020 __mmput+0x16c/0x610 kernel/fork.c:961 mmput+0xab/0xf0 kernel/fork.c:982 exit_mm+0x6ed/0x7a0 kernel/exit.c:545 do_exit+0xc01/0x38d0 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 SYSC_exit_group+0x21/0x30 kernel/exit.c:981 SyS_exit_group+0x25/0x30 kernel/exit.c:979 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 ==================================================================