]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init()
authorLaura Abbott <labbott@redhat.com>
Mon, 8 May 2017 21:23:16 +0000 (14:23 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 25 Jun 2017 15:36:36 +0000 (10:36 -0500)
commit43babdbf9ad4ad8f657e45b6988c15b31f2d8d50
tree1d70b66fd0528f99cdb3dfa02ea107199392b9b1
parent4f1b2b475d3c2b69984b86e4221be06f11ec2c4e
x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init()

BugLink: http://bugs.launchpad.net/bugs/1700372
commit 861ce4a3244c21b0af64f880d5bfe5e6e2fb9e4a upstream.

'__vmalloc_start_set' currently only gets set in initmem_init() when
!CONFIG_NEED_MULTIPLE_NODES. This breaks detection of vmalloc address
with virt_addr_valid() with CONFIG_NEED_MULTIPLE_NODES=y, causing
a kernel crash:

  [mm/usercopy] 517e1fbeb6: kernel BUG at arch/x86/mm/physaddr.c:78!

Set '__vmalloc_start_set' appropriately for that case as well.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: dc16ecf7fd1f ("x86-32: use specific __vmalloc_start_set flag in __virt_addr_valid")
Link: http://lkml.kernel.org/r/1494278596-30373-1-git-send-email-labbott@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/mm/numa_32.c