lkml.org 
[lkml]   [2004]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.7-mm6
On Wed, 7 Jul 2004 09:35:10 +0200
Ingo Molnar <mingo@elte.hu> wrote:

> the patch below should solve this. Is it safe on sparc to do a
> fork_by_hand() like this?

If the regs are garbage, copy_thread() will explode as it tries
to interpret the stack pointer in that regs value.

The parent's regs (stored in current_thread_info() at trap time,
and also needed by copy_thread() processing) will also be garbage
since we're avoiding the fork syscall trap.

In short, this won't work :)

This is why I use kernel_thread(). Why is that so bad?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site