From: Stas Sergeev Fix the access-above-bottom-of-stack crash. 1. Allows to preserve the valueable optimization 2. Works for NMIs 3. Doesn't care whether or not there are more of the like instances where the stack is left empty. 4. Seems to work for me without the crashes:) Signed-off-by: Andrew Morton --- 25-akpm/arch/i386/kernel/process.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/kernel/process.c~fix-crash-in-entrys-restore_all arch/i386/kernel/process.c --- 25/arch/i386/kernel/process.c~fix-crash-in-entrys-restore_all 2005-04-10 15:31:38.000000000 -0700 +++ 25-akpm/arch/i386/kernel/process.c 2005-04-10 15:31:38.000000000 -0700 @@ -405,7 +405,7 @@ int copy_thread(int nr, unsigned long cl childregs->esp = esp; p->thread.esp = (unsigned long) childregs; - p->thread.esp0 = (unsigned long) (childregs+1); + p->thread.esp0 = (unsigned long) (childregs+1) - 8; p->thread.eip = (unsigned long) ret_from_fork; _