From: Cornelia Huck <cohuck@redhat.com>
To: Farhan Ali <alifm@linux.ibm.com>,
Halil Pasic <pasic@linux.ibm.com>,
Christian Borntraeger <borntraeger@de.ibm.com>
Cc: linux-s390@vger.kernel.org,
Colin Ian King <colin.king@canonical.com>,
kvm@vger.kernel.org, virtualization@lists.linux-foundation.org
Subject: Re: [PATCH 1/2] virtio/s390: avoid race on vcdev->config
Date: Mon, 24 Sep 2018 14:55:54 +0200 [thread overview]
Message-ID: <20180924145554.712f4cf4.cohuck@redhat.com> (raw)
In-Reply-To: <80a80dc6-ccb1-f245-b367-c2f9345ca151@linux.ibm.com>
On Fri, 21 Sep 2018 17:47:47 -0400
Farhan Ali <alifm@linux.ibm.com> wrote:
> On 09/21/2018 09:28 AM, Halil Pasic wrote:
> > Anyway I'm fine with swapping the old out and your new version in,
> > if you prefer it that way.
> >
> > If you do, would you like to have a respin?
Just send me a respin with something that you find useful :) (maybe a
mashup of our descriptions) (while at it, you could also add the
cc:stable, which I agree make sense)
> >
> > Regards,
> > Halil
> >
>
> I had been looking into this code recently, and shouldn't vcdev->status
> (function get/set_status functions) also have a lock around it? Or is it
> not possible to have a race condition on vcdev->status?
I don't think so, as status is only a byte.
>
> Thanks
> Farhan
>
>
> >>>
> >>> Let us protect the shared state using vcdev->lock.
> >>>
> >>> Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
> >>> ---
> >>> drivers/s390/virtio/virtio_ccw.c | 10 ++++++++--
> >>> 1 file changed, 8 insertions(+), 2 deletions(-)
> >>
> >
> >
>
next prev parent reply other threads:[~2018-09-24 12:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180921124621.43649-1-pasic@linux.ibm.com>
2018-09-24 11:52 ` [PATCH 0/2] virtio/s390: fix some races in virtio-ccw Christian Borntraeger
[not found] ` <20180921124621.43649-2-pasic@linux.ibm.com>
[not found] ` <20180921151433.519b6687.cohuck@redhat.com>
[not found] ` <d05aa6cb-d344-37dd-f1eb-55c28fcb9c62@linux.ibm.com>
[not found] ` <80a80dc6-ccb1-f245-b367-c2f9345ca151@linux.ibm.com>
2018-09-24 12:55 ` Cornelia Huck [this message]
[not found] ` <2b8982be-9066-cf08-657b-99ecf889e4a7@linux.ibm.com>
2018-09-24 14:50 ` [PATCH 1/2] virtio/s390: avoid race on vcdev->config Cornelia Huck
[not found] ` <20180921124621.43649-3-pasic@linux.ibm.com>
[not found] ` <20180921153031.77f7693b.cohuck@redhat.com>
[not found] ` <a55df275-d982-c051-1b17-465e3a30777f@linux.ibm.com>
2018-09-24 13:32 ` [PATCH 2/2] virtio/s390: fix race in ccw_io_helper() Cornelia Huck
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=20180924145554.712f4cf4.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=alifm@linux.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=colin.king@canonical.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pasic@linux.ibm.com \
--cc=virtualization@lists.linux-foundation.org \
/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).