All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
@ 2019-10-31 11:58 Roger Pau Monne
  2019-10-31 18:47 ` Wei Liu
  2019-11-01  6:17 ` Jürgen Groß
  0 siblings, 2 replies; 6+ messages in thread
From: Roger Pau Monne @ 2019-10-31 11:58 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Andrew Cooper, Wei Liu, Jan Beulich, Roger Pau Monne

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>
---
Cc: Juergen Gross <jgross@suse.com>
---
 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 4329eaaefe..35bf3945ac 100644
--- a/xen/arch/x86/pv/shim.c
+++ b/xen/arch/x86/pv/shim.c
@@ -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;
     }
 
-- 
2.23.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
  2019-10-31 11:58 [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status Roger Pau Monne
@ 2019-10-31 18:47 ` Wei Liu
  2019-11-01  6:17 ` Jürgen Groß
  1 sibling, 0 replies; 6+ messages in thread
From: Wei Liu @ 2019-10-31 18:47 UTC (permalink / raw)
  To: Roger Pau Monne
  Cc: Juergen Gross, xen-devel, Wei Liu, Jan Beulich, Andrew Cooper

On Thu, Oct 31, 2019 at 12:58:29PM +0100, Roger Pau Monne wrote:
> 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>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
  2019-10-31 11:58 [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status Roger Pau Monne
  2019-10-31 18:47 ` Wei Liu
@ 2019-11-01  6:17 ` Jürgen Groß
  2019-11-08 11:55   ` Wei Liu
  1 sibling, 1 reply; 6+ messages in thread
From: Jürgen Groß @ 2019-11-01  6:17 UTC (permalink / raw)
  To: Roger Pau Monne, xen-devel; +Cc: Andrew Cooper, Wei Liu, Jan Beulich

On 31.10.19 12:58, Roger Pau Monne wrote:
> 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>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
  2019-11-01  6:17 ` Jürgen Groß
@ 2019-11-08 11:55   ` Wei Liu
  2019-11-08 12:07     ` Andrew Cooper
  0 siblings, 1 reply; 6+ messages in thread
From: Wei Liu @ 2019-11-08 11:55 UTC (permalink / raw)
  To: Jürgen Groß
  Cc: xen-devel, Andrew Cooper, Wei Liu, Jan Beulich, Roger Pau Monne

On Fri, Nov 01, 2019 at 07:17:57AM +0100, Jürgen Groß wrote:
> On 31.10.19 12:58, Roger Pau Monne wrote:
> > 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>
> 
> Release-acked-by: Juergen Gross <jgross@suse.com>

Jan? Andrew?

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
  2019-11-08 11:55   ` Wei Liu
@ 2019-11-08 12:07     ` Andrew Cooper
  2019-11-08 12:17       ` Wei Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cooper @ 2019-11-08 12:07 UTC (permalink / raw)
  To: Wei Liu, Jürgen Groß; +Cc: xen-devel, Jan Beulich, Roger Pau Monne

On 08/11/2019 11:55, Wei Liu wrote:
> On Fri, Nov 01, 2019 at 07:17:57AM +0100, Jürgen Groß wrote:
>> On 31.10.19 12:58, Roger Pau Monne wrote:
>>> 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>
>> Release-acked-by: Juergen Gross <jgross@suse.com>
> Jan? Andrew?

Whats up? c/s 0f45bbbc40 not good enough?

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status
  2019-11-08 12:07     ` Andrew Cooper
@ 2019-11-08 12:17       ` Wei Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Wei Liu @ 2019-11-08 12:17 UTC (permalink / raw)
  To: Andrew Cooper
  Cc: Jürgen Groß, xen-devel, Jan Beulich, Wei Liu, Roger Pau Monne

On Fri, Nov 08, 2019 at 12:07:08PM +0000, Andrew Cooper wrote:
> On 08/11/2019 11:55, Wei Liu wrote:
> > On Fri, Nov 01, 2019 at 07:17:57AM +0100, Jürgen Groß wrote:
> >> On 31.10.19 12:58, Roger Pau Monne wrote:
> >>> 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>
> >> Release-acked-by: Juergen Gross <jgross@suse.com>
> > Jan? Andrew?
> 
> Whats up? c/s 0f45bbbc40 not good enough?

Oh, I missed that. Sorry for the noise.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-11-08 12:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31 11:58 [Xen-devel] [PATCH for-4.13] x86/shim: copy back the result of EVTCHNOP_status Roger Pau Monne
2019-10-31 18:47 ` Wei Liu
2019-11-01  6:17 ` Jürgen Groß
2019-11-08 11:55   ` Wei Liu
2019-11-08 12:07     ` Andrew Cooper
2019-11-08 12:17       ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.