x86/mm: mod_l<N>_entry() have no need to use __copy_from_user()
authorJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2020 14:02:26 +0000 (15:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2020 14:02:26 +0000 (15:02 +0100)
commit8931fc9a1d7c7f4afd339b314fe7881fc06e2f5d
tree8aa44eecf67abe55ee3b04fda7dee939b4a4ba1f
parentd7f3c76317108ee9989f00545d394fa495fba752
x86/mm: mod_l<N>_entry() have no need to use __copy_from_user()

mod_l1_entry()'s need to do so went away with commit 2d0557c5cb ("x86:
Fold page_info lock into type_info"), and the other three never had such
a need, at least going back as far as 3.2.0. Replace the uses by
l<N>e_read_atomic().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c