[PATCH] Fix data race with slh_first field in test-aio-multithread

2025-04-05 Thread Vitalii Mordan
This patch addresses potential data races involving access to the slh_first field in the QSLIST_INSERT_HEAD_ATOMIC macro. Fixes: c740ad92d0 ("QSLIST: add lock-free operations") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2902 Signed-off-by: Vitalii Mordan --- include/qe

[PATCH] Add annotations in QemuEvent functions

2025-04-02 Thread Vitalii Mordan
ssues/2904 Signed-off-by: Vitalii Mordan --- util/qemu-thread-posix.c | 4 util/qemu-thread-win32.c | 4 2 files changed, 8 insertions(+) diff --git a/util/qemu-thread-posix.c b/util/qemu-thread-posix.c index b2e26e2120..2f6b4834e9 100644 --- a/util/qemu-thread-posix.c +++ b/util/qemu-thre

[PATCH] Fix data races in test-bdrv-drain test

2025-04-02 Thread Vitalii Mordan
This patch addresses potential data races involving access to Job fields in the test-bdrv-drain test. Fixes: 7253220de4 ("test-bdrv-drain: Test drain vs. block jobs") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2900 Signed-off-by: Vitalii Mordan --- include/qemu/job.h

Re: [PATCH] Fix data race with the state Field of ThreadPoolElement

2025-02-26 Thread mordan
Hello! Please take a look at the new version of the patch here: https://lore.kernel.org/all/20250224161719.3831357-1-mor...@ispras.ru Thank you! February 20, 2025 6:10 AM, "Paolo Bonzini" wrote: > On 2/19/25 17:12, Vitalii Mordan wrote: > >> diff --git a/util/threa

[PATCH v2] Fix data race with the state Field of ThreadPoolElement

2025-02-24 Thread Vitalii Mordan
TSAN reports a potential data race on the state field of ThreadPoolElement. This is fixed by using atomic access to the field. Fixes: d354c7eccf ("aio: add generic thread-pool facility") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2822 Signed-off-by: Vitalii Mordan --- v2:

[PATCH] Fix data race with the state Field of ThreadPoolElement

2025-02-19 Thread Vitalii Mordan
TSAN reports a potential data race on the state field of ThreadPoolElement. This is fixed by using atomic access to the field. Fixes: d354c7eccf ("aio: add generic thread-pool facility") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2822 Signed-off-by: Vitalii Mordan --- u

[PATCH] Fix Data Races with TestBlockJob Fields in test-block-iothread

2025-02-13 Thread Vitalii Mordan
This patch resolves potential data races involving access to TestBlockJob fields in test-block-iothread.c. Fixes: 93c60f3862 ("test-block-iothread: Job coroutine thread after AioContext switch") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2809 Signed-off-by: Vita

[PATCH v2] Fix a data race with goflag in rcutorture test

2025-01-24 Thread Vitalii Mordan
This patch addresses a potential data race involving the global variable goflag in the rcutorture test. Fixes: 8fda74a52b ("rcu: add rcutorture") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2750 Signed-off-by: Vitalii Mordan --- v2: Access goflag using qatomic_read and qato

[PATCH] Fix a data race with goflag in rcutorture test

2025-01-22 Thread Vitalii Mordan
ssues/2750 Signed-off-by: Vitalii Mordan --- tests/unit/rcutorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/rcutorture.c b/tests/unit/rcutorture.c index 7662081683..c4971632f8 100644 --- a/tests/unit/rcutorture.c +++ b/tests/unit/rcutorture.c @@ -70,7 +7

[PATCH] Fix a data race with goflag in rcutorture test

2025-01-09 Thread Vitalii Mordan
ssues/2750 Signed-off-by: Vitalii Mordan --- tests/unit/rcutorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/rcutorture.c b/tests/unit/rcutorture.c index 7662081683..c4971632f8 100644 --- a/tests/unit/rcutorture.c +++ b/tests/unit/rcutorture.c @@ -70,7 +7