b63236972e
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> |
||
---|---|---|
.. | ||
skas | ||
asm-offsets.c | ||
config.c.in | ||
dyn.lds.S | ||
early_printk.c | ||
exec.c | ||
exitcode.c | ||
gmon_syms.c | ||
gprof_syms.c | ||
initrd.c | ||
irq.c | ||
kmsg_dump.c | ||
ksyms.c | ||
maccess.c | ||
Makefile | ||
mem.c | ||
physmem.c | ||
process.c | ||
ptrace.c | ||
reboot.c | ||
sigio.c | ||
signal.c | ||
stacktrace.c | ||
syscall.c | ||
sysrq.c | ||
time.c | ||
tlb.c | ||
trap.c | ||
um_arch.c | ||
umid.c | ||
uml.lds.S | ||
vmlinux.lds.S |