From: Ian Campbell Subject: Re: [PATCH v4 16/16] xen/arm: add SGI handling for GICv3 Date: Fri, 13 Jun 2014 09:34:16 +0100 Message-ID: <1402648456.26678.23.camel@kazak.uk.xensource.com> References: <1401100009-7326-1-git-send-email-vijay.kilari@gmail.com> <1401100009-7326-17-git-send-email-vijay.kilari@gmail.com> <538CA395.4000905@linaro.org> <53984DD2.3030804@linaro.org> <539A2226.2020403@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <539A2226.2020403@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Vijay Kilari , Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , "xen-devel@lists.xen.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2014-06-12 at 22:56 +0100, Julien Grall wrote: > > On 12/06/14 07:53, Vijay Kilari wrote: > > In GICv3 case the sending SGI by guest raises sysreg trap where > > as in GICv2 it raises mmio write trap. So these traps lands in respective > > vgic driver. ( mmio write trap => vgic-v2.c and sysreg => vgic-v3.c) > > These vgic-v{2,3}.c driver calls generic vgic driver to inject SGI to VCPU. > > What does prevent a malicious buggy gicv2 guest too call the sysreg > version? AFAIU nothing, so you will end up to interpret GICv2 data as > GICv3 data which will result to a possible security issue. ICC_SRE_EL2.Enable should gate EL1's access to this register. We should certainly set this to the appropriate value corresponding to what we expose to the guest. (I haven't looked if this series does not). Ian.