Thread (51 messages) 51 messages, 7 authors, 2024-10-28

RE: [PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user()

From: David Laight <hidden>
Date: 2024-10-14 14:41:36

From: Linus Torvalds
Sent: 14 October 2024 12:21

On Mon, 14 Oct 2024 at 02:59, David Laight [off-list ref] wrote:
quoted
Isn't LAM just plain stupid unless the hardware validates the bits
against the TLB?
What? No. You can't do that. At some point, the TLB isn't filled, and
then you have to do the access with lots of linear address bits
masked.
And the 'high' bits get reloaded from the PTE.
(Although I suspect there isn't space for them.)

Reloading the high bits from the VA that caused the fault would
be 'interesting' - certainly better than just ignoring them.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help