Re: [tip:x86/urgent] x86: mm: Read cr2 before prefetching the mmap_lock

Linus Torvalds
2009-06-16T17:55:29Z

On Tue, 16 Jun 2009, tip-bot for Ingo Molnar wrote:
>
> It turns out that in current upstream we do exactly that:
>
> prefetchw(&mm->mmap_sem);
>
> /* Get the faulting address: */
> address = read_cr2();
>
> This is not good.

Ack.

Linus