Re: [PATCH] ppc64: Fix possible race with set_pte on a present PTE

Benjamin Herrenschmidt
2004-05-26T04:18:34Z

On Wed, 2004-05-26 at 14:12, Benjamin Herrenschmidt wrote:
> On Wed, 2004-05-26 at 14:08, Linus Torvalds wrote:
>
> > You're right. We do use it on the do_wp_page() path, and there we actually
> > use a whole new page in the "break_cow()" case. That case is in fact
> > fundamentally different from the other ones.
> >
> > So we should probably break up the "ptep_establish()" into its two pieces,
> > since the callers don't actually want to do the same thing. One really
> > wants to do a "clear old one, set a totally new one", and the two other
> > places want to actually update just the dirty and accessed bits.

Hrm... Still dies, some kind of loop it seems, I'll have a look

Ben.