Re: [PATCH v2] x86/xen: allow userspace access during hypercalls

From: Juergen Gross
Date: Mon Jul 03 2017 - 07:28:17 EST

On 26/06/17 14:49, Marek Marczykowski-GÃrecki wrote:
> 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@xxxxxxxxxxxxxxx
> Signed-off-by: Marek Marczykowski-GÃrecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>

Queued to xen/tip.git for-linus-4.13