[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 0/2] char-socket: Fix race condition
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4 0/2] char-socket: Fix race condition |
Date: |
Wed, 21 Aug 2019 10:18:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 12/08/19 17:58, Andrey Shinkevich wrote:
> This fixes a race condition in which the tcp_chr_read() ioc handler
> can close a connection that is being written to from another thread.
>
> v4:
> The functions qemu_idle_add() and tcp_chr_be_event_closed() were removed
> because the callback is invoked after the call to
> object_property_del_all()
> so, the "chardev" object had been deleted and the segmentation fault
> occurs.
> Let's please apply the Alberto's simplified series to avoid the race
> condition.
>
> v3:
> See the email thread with the Message ID
> <address@hidden>
>
> Alberto Garcia (2):
> main-loop: Fix GSource leak in qio_task_thread_worker()
> char-socket: Lock tcp_chr_disconnect()
>
> chardev/char-socket.c | 16 +++++++++++++---
> io/task.c | 1 +
> 2 files changed, 14 insertions(+), 3 deletions(-)
>
Queued, thanks.
Paolo