Re: copy_thread preserves kernel stack

From: David Mosberger <>
Date: 2003-07-08 07:13:12
>>>>> On Thu, 03 Jul 2003 12:02:54 +1000, Keith Owens <> said:

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

If the patch is clean, I wouldn't have a problem with it.  (Please
make sure that the call-chain of the child thread is properly
terminated, so the unwinder knows when to stop.)

(There used to be only few kernel threads, with little risk of kernel
 stack overflows, but nowadays (2.5.xx) the situation is quite
 different, so it probably makes sense to make this change).

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Jul 7 17:13:39 2003

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