From: Jan Beulich Date: Wed, 30 Sep 2020 07:10:01 +0000 (+0200) Subject: evtchn: refuse EVTCHNOP_status for Xen-bound event channels X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1579 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f60ab5337f968e2f10c639ab59db7afb0fe4f7c3;p=xen.git evtchn: refuse EVTCHNOP_status for Xen-bound event channels Callers have no business knowing the state of the Xen end of an event channel. Signed-off-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Paul Durrant --- diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index d2ee83bbbf..49cb318b81 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -933,6 +933,11 @@ int evtchn_status(evtchn_status_t *status) } chn = evtchn_from_port(d, port); + if ( consumer_is_xen(chn) ) + { + rc = -EACCES; + goto out; + } rc = xsm_evtchn_status(XSM_TARGET, d, chn); if ( rc )