Re: [PATCH 2.6.5-mm4] sys_access race fix

From: viro
Date: Wed Apr 14 2004 - 02:24:16 EST


On Wed, Apr 14, 2004 at 08:11:02AM +0100, Jamie Lokier wrote:
> Andrew Morton wrote:
> > Do races in access() actually matter? I mean, some other process could
> > change things a nanosecond after access() has completed and the value which
> > the access() caller received is wrong anyway.
>
> What about the effect access() has on other callers? It temporarily
> changes current->fsuid, so fs operations in other completely
> independent threads are affected.

Huh? What does changing a field of tast_struct have to do with behaviour
of some other threads?
-
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/