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

From: Linus Torvalds
Date: Tue Jun 16 2009 - 13:55:32 EST




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