android_kernel_xiaomi_sm8350/arch/um
Paolo 'Blaisorblade' Giarrusso 516949480d [PATCH] uml: fix random segfaults at bootup
Don't use printk() where "current_thread_info()" is crap.

Until when we switch to running on init_stack, current_thread_info() evaluates
to crap. Printk uses "current" at times (in detail, &current is evaluated with
CONFIG_DEBUG_SPINLOCK to check the spinlock owner task).

And this leads to random segmentation faults.

Exactly, what happens is that &current = *(current_thread_info()), i.e. round
down $esp and dereference the value. I.e. access the stack below $esp, which
causes SIGSEGV on a VM_GROWSDOWN vma (see arch/i386/mm/fault.c).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-29 09:48:15 -08:00
..
drivers [PATCH] uml: fix daemon transport exit path bug 2005-11-13 18:14:15 -08:00
include [PATCH] uml skas0: stop gcc's insanity 2005-12-18 11:19:44 -08:00
kernel [PATCH] uml skas0: stop gcc's insanity 2005-12-18 11:19:44 -08:00
os-Linux [PATCH] uml: fix random segfaults at bootup 2005-12-29 09:48:15 -08:00
scripts [PATCH] uml: arch/um/scripts/Makefile.rules - remove duplicated code 2005-12-18 11:19:44 -08:00
sys-i386 [PATCH] uml: properly invoke x86_64 system calls 2005-11-22 09:13:41 -08:00
sys-ia64
sys-ppc
sys-x86_64 [PATCH] uml: properly invoke x86_64 system calls 2005-11-22 09:13:41 -08:00
config.release
defconfig
Kconfig [PATCH] uml - fix some funkiness in Kconfig 2005-12-18 11:19:44 -08:00
Kconfig.char
Kconfig.debug
Kconfig.i386 [PATCH] uml: fixups for "reuse i386 cpu-specific tuning" 2005-11-13 18:14:14 -08:00
Kconfig.net
Kconfig.scsi
Kconfig.x86_64 [PATCH] uml: fix "reuse i386 cpu optimizations" 2005-10-30 17:37:16 -08:00
Makefile [PATCH] uml: eliminate anonymous union and clean up symlink lossage 2005-11-22 09:13:41 -08:00
Makefile-i386 [PATCH] uml: fixups for "reuse i386 cpu-specific tuning" 2005-11-13 18:14:14 -08:00
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
Makefile-tt
Makefile-x86_64 [PATCH] uml: fix dynamic linking on some 64-bit distros 2005-12-18 11:19:44 -08:00