================================================================== BUG: KMSAN: uninit-value in __rmqueue_smallest mm/page_alloc.c:1983 [inline] BUG: KMSAN: uninit-value in __rmqueue mm/page_alloc.c:2475 [inline] BUG: KMSAN: uninit-value in rmqueue mm/page_alloc.c:3035 [inline] BUG: KMSAN: uninit-value in get_page_from_freelist+0x64b4/0xb5e0 mm/page_alloc.c:3359 CPU: 1 PID: 7319 Comm: syz-executor1 Not tainted 4.17.0-rc5+ #103 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x149/0x260 mm/kmsan/kmsan.c:1084 __msan_warning_32+0x6e/0xc0 mm/kmsan/kmsan_instr.c:686 __rmqueue_smallest mm/page_alloc.c:1983 [inline] __rmqueue mm/page_alloc.c:2475 [inline] rmqueue mm/page_alloc.c:3035 [inline] get_page_from_freelist+0x64b4/0xb5e0 mm/page_alloc.c:3359 __alloc_pages_nodemask+0x7be/0x5dc0 mm/page_alloc.c:4371 __alloc_pages include/linux/gfp.h:458 [inline] __alloc_pages_node include/linux/gfp.h:471 [inline] alloc_pages_vma+0x1555/0x17f0 mm/mempolicy.c:2049 do_huge_pmd_anonymous_page+0xbdd/0x2540 mm/huge_memory.c:722 create_huge_pmd mm/memory.c:3854 [inline] __handle_mm_fault mm/memory.c:4058 [inline] handle_mm_fault+0x42f9/0x7e90 mm/memory.c:4124 __do_page_fault+0xec6/0x1a10 arch/x86/mm/fault.c:1400 do_page_fault+0xd3/0x260 arch/x86/mm/fault.c:1477 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1160 RIP: 0033:0x4076ca RSP: 002b:0000000000a3e940 EFLAGS: 00010246 RAX: 0000000020c73fa8 RBX: 0000000000000000 RCX: 0000000000000026 RDX: ba416cd62e4d07f7 RSI: 0000000000000000 RDI: 000000000237f848 RBP: 0000000000000001 R08: 0000000000000000 R09: 00000000007302f8 R10: 0000000000a3e940 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000002 R14: 000000000072bea0 R15: 000000000001b4bb Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_save_stack mm/kmsan/kmsan.c:294 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:685 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:529 __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:876 free_one_page mm/page_alloc.c:1176 [inline] __free_pages_ok+0x87f/0x16c0 mm/page_alloc.c:1260 free_compound_page+0x8e/0xc0 mm/page_alloc.c:571 free_transhuge_page+0x3bc/0x470 mm/huge_memory.c:2732 __put_compound_page mm/swap.c:95 [inline] release_pages+0x6f2/0x1650 mm/swap.c:759 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+0x445/0x5e0 mm/memory.c:1557 unmap_vmas+0x1f4/0x360 mm/memory.c:1587 exit_mmap+0x4bb/0x970 mm/mmap.c:3105 __mmput+0x158/0x600 kernel/fork.c:962 mmput+0xab/0xf0 kernel/fork.c:983 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 get_signal+0xfcb/0x1f40 kernel/signal.c:2482 do_signal+0xb8/0x1cf0 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline] prepare_exit_to_usermode+0x271/0x3a0 arch/x86/entry/common.c:196 syscall_return_slowpath+0xe9/0x700 arch/x86/entry/common.c:265 do_syscall_64+0x1af/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_alloc_meta_for_pages+0x161/0x3a0 mm/kmsan/kmsan.c:815 kmsan_alloc_page+0x82/0xe0 mm/kmsan/kmsan.c:885 __alloc_pages_nodemask+0xfc0/0x5dc0 mm/page_alloc.c:4402 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] __get_free_pages+0x2d/0xc0 mm/page_alloc.c:4423 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+0x445/0x5e0 mm/memory.c:1557 unmap_vmas+0x1f4/0x360 mm/memory.c:1587 exit_mmap+0x4bb/0x970 mm/mmap.c:3105 __mmput+0x158/0x600 kernel/fork.c:962 mmput+0xab/0xf0 kernel/fork.c:983 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 get_signal+0xfcb/0x1f40 kernel/signal.c:2482 do_signal+0xb8/0x1cf0 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline] prepare_exit_to_usermode+0x271/0x3a0 arch/x86/entry/common.c:196 syscall_return_slowpath+0xe9/0x700 arch/x86/entry/common.c:265 do_syscall_64+0x1af/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 ==================================================================