Skip to content

accel/tcg: Fix concurrent pthread_create() and munmap()

Ilya Leoshkevich qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2accel/tcg: Fix concurrent pthread_create() and munmap()accel/tcg/tb-maint.c+5 -01 reply
2/2tests/tcg/multiarch: Add munmap-pthread.ctests/tcg/multiarch/Makefile.target tests/tcg/multiarch/munmap-pthread.c+74 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] accel/tcg: Fix concurrent pthread_create() and munmap()

Hi,

This is a fix for the issue reported in [1]. Patch 1 is the fix itself, patch 2 is the test/reproducer.

By the way, I noticed that there is no code to free tb_jmp_cache, and object_finalize(CPUState) is never called - in case of system emulation this is fine, but what about linux-user?

[1] https://lists.gnu.org/archive/html/qemu-devel/2022-10/msg05181.html

Best regards,
Ilya

Ilya Leoshkevich (2):
accel/tcg: Fix concurrent pthread_create() and munmap() tests/tcg/multiarch: Add munmap-pthread.c

 accel/tcg/tb-maint.c                 |  5 ++
 tests/tcg/multiarch/Makefile.target  |  3 ++
 tests/tcg/multiarch/munmap-pthread.c | 71 ++++++++++++++++++++++++++++
 3 files changed, 79 insertions(+)
 create mode 100644 tests/tcg/multiarch/munmap-pthread.c
Signature · 1 line
2.37.2