From: Andi Kleen <ak@suse.de>
To: mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: race in smp idle task startup
Date: Fri, 23 May 2003 15:09:48 +0200 [thread overview]
Message-ID: <20030523130948.GA30288@wotan.suse.de> (raw)
I think it was there before, but I now noticed it:
The 2.5 SMP bootup path does now:
idle = fork_by_hand();
if (IS_ERR(idle))
panic("failed fork for CPU %d", cpu);
wake_up_forked_process(idle);
<----------- process on run queue ---------------->
/*
* We remove it from the pidhash and the runqueue
* once we got the process:
*/
init_idle(idle,cpu);
But sched_init has been called before and the load balance timers
are already running. If you have multiple CPUs to start another CPU
could come and balance the idle thread away. Its registers contain
random values from fork_by_hand so it would likely crash.
It probably needs a __wake_up_forked_process that does not actually
put it onto an runqueue. Or did I miss something?
-Andi
reply other threads:[~2003-05-23 12:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030523130948.GA30288@wotan.suse.de \
--to=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®