summaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2016-06-12 21:56:42 +0200
committerRichard Weinberger <richard@nod.at>2016-08-04 00:00:46 +0200
commitb63236972e1344b247750451e2be0a06cd125f21 (patch)
tree3ff4ece1a7b4cf62e863ad23edf1f0a40d1148cd /arch/um/include
parentum: Eliminate null test after alloc_bootmem (diff)
downloadlinux-b63236972e1344b247750451e2be0a06cd125f21.tar.xz
linux-b63236972e1344b247750451e2be0a06cd125f21.zip
um: Setup physical memory in setup_arch()
Currently UML sets up physical memory very early, long before setup_arch() was called by the kernel main function. This can cause problems when code paths in UML's memory setup code assume that the kernel is already running. i.e. when kmemleak is enabled it will evaluate current() in free_bootmem(). That early current() is undefined and UML explodes. Solve the problem by setting up physical memory in setup_arch(), at this stage the kernel has materialized and basic infrastructure such as current() works. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include')
0 files changed, 0 insertions, 0 deletions