mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] pidhash-fix-2.5.36-A0
@ 2002-09-20  9:09 Ingo Molnar
  2002-09-20  9:11 ` Ingo Molnar
  2002-09-20 10:32 ` Anton Blanchard
  0 siblings, 2 replies; 3+ messages in thread
From: Ingo Molnar @ 2002-09-20  9:09 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Anton Blanchard, linux-kernel


the attached patch (against BK-curr) fixes a bug in the new PID allocator,
which bug can cause incorrect hashing of the PID structure which causes
infinite loops in find_pid(). [and potentially other problems.]

	Ingo

--- linux/kernel/pid.c.orig	Fri Sep 20 11:01:52 2002
+++ linux/kernel/pid.c	Fri Sep 20 11:03:05 2002
@@ -161,8 +161,8 @@
 		pid->nr = nr;
 		atomic_set(&pid->count, 1);
 		INIT_LIST_HEAD(&pid->task_list);
-		pid->task = current;
-		get_task_struct(current);
+		pid->task = task;
+		get_task_struct(task);
 		list_add(&pid->hash_chain, &pid_hash[type][pid_hashfn(nr)]);
 	}
 	list_add(&task->pids[type].pid_chain, &pid->task_list);


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] pidhash-fix-2.5.36-A0
  2002-09-20  9:09 [patch] pidhash-fix-2.5.36-A0 Ingo Molnar
@ 2002-09-20  9:11 ` Ingo Molnar
  2002-09-20 10:32 ` Anton Blanchard
  1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2002-09-20  9:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Anton Blanchard, linux-kernel


> the attached patch (against BK-curr) fixes a bug in the new PID
> allocator, which bug can cause incorrect hashing of the PID structure
> which causes infinite loops in find_pid(). [and potentially other
> problems.]

the patch is also a small speedup :-)

	Ingo


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] pidhash-fix-2.5.36-A0
  2002-09-20  9:09 [patch] pidhash-fix-2.5.36-A0 Ingo Molnar
  2002-09-20  9:11 ` Ingo Molnar
@ 2002-09-20 10:32 ` Anton Blanchard
  1 sibling, 0 replies; 3+ messages in thread
From: Anton Blanchard @ 2002-09-20 10:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linus Torvalds, linux-kernel

 
> the attached patch (against BK-curr) fixes a bug in the new PID allocator,
> which bug can cause incorrect hashing of the PID structure which causes
> infinite loops in find_pid(). [and potentially other problems.]

Thanks Ingo,

I havent been able to lock up current BK yet with this patch. I'll continue
to hit it with SDET overnight.

Anton

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-20 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-20  9:09 [patch] pidhash-fix-2.5.36-A0 Ingo Molnar
2002-09-20  9:11 ` Ingo Molnar
2002-09-20 10:32 ` Anton Blanchard

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®