qemu-e2k/contrib
Akihiko Odaki 1063693e1c contrib/plugins: Use GRWLock in execlog
execlog had the following comment:
> As we could have multiple threads trying to do this we need to
> serialise the expansion under a lock. Threads accessing already
> created entries can continue without issue even if the ptr array
> gets reallocated during resize.

However, when the ptr array gets reallocated, the other threads may have
a stale reference to the old buffer. This results in use-after-free.

Use GRWLock to properly fix this issue.

Fixes: 3d7caf145e ("contrib/plugins: add execlog to log instruction execution and memory access")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230912224107.29669-5-akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-12-alex.bennee@linaro.org>
2023-10-11 08:46:33 +01:00
..
elf2dmp elf2dmp: rework PDB_STREAM_INDEXES::segments obtaining 2023-09-21 16:13:54 +01:00
gitdm contrib/gitdm: add group map for AMD 2023-03-22 15:08:26 +00:00
ivshmem-client meson: build contrib/ executables after generated headers 2022-01-12 14:09:06 +01:00
ivshmem-server cutils: Adjust signature of parse_uint[_full] 2023-06-02 12:27:19 -05:00
plugins contrib/plugins: Use GRWLock in execlog 2023-10-11 08:46:33 +01:00
rdmacm-mux meson, configure: move RDMA options to meson 2022-04-28 08:52:20 +02:00
systemd contrib: add systemd unit files 2017-12-20 22:29:26 +01:00
vhost-user-blk vhost-user: fully use new backend/frontend naming 2023-06-26 09:50:00 -04:00
vhost-user-gpu contrib/vhost-user-gpu: add support for sending dmabuf modifiers 2023-09-12 10:37:01 +04:00
vhost-user-input Fix build with 64 bits time_t 2021-05-14 10:26:18 -04:00
vhost-user-scsi vhost-user-scsi: avoid unlink(NULL) with fd passing 2022-05-16 16:48:35 -04:00