================================================================== BUG: KMSAN: uninit-value in __rmqueue_pcplist mm/page_alloc.c:2942 [inline] BUG: KMSAN: uninit-value in rmqueue_pcplist mm/page_alloc.c:2971 [inline] BUG: KMSAN: uninit-value in rmqueue mm/page_alloc.c:2993 [inline] BUG: KMSAN: uninit-value in get_page_from_freelist+0x5f24/0xb740 mm/page_alloc.c:3352 CPU: 1 PID: 4563 Comm: syz-executor3 Not tainted 4.17.0+ #9 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+0x188/0x2a0 mm/kmsan/kmsan.c:1125 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 __rmqueue_pcplist mm/page_alloc.c:2942 [inline] rmqueue_pcplist mm/page_alloc.c:2971 [inline] rmqueue mm/page_alloc.c:2993 [inline] get_page_from_freelist+0x5f24/0xb740 mm/page_alloc.c:3352 __alloc_pages_nodemask+0x792/0x5cc0 mm/page_alloc.c:4371 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] pte_alloc_one+0x56/0x100 arch/x86/mm/pgtable.c:30 __pte_alloc+0x86/0x410 mm/memory.c:655 copy_pte_range mm/memory.c:1077 [inline] copy_pmd_range mm/memory.c:1153 [inline] copy_pud_range mm/memory.c:1187 [inline] copy_p4d_range mm/memory.c:1209 [inline] copy_page_range+0x3030/0x3f50 mm/memory.c:1271 dup_mmap kernel/fork.c:512 [inline] dup_mm kernel/fork.c:1235 [inline] copy_mm kernel/fork.c:1289 [inline] copy_process+0x6d9b/0x9be0 kernel/fork.c:1795 _do_fork+0x353/0xf60 kernel/fork.c:2089 __do_sys_clone kernel/fork.c:2196 [inline] __se_sys_clone kernel/fork.c:2190 [inline] __x64_sys_clone+0x15e/0x1b0 kernel/fork.c:2190 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4541da RSP: 002b:0000000000a3ea70 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000a3ea70 RCX: 00000000004541da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000a3eab0 R08: 0000000000000001 R09: 0000000001fe6940 R10: 0000000001fe6c10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 __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:2774 free_unref_page mm/page_alloc.c:2794 [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:291 [inline] tlb_finish_mmu+0x3f7/0x5c0 mm/memory.c:434 exit_mmap+0x539/0x980 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+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/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:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 tlb_next_batch mm/memory.c:214 [inline] __tlb_remove_page_size mm/memory.c:317 [inline] __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1341 [inline] zap_pmd_range mm/memory.c:1442 [inline] zap_pud_range mm/memory.c:1471 [inline] zap_p4d_range mm/memory.c:1492 [inline] unmap_page_range+0xeb4/0x3be0 mm/memory.c:1513 unmap_single_vma+0x445/0x5e0 mm/memory.c:1558 unmap_vmas+0x1f4/0x360 mm/memory.c:1588 exit_mmap+0x4d7/0x980 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+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/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:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 __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:2774 free_unref_page mm/page_alloc.c:2794 [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:291 [inline] tlb_finish_mmu+0x3f7/0x5c0 mm/memory.c:434 exit_mmap+0x539/0x980 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+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/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:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 tlb_next_batch mm/memory.c:214 [inline] __tlb_remove_page_size mm/memory.c:317 [inline] __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1341 [inline] zap_pmd_range mm/memory.c:1442 [inline] zap_pud_range mm/memory.c:1471 [inline] zap_p4d_range mm/memory.c:1492 [inline] unmap_page_range+0xeb4/0x3be0 mm/memory.c:1513 unmap_single_vma+0x445/0x5e0 mm/memory.c:1558 unmap_vmas+0x1f4/0x360 mm/memory.c:1588 exit_mmap+0x4d7/0x980 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+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/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:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 __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:2774 free_unref_page mm/page_alloc.c:2794 [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:291 [inline] tlb_finish_mmu+0x3f7/0x5c0 mm/memory.c:434 exit_mmap+0x539/0x980 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+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Local variable description: ----tlb@exit_mmap Variable was created at: exit_mmap+0x47/0x980 mm/mmap.c:3051 __mmput+0x158/0x600 kernel/fork.c:962 ==================================================================