]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg: Unlock mmap_lock after longjmp
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 11 Aug 2022 00:14:26 +0000 (17:14 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Sep 2022 07:04:25 +0000 (08:04 +0100)
commit297368c74d077b24f0bb5c4f1ce541cc23d36815
treeb240f6df7f4c99c84cb614530ea98ae75297f286
parentcdf7130851318004e6512dbfdb73156fe59c7a59
accel/tcg: Unlock mmap_lock after longjmp

The mmap_lock is held around tb_gen_code.  While the comment
is correct that the lock is dropped when tb_gen_code runs out
of memory, the lock is *not* dropped when an exception is
raised reading code for translation.

Acked-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/user-exec.c