Re: [PATCH] Mutilated form of Andi Kleen's AMD prefetch errata patch

From: Andi Kleen
Date: Wed Oct 01 2003 - 10:26:58 EST


> Why is it not sufficient to do something like:
>
> if (!(error_code & 4) && is_prefetch(...))
> return;
>
> near the start of do_page_fault()?

That could fault recursively when the __get_user in is_prefetch faults.
You would have to check the exception table first too.

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