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:
parent
c2fc21249e
commit
c249d7f196
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue