qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] tci: don't write zero for reloc in tci_out_labe


From: Scott Wood
Subject: Re: [Qemu-devel] [PATCH] tci: don't write zero for reloc in tci_out_label
Date: Tue, 19 Jun 2012 16:52:56 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]