[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging-4.12] x86/shim: copy back the result of EVTCHNOP_status
commit ece1cb0a6d9964949e175743e8b2d353c974d886 Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Mon Nov 25 15:59:12 2019 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Nov 25 15:59:12 2019 +0100 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@xxxxxxxxxx> Reviewed-by: Wei Liu <wl@xxxxxxx> master commit: 0f45bbbc404e2d1257476f9caa6644c209ec2c90 master date: 2019-11-01 10:48:04 +0000 --- xen/arch/x86/pv/shim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/pv/shim.c b/xen/arch/x86/pv/shim.c index 324ca27f93..b75975b853 100644 --- a/xen/arch/x86/pv/shim.c +++ b/xen/arch/x86/pv/shim.c @@ -516,6 +516,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; } -- generated by git-patchbot for /home/xen/git/xen.git#staging-4.12 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |