Re: [RFC] Race condition?

From: Keith Owens (
Date: Sat Aug 03 2002 - 06:17:23 EST

On Sat, 03 Aug 2002 21:07:11 +1000,
Keith Owens <> wrote:
>On Sat, 3 Aug 2002 12:08:28 +0200,
>Oliver Neukum <> wrote:
>>Anyway this code can corrupt the global variable nr_threads.
>>Without the BKL it is buggy, so it has to be fixed anyway and we
>>can do it right.
>nr_threads is protected by tasklist_lock. How on earth can fuzzy
>counting on user->processes corrupt nr_threads?

Never mind. Checking and updating nr_threads is a seperate race from
the one on user->processes. The nr_threads race is a problem that
needs to be fixed.

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

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:21 EST