From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Felipe Franciosi <felipe@nutanix.com>,
qemu-block@nongnu.org, Ronnie Sahlberg <ronniesahlberg@gmail.com>,
Peter Lieven <pl@kamp.de>, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/3] block/iscsi: fix ioctl cancel use-after-free
Date: Thu, 15 Feb 2018 10:37:21 +0000 [thread overview]
Message-ID: <20180215103721.GG23321@stefanha-x1.localdomain> (raw)
In-Reply-To: <20180203061621.7033-1-stefanha@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
On Sat, Feb 03, 2018 at 07:16:18AM +0100, Stefan Hajnoczi wrote:
> v2:
> * It was unnecessary to avoid duplicate iscsi_schedule_bh() calls since this
> function already protects against duplicate calls internally [Stefan]
>
> Patches 1 & 2 are cleanups.
>
> Patch 3 fixes cancellation of ioctls. Felipe showed me a trace where an acb is
> cancelled and then completes twice. The second time around crashes QEMU.
>
> Compile-tested only.
>
> Felipe: Please let us know if this fixes the issue you are seeing. Thanks!
>
> Stefan Hajnoczi (3):
> block/iscsi: drop unused IscsiAIOCB->buf field
> block/iscsi: take iscsilun->mutex in iscsi_timed_check_events()
> block/iscsi: fix ioctl cancel use-after-free
>
> block/iscsi.c | 33 ++++++++++++++++++++++-----------
> 1 file changed, 22 insertions(+), 11 deletions(-)
Thanks for the reviews, Paolo and Felipe.
Paolo: Please merge this, I'll send an additional patch that works
around libiscsi's missing cancellation callback.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2018-02-15 10:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-03 6:16 [Qemu-devel] [PATCH v2 0/3] block/iscsi: fix ioctl cancel use-after-free Stefan Hajnoczi
2018-02-03 6:16 ` [Qemu-devel] [PATCH v2 1/3] block/iscsi: drop unused IscsiAIOCB->buf field Stefan Hajnoczi
2018-02-09 17:48 ` Paolo Bonzini
2018-02-03 6:16 ` [Qemu-devel] [PATCH v2 2/3] block/iscsi: take iscsilun->mutex in iscsi_timed_check_events() Stefan Hajnoczi
2018-02-09 17:49 ` Paolo Bonzini
2018-02-03 6:16 ` [Qemu-devel] [PATCH v2 3/3] block/iscsi: fix ioctl cancel use-after-free Stefan Hajnoczi
2018-02-09 17:48 ` [Qemu-devel] [Qemu-block] " Paolo Bonzini
2018-02-09 17:50 ` [Qemu-devel] " Paolo Bonzini
2018-02-13 16:52 ` Stefan Hajnoczi
2018-02-14 16:08 ` Felipe Franciosi
2018-02-15 10:37 ` Stefan Hajnoczi [this message]
2018-11-29 9:23 ` [Qemu-devel] [PATCH v2 0/3] " Paolo Bonzini
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=20180215103721.GG23321@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=felipe@nutanix.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=ronniesahlberg@gmail.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).