On 3/14/25 06:47, Geoffrey Thomas wrote:
If another thread is holding target_fd_trans_lock during a fork, then the lock
becomes permanently locked in the child and the emulator deadlocks at the next
interaction with the fd-trans table. As with other locks, acquire the lock in
fork_start() and release it in fork_end().

Signed-off-by: Geoffrey Thomas <geo...@ldpreload.com>
Fixes: c093364f4d91 "fd-trans: Fix race condition on reallocation of the translation 
table."
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2846
Buglink: https://github.com/astral-sh/uv/issues/6105
---
  linux-user/fd-trans.h | 10 ++++++++++
  linux-user/main.c     |  2 ++
  2 files changed, 12 insertions(+)

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

and queued, thanks.


r~

Reply via email to