Re: [PATCH] futex null pointer timeout

From: Ingo Molnar
Date: Thu Jan 18 2007 - 02:40:08 EST



* Daniel Walker <dwalker@xxxxxxxxxx> wrote:

> This fix is mostly from Thomas ..
>
> The problem was that a futex can be called with a zero timeout (0
> seconds, 0 nanoseconds) and it's a valid expired timeout. However, the
> current futex in -rt assumes a zero timeout is an infinite timeout.
>
> Kevin Hilman found this using LTP's nptl01 test case which would soft
> hang occasionally.
>
> The patch reworks do_futex, and futex_wait* so a NULL pointer in the
> timeout position is infinite, and anything else is evaluated as a real
> timeout.

thanks, applied.

Ingo
-
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/