From: Ian Campbell Subject: Re: [PATCH v3 04/13] xen/arm: support for guest SGI Date: Fri, 26 Apr 2013 15:10:22 +0100 Message-ID: <1366985422.3142.111.camel@zakaz.uk.xensource.com> References: <1366830463-12153-4-git-send-email-stefano.stabellini@eu.citrix.com> <1366982643.3142.96.camel@zakaz.uk.xensource.com> <517A82B8.4000305@citrix.com> <517A8778.3020507@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <517A8778.3020507@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sander Bogaert Cc: Julien Grall , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Sander Bogaert , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2013-04-26 at 14:56 +0100, Sander Bogaert wrote: > On 26-04-13 15:35, Julien Grall wrote: > > On 04/26/2013 02:24 PM, Ian Campbell wrote: > > > >> On Fri, 2013-04-26 at 13:12 +0100, Sander Bogaert wrote: > >>> I've been running crashme ( executing random instructions ) on Xen on > >>> Arm installed on an Arndale board. I'm using Julien's dom0 and Xen > >>> branch. The Xen branch wasn't updated in a few days. > >>> > >>> I managed to crash Xen from dom0 userspace: > >>> (XEN) > >>> (XEN) **************************************** > >>> (XEN) Panic on CPU 1: > >>> (XEN) Unhandled SGI 2 on CPU1 > >>> (XEN) **************************************** > >>> (XEN) > >>> (XEN) Reboot in five seconds... > >>> > >>> Tracking this back to the source: > >>> xen/arch/arm/gic.c:648 static void do_sgi > >>> xen/arch/arm/gic.c:671 void gic_interrupt > >>> > >>> From what I understood from the source all sgi's except 0 & 1 > >>> would/will cause this panic since they are just not handled. > >> > >> Do you know how the SGI was triggered, because if guest/dom0 userspace > >> can trigger an arbitrary SGI then we have big problems! > >> > >> Julien, does your tree have anything in it which might explain this? > > > > > > This SGI should only be triggered to call a function on another CPU. But > > it seems his xen tree doesn't have the patch applied. So nobody should > > call this SGI. > > > > I've been using 5ce4118f5768c6137d58888d57972bdfdf4c9aba in the branch > 'arndale' on this repo: > git://xenbits.xen.org/people/julieng/xen-unstable.git . > > I will try to reproduce this, I did log my initial seed for crashme and > the ones leading up to the crash. Is there something I can enable to get > some more output? I thought Xen would print some data ( I've seen that > before, the register content & such + a stacktrace ). I think you can change the panic into a BUG_ON(1) which will get you more info. If you can repro then please can you share crashme + the seed with us? > I should have started a new thread for this, I thought it was related to > what this patch fixes. No problem, please do start a new thread for any further updates. Ian.