x86 kvm page table walks: switch to explicit __get_user()

commit a481444399 upstream.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Chen Zhuo <sagazchen@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
This commit is contained in:
Al Viro 2020-02-15 11:29:04 -05:00 committed by Jianping Liu
parent c2fc21249e
commit c249d7f196
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ retry_walk:
goto error;
ptep_user = (pt_element_t __user *)((void *)host_addr + offset);
if (unlikely(__copy_from_user(&pte, ptep_user, sizeof(pte))))
if (unlikely(__get_user(pte, ptep_user)))
goto error;
walker->ptep_user[walker->level - 1] = ptep_user;