--- linux/arch/i386/kernel/process.c.old 2005-08-07 21:58:25.000000000 +0400 +++ linux/arch/i386/kernel/process.c 2006-01-01 03:03:10.000000000 +0300 @@ -573,7 +573,9 @@ struct pt_regs ptregs; ptregs = *(struct pt_regs *) - ((unsigned long)tsk->thread_info+THREAD_SIZE - sizeof(ptregs)); + ((unsigned long)tsk->thread_info + + /* see comments in copy_thread() about -8 */ + THREAD_SIZE - sizeof(ptregs) - 8); ptregs.xcs &= 0xffff; ptregs.xds &= 0xffff; ptregs.xes &= 0xffff;