x86/xen: Fix a stale __get_user() reference in a comment

The comment in set_aliased_prot() says the target address is faulted in
with __get_user(), but the code has used copy_from_kernel_nofault() for
a long time.  Make the comment say so.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2026-10-19 19:23:52 -10:00
parent a7de2d2d78
commit 41c83aee07

View File

@ -475,9 +475,9 @@ static void set_aliased_prot(void *v, pgprot_t prot)
* have the same nominal mm, but if we're a kernel thread, lazy
* mm dropping could change our pgd.
*
* Out of an abundance of caution, this uses __get_user() to fault
* in the target address just in case there's some obscure case
* in which the target address isn't readable.
* Out of an abundance of caution, this uses copy_from_kernel_nofault()
* to fault in the target address just in case there's some obscure
* case in which the target address isn't readable.
*/
preempt_disable();