android_kernel_samsung_msm8976/arch/x86
Laura Abbott 249d07ea20 x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init()
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: dc16ecf7fd ("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: Willy Tarreau <w@1wt.eu>
2019-07-27 21:44:34 +02:00
..
boot Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00
configs bludgeon the flounder kernel until it builds on i386 for qemu testing 2015-09-16 18:20:19 +05:30
crypto crypto: ghash-clmulni - Fix load failure 2019-07-27 21:44:03 +02:00
ia32 This is the 3.10.100 stable release 2017-04-18 17:17:52 +02:00
include x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl 2019-07-27 21:44:32 +02:00
kernel mm: larger stack guard gap, between vmas 2017-07-11 00:00:39 +00:00
kvm x86: Rename X86_CR4_RDWRGSFS to X86_CR4_FSGSBASE 2016-06-07 10:42:44 +02:00
lguest
lib x86_64: kasan: add interceptors for memset/memmove/memcpy functions 2015-05-04 14:03:56 -07:00
math-emu
mm x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init() 2019-07-27 21:44:34 +02:00
net x86: bpf_jit: fix compilation of large bpf programs 2015-10-01 12:07:34 +02:00
oprofile
pci x86/PCI: Use host bridge _CRS info on Foxconn K8M890-8237A 2015-07-10 10:40:22 -07:00
platform This is the 3.10.99 stable release 2017-04-18 17:17:46 +02:00
power nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:56:28 +02:00
realmode x86_64: add KASan support 2015-05-04 14:03:57 -07:00
syscalls BACKPORT: random: introduce getrandom(2) system call 2017-09-08 18:50:11 +00:00
tools
um um: remove dead code 2015-09-16 18:20:08 +05:30
vdso x86_64: add KASan support 2015-05-04 14:03:57 -07:00
video
xen x86/iopl/64: Properly context-switch IOPL on Xen PV 2016-06-07 10:42:43 +02:00
.gitignore
Kbuild
Kconfig Import latest Samsung release 2017-04-18 03:43:52 +02:00
Kconfig.cpu
Kconfig.debug
Makefile stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between architectures 2014-07-25 13:08:41 -07:00
Makefile.um
Makefile_32.cpu