x86/shim: copy back the result of EVTCHNOP_status

The event channel data was not copied back to guest memory, fix this
by doing the copy.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wl@xen.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Roger Pau Monne authored and Andrew Cooper committed 2019-11-01 10:48:04 +00:00
1 parent ed1322105c
commit 0f45bbbc40
1 file changed
+3
+3
View File
@@ -514,6 +514,9 @@ static long pv_shim_event_channel_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
else
rc = xen_hypercall_event_channel_op(EVTCHNOP_status, &status);
if ( !rc && __copy_to_guest(arg, &status, 1) )
rc = -EFAULT;
break;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.