Re: [PATCH] race condition in procfs

From: Andrew Morton
Date: Tue Nov 29 2005 - 03:09:19 EST


Grzegorz Nosek <grzegorz.nosek@xxxxxxxxx> wrote:
>
> Hello,
>
> I found a race condition in procfs on SMP systems. The result is an
> oops in processes like pidof. Apparently ->proc_read() gets passed a
> potentially NULL pointer.

Do you know what the race is?

How does one reproduce it?

> The following micro-patch seems to fix it.

It might be right, or it might be a workaround..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/