From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <famz@redhat.com>
Cc: qemu-devel@nongnu.org, uobergfe@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2] aio: Fix use-after-free in cancellation path
Date: Tue, 20 May 2014 16:01:38 +0200 [thread overview]
Message-ID: <537B6042.10500@redhat.com> (raw)
In-Reply-To: <20140520131622.GA22753@stefanha-thinkpad.redhat.com>
Il 20/05/2014 15:16, Stefan Hajnoczi ha scritto:
> On Tue, May 20, 2014 at 10:00:47AM +0800, Fam Zheng wrote:
>> diff --git a/thread-pool.c b/thread-pool.c
>> index fbdd3ff..d4984ba 100644
>> --- a/thread-pool.c
>> +++ b/thread-pool.c
>> @@ -223,6 +223,7 @@ static void thread_pool_cancel(BlockDriverAIOCB *acb)
>> }
>> pool->pending_cancellations--;
>> }
>> + event_notifier_ready(&pool->notifier);
>> qemu_mutex_unlock(&pool->lock);
>> }
>
> event_notifier_ready() doesn't need pool->lock. Can you call it outside
> the lock or am I missing something?
Yes, in fact I'm a bit wary of calling it inside the lock.
Paolo
next prev parent reply other threads:[~2014-05-20 14:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 2:00 [Qemu-devel] [PATCH v2] aio: Fix use-after-free in cancellation path Fam Zheng
2014-05-20 13:16 ` Stefan Hajnoczi
2014-05-20 14:01 ` Paolo Bonzini [this message]
2014-05-21 2:40 ` Fam Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537B6042.10500@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=uobergfe@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.