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

From: Linus Torvalds
Date: Sun May 23 2004 - 22:49:04 EST




On Mon, 24 May 2004, Benjamin Herrenschmidt wrote:
>
> There is a subtle race which can cause set_pte to be called on ppc64 on
> a PTE that is already present (that normally doesn't happen for us) and
> which itself, in the proper race condition, can trigger a duplicate hash
> entry to be added to the hash table (very bad).

So how exactly can the pte already be present? It's definitely illegal,
since if that actually happened, that would imply a memory leak (whatever
previous page was there just got silently dropped).

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