Re: [PATCH 3/6] KVM: MMU: introduce gfn_to_page_atomic() andgfn_to_pfn_atomic()

From: Andi Kleen
Date: Wed Jun 16 2010 - 04:49:14 EST


> The page is fine, the page tables are not. Another task can munmap() the
> thing while is_hwpoison_address() is running.

Ok that boils down to me not seeing that source.

If it accesses the page tables yes then it's racy. But whoever
looked up the page tables in the first place should have
returned an -EFAULT. There's no useful address attached
to poison.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/