Re: [PATCH] futex: Fix ZERO_PAGE cause infinite loop

From: Ulrich Drepper
Date: Thu Dec 24 2009 - 12:16:27 EST


On Thu, Dec 24, 2009 at 01:39, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> What I mean is, all (?) futex ops assume userspace actually wrote
> something to the address in question to begin with, therefore it can
> never be the zero page.

In practice today this is likely always the case. But it doesn't have
to be like that. In theory a zero-initialized futex is a reasonable
object on which to wait. You should not preclude this from happening
just because it's not done like this today.
--
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/