qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] accel/tcg: Fix translation exception on invalid instruction


From: Richard Henderson
Subject: Re: [PATCH] accel/tcg: Fix translation exception on invalid instruction
Date: Tue, 13 Apr 2021 08:29:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 4/13/21 6:23 AM, Ilya Leoshkevich wrote:
* When tb_gen_code() is called on that page, tb->size ends up being 0

This is the bug, in target/s390x. Perhaps we need to add an assert that size != 0 after translation...


Fix by special-casing tb->size == 0: since there is no useful code, we
don't need to link pages in this case.

Yes we do, because we need to link to the page to notice when changes to that page occur.

While this won't happen in the specific case of uretprobe, it affects every other instance of a TB which begins with an illegal instruction.


r~



reply via email to

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