From: Thomas Meyer Date: Sat, 28 Mar 2015 08:59:46 +0000 (+0100) Subject: um: Move uml_postsetup in the init_thread stack X-Git-Tag: omap-for-v4.1/fixes-rc1~134^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33bbc3065414722065a20cbdbeaf352173e72f39;p=pandora-kernel.git um: Move uml_postsetup in the init_thread stack atomic_notifier_chain_register() and uml_postsetup() do call kernel code that rely on the "current" kernel macro and a valid task_struct resp. thread_info struct. Give those functions a valid stack by moving uml_postsetup() in the init_thread stack. This moves enables a panic() call in this early code to generate a valid stacktrace, instead of crashing. E.g. when an UML kernel is started with an initrd but too few physical memory the panic() call get's actually processed. Signed-off-by: Thomas Meyer Signed-off-by: Richard Weinberger --- Reading git-diff-tree failed