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

Andi Kleen
2003-10-01T15:24:36Z

> 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