]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/xen: allow userspace access during hypercalls
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 26 Jun 2017 12:49:46 +0000 (14:49 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 3 Jul 2017 11:26:17 +0000 (13:26 +0200)
commitc54590cac51db8ab5fd30156bdaba34af915e629
tree675db462622402556032c4d798641f728882be8a
parentbf1b9ddf181d29ec91f87d9c52bcb551ccf04157
x86/xen: allow userspace access during hypercalls

Userspace application can do a hypercall through /dev/xen/privcmd, and
some for some hypercalls argument is a pointers to user-provided
structure. When SMAP is supported and enabled, hypervisor can't access.
So, lets allow it.

The same applies to HYPERVISOR_dm_op, where additionally privcmd driver
carefully verify buffer addresses.

Cc: stable@vger.kernel.org
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/xen/hypercall.h