From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [BUG] XEN 4.3.3 - segfault in xl create for HVM with PCI passthrough Date: Mon, 1 Dec 2014 09:38:51 +0000 Message-ID: <1417426731.23604.76.camel@citrix.com> References: <544EB843.9060503@web2web.at> <1414493998.10206.3.camel@citrix.com> <544FB8C4.9000102@web2web.at> <1414512266.10974.5.camel@citrix.com> <54503440.3050302@web2web.at> <5452C43C.6050800@web2web.at> <5458ED27.8060502@web2web.at> <1415115868.11486.49.camel@citrix.com> <5458FB49.4040801@web2web.at> <1415118690.11486.53.camel@citrix.com> <54590D4D.90300@web2web.at> <1415180713.11486.61.camel@citrix.com> <545A118B.7040309@web2web.at> <1415191140.15317.11.camel@citrix.com> <545B8FAE.9090608@web2web.at> <1415618193.28370.4.camel@citrix.com> <5460A51E.9050401@web2web.at> <1415621371.28370.15.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Dennis Lan (dlan)" Cc: Atom2 , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-12-01 at 11:34 +0800, Dennis Lan (dlan) wrote: > On Mon, Nov 10, 2014 at 8:09 PM, Ian Campbell wrote: > > On Mon, 2014-11-10 at 12:44 +0100, Atom2 wrote: > > > >> > I'm afraid it's looking more and more like a toolchain issue. I'm not > >> > expert on this side on things but it looks to me like you are hitting an > >> > issue with some sort of buffer overflow check gone wrong? I think you'll > >> > need a gcc hardening person for this one. > >> The issue currently is with the guys at gentoo (for links please again > >> see my latest post to the list from Sunday which also seems to confirm > >> that the issue is not confined to 4.3.3 but also 4.4.1). > > > > OK, I'll wait and see what the gentoo folks have to say before looking > > any close then, thanks. > > > Hi Ian > what we found now is, the Gentoo's hardened toolchain, turn CFLAGS > -fstack-check on by default, with this flag and compile gcc will > result xl segfault (actually with libgcc_s.so) > we have a patch to force gcc build libgcc(only this part) code with > -fstack-check=no, make the segfault gone > more info can be found at https://bugs.gentoo.org/show_bug.cgi?id=528690 Excellent, thanks for letting us know. Just to be sure: This isn't (so far as anyone knows) the result of any coding/build-system problem in Xen, right? Ian.