================================================================== BUG: KMSAN: uninit-value in __rmqueue_pcplist mm/page_alloc.c:2964 [inline] BUG: KMSAN: uninit-value in rmqueue_pcplist mm/page_alloc.c:2993 [inline] BUG: KMSAN: uninit-value in rmqueue mm/page_alloc.c:3015 [inline] BUG: KMSAN: uninit-value in get_page_from_freelist+0x5e3f/0xb5e0 mm/page_alloc.c:3359 CPU: 1 PID: 12566 Comm: modprobe Not tainted 4.17.0-rc5+ #102 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_pcplist mm/page_alloc.c:2964 [inline] rmqueue_pcplist mm/page_alloc.c:2993 [inline] rmqueue mm/page_alloc.c:3015 [inline] get_page_from_freelist+0x5e3f/0xb5e0 mm/page_alloc.c:3359 __alloc_pages_nodemask+0x7be/0x5dc0 mm/page_alloc.c:4371 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] __get_free_pages mm/page_alloc.c:4423 [inline] get_zeroed_page+0x3f/0xd0 mm/page_alloc.c:4432 pud_alloc_one arch/x86/include/asm/pgalloc.h:150 [inline] __pud_alloc+0xab/0x440 mm/memory.c:4172 pud_alloc include/linux/mm.h:1752 [inline] __handle_mm_fault mm/memory.c:4028 [inline] handle_mm_fault+0xdc8/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: 0010:__clear_user arch/x86/lib/usercopy_64.c:23 [inline] RIP: 0010:clear_user+0xf0/0x190 arch/x86/lib/usercopy_64.c:53 RSP: 0018:ffff8801bdcef8d0 EFLAGS: 00010206 RAX: 0000000000000008 RBX: 0000000000000000 RCX: 0000000000000174 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000055c8a8de7460 RBP: ffff8801bdcef920 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88013745a600 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000174 padzero fs/binfmt_elf.c:134 [inline] load_elf_binary+0x4000/0x8fe0 fs/binfmt_elf.c:1079 search_binary_handler+0x2ef/0xab0 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] do_execveat_common+0x22e4/0x2da0 fs/exec.c:1817 do_execve+0xb3/0xd0 fs/exec.c:1862 call_usermodehelper_exec_async+0x56a/0x7c0 kernel/umh.c:100 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:412 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_unref_page_commit+0x4bc/0x4d0 mm/page_alloc.c:2796 free_unref_page mm/page_alloc.c:2816 [inline] __free_pages mm/page_alloc.c:4440 [inline] free_pages+0x290/0x320 mm/page_alloc.c:4452 arch_tlb_finish_mmu mm/memory.c:290 [inline] tlb_finish_mmu+0x3f7/0x5c0 mm/memory.c:433 exit_mmap+0x514/0x970 mm/mmap.c:3107 __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 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 tlb_next_batch mm/memory.c:213 [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+0xeb4/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 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_unref_page_commit+0x4bc/0x4d0 mm/page_alloc.c:2796 free_unref_page mm/page_alloc.c:2816 [inline] __free_pages mm/page_alloc.c:4440 [inline] free_pages+0x290/0x320 mm/page_alloc.c:4452 arch_tlb_finish_mmu mm/memory.c:290 [inline] tlb_finish_mmu+0x3f7/0x5c0 mm/memory.c:433 exit_mmap+0x514/0x970 mm/mmap.c:3107 __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 __do_sys_exit_group+0x21/0x30 kernel/exit.c:981 __se_sys_exit_group+0x14/0x20 kernel/exit.c:979 __x64_sys_exit_group+0x4c/0x50 kernel/exit.c:979 do_syscall_64+0x152/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Local variable description: ----tlb@exit_mmap Variable was created at: exit_mmap+0x47/0x970 mm/mmap.c:3051 __mmput+0x158/0x600 kernel/fork.c:962 ==================================================================