qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	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 15:16:22 +0200	[thread overview]
Message-ID: <20140520131622.GA22753@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1400551247-4798-1-git-send-email-famz@redhat.com>

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?

Stefan

  reply	other threads:[~2014-05-20 13:16 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 [this message]
2014-05-20 14:01   ` Paolo Bonzini
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=20140520131622.GA22753@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).