From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752257AbdEHVX2 (ORCPT ); Mon, 8 May 2017 17:23:28 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:33819 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbdEHVX1 (ORCPT ); Mon, 8 May 2017 17:23:27 -0400 From: Laura Abbott To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: Laura Abbott , x86@kernel.org, linux-kernel@vger.kernel.org, Kees Cook Subject: [PATCH] x86/mm: Set __vmalloc_start_set in numa_32.c Date: Mon, 8 May 2017 14:23:16 -0700 Message-Id: <1494278596-30373-1-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __vmalloc_start_set currently only gets set in initmem_init when !CONFIG_NEED_MULTIPLE_NODES. This currently breaks detection of vmalloc address with virt_addr_valid with CONFIG_NEED_MULTIPLE_NODES=y. Set __vmalloc_start_set appropriately for that case as well. Fixes: dc16ecf7fd1f ("x86-32: use specific __vmalloc_start_set flag in __virt_addr_valid")q Reported-by: kbuild test robot Signed-off-by: Laura Abbott --- arch/x86/mm/numa_32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/numa_32.c b/arch/x86/mm/numa_32.c index 6b7ce62..aca6295 100644 --- a/arch/x86/mm/numa_32.c +++ b/arch/x86/mm/numa_32.c @@ -100,5 +100,6 @@ void __init initmem_init(void) printk(KERN_DEBUG "High memory starts at vaddr %08lx\n", (ulong) pfn_to_kaddr(highstart_pfn)); + __vmalloc_start_set = true; setup_bootmem_allocator(); } -- 2.7.4