Re: [PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user()
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2024-10-16 22:34:38
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2024-10-16 22:34:38
On Wed, 16 Oct 2024 at 15:13, Kirill A. Shutemov [off-list ref] wrote:
It is worse than that. If we get LAM_SUP enabled (there's KASAN patchset in works) this check will allow arbitrary kernel addresses.
Ugh. I haven't seen the LAM_SUP patches.
But yeah, I assume any LAM_SUP model would basically then make the GP
fault due to non-canonical addresses go away.
Linus