copy_thread preserves kernel stack

From: Keith Owens <>
Date: 2003-07-03 12:02:54
The ia64 version of copy_thread() preserves the parent kernel stack
which takes stack space away from the child thread, increasing the risk
of stack overflow.  The i386 version of copy_thread() creates a
pristine stack for the new thread.

ia64 has a comment "Note: if we get called through kernel_thread() then
the memory above "(highest addr)" is valid kernel stack memory that
needs to be copied as well".  i386 kernel threads work fine without the
extra stack wastage, so there is no generic reason to save the parent
backtrace.  Apart from unwind problems, I can see no reason for ia64 to
preserve the parent's task in kernel threads.  Any objections to me
doing a patch that constructs an empty stack for ia64 kernel threads?

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Wed Jul 2 22:06:12 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:16 EST