[lkml]   [2002]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch] [sched] fork-fix 2.5.3-pre5

the patch below fixes a fork() bug introduced by the new scheduler. If the
parent process schedules away and gets rebalanced to another CPU then
wake_up_forked_process() does runqueue manipulation incorrectly.

the crash was first reported by Robert Love, it happened with the
preemption patches applied. Later the crash was reproduced on the 2.4 +
O(1) kernel as well, using Cerberus.


--- linux/kernel/sched.c.orig Fri Jan 25 10:44:18 2002
+++ linux/kernel/sched.c Fri Jan 25 12:06:36 2002
@@ -275,6 +293,7 @@
p->prio = effective_prio(p);
+ p->cpu = smp_processor_id();
activate_task(p, rq);
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.030 / U:1.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site