From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh6MD-0004kV-95 for qemu-devel@nongnu.org; Tue, 19 Jun 2012 17:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sh6MB-0005Sr-MC for qemu-devel@nongnu.org; Tue, 19 Jun 2012 17:53:04 -0400 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186]:13380 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh6MB-0005Sf-Gp for qemu-devel@nongnu.org; Tue, 19 Jun 2012 17:53:03 -0400 Message-ID: <4FE0F4B8.7020603@freescale.com> Date: Tue, 19 Jun 2012 16:52:56 -0500 From: Scott Wood MIME-Version: 1.0 References: <20120619023136.GA5187@tyr.buserror.net> <4FE013E3.6090907@weilnetz.de> In-Reply-To: <4FE013E3.6090907@weilnetz.de> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tci: don't write zero for reloc in tci_out_label List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Blue Swirl , qemu-devel@nongnu.org On 06/19/2012 12:53 AM, Stefan Weil wrote: > Am 19.06.2012 04:31, schrieb Scott Wood: >> If tci_out_label is called in the context of tcg_gen_code_search_pc, we >> could be overwriting an already patched relocation with zero -- and not >> repatch it because the set_label is past search_pc, causing a QEMU crash >> when it tries to branch to a zero label. >> >> Not writing anything to the relocation area seems to be in line with what >> other backends do from the couple I looked at (x86, ppc). > > Thanks, this might fix a crash which I have seen from time to time. > I'll run tests as soon as possible. > > Could you please also look at the other backends? > > I saw from git history that ppc once had the same bug. > The sparc backend (and maybe others) might still have it. SPARC looks wrong; the others look OK as far as I can tell from a quick glance, without being familiar with all of the architectures. -Scott