[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] audio/jack: fix use after free segfault
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v2] audio/jack: fix use after free segfault |
Date: |
Wed, 19 Aug 2020 07:58:50 +0200 |
Hi,
> > > schedule a bottom half calling qjack_client_fini()
> >
> > Does QEMU have such a mechanism for doing this?
>
> There could also be a possible race here if `jack_client_connect` is called
> before the scheduled shutdown takes place.
You can cancel a scheduled bottom half, and checking ->state on connect
should tell you whenever this is needed or not. I think you can even
just cancel unconditionally (when not scheduled the cancel is a nop).
HTH,
Gerd