Re: [PATCH next] x86: mask_user_address() return base of guard page for kernel addresses

From: Linus Torvalds
Date: Sun Dec 01 2024 - 17:28:27 EST


On Sun, 1 Dec 2024 at 14:24, David Laight <David.Laight@xxxxxxxxxx> wrote:
>
> OTOH AMD have is as '4 per clock' (the same as mov) so could be
> a 'mov' with the write disabled' (but I'm not sure how that
> would work if 'mov' is a register rename).

It could work exactly by just predicting it one way or the other.

That's my point.

I don't think / hope anybody does it, but it's a particularly easy
mistake to do.

Linus