qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] target/i386: Make sure that vsyscall's tb->size != 0


From: Richard Henderson
Subject: Re: [PATCH 1/2] target/i386: Make sure that vsyscall's tb->size != 0
Date: Fri, 14 May 2021 09:30:31 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/11/21 11:02 PM, Ilya Leoshkevich wrote:
tb_gen_code() assumes that tb->size must never be zero, otherwise it
may produce spurious exceptions. For x86_64 this may happen when
creating a translation block for the vsyscall page.

Fix by pretending that vsyscall translation blocks have at least one
instruction.

Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com>
---
  target/i386/tcg/translate.c | 1 +
  1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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