Re: [RFC] Race condition?

Keith Owens (kaos@ocs.com.au)
Sat, 03 Aug 2002 21:17:23 +1000


On Sat, 03 Aug 2002 21:07:11 +1000,
Keith Owens <kaos@ocs.com.au> wrote:
>On Sat, 3 Aug 2002 12:08:28 +0200,
>Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/