David S. Miller wrote: > On Wed, 7 Jul 2004 09:35:10 +0200 > Ingo Molnar 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? > We could make CLONE_IDLETASK clones not do the wakeup? Ingo? I guess an alternative is to have the arch explicitly make a call to dequeue it.