All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	qemu-devel@nongnu.org, David Vrabel <david.vrabel@citrix.com>,
	Anthony Perard <anthony.perard@citrix.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v2 2/3] xenfb: move xen_rmb to the correct location
Date: Tue, 12 Apr 2016 10:31:29 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.10.1604121030060.23347__40210.0579267882$1460482369$gmane$org@sstabellini-ThinkPad-X260> (raw)
In-Reply-To: <20160412134603.GC18652@citrix.com>

On Tue, 12 Apr 2016, Wei Liu wrote:
> On Tue, Apr 12, 2016 at 02:38:13PM +0100, Andrew Cooper wrote:
> > On 12/04/16 13:57, David Vrabel wrote:
> > > On 12/04/16 11:43, Wei Liu wrote:
> > >> It should be placed before first time producer and consumer are used.
> > > This change isn't necessary and is confusing as this is not what this
> > > barrier is for.
> > >
> > > The barrier needs to be between the load of prod and the load of the
> > > ring contents (there's even a comment that says this).  This pairs with
> > > the corresponding write barrier between the store of the ring contents
> > > and the store of prod (in the other end).
> > 
> > Looking further, this code will compile to multiple reads of the page,
> > because there is no ACCESS_ONCE().  This code is still vulnerable to
> > XSA-155.

There is no ACCESS_ONCE in QEMU, the closest thing to it is atomic_read.


> Oops, accidentally kicked over a can of worms. Should have just sent
> patch 1. :-)
> 
> Jokes aside, more time is needed to fix this properly. So maybe we
> should just upstream patch #1 first. Stefano? Anthony?

Sure

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-04-12 17:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 10:43 [Qemu-devel] [PATCH v2 0/3] xenfb bug fixes and cleanup Wei Liu
2016-04-12 10:43 ` Wei Liu
2016-04-12 10:43 ` [Qemu-devel] [PATCH v2 1/3] xenfb: use the correct condition to avoid excessive looping Wei Liu
2016-04-12 17:12   ` Stefano Stabellini
2016-04-12 17:12   ` [Qemu-devel] " Stefano Stabellini
2016-04-22 11:16     ` Anthony PERARD
2016-04-22 11:19       ` Wei Liu
2016-04-22 11:19       ` Wei Liu
2016-04-22 11:16     ` Anthony PERARD
2016-04-12 10:43 ` Wei Liu
2016-04-12 10:43 ` [Qemu-devel] [PATCH v2 2/3] xenfb: move xen_rmb to the correct location Wei Liu
2016-04-12 10:43   ` Wei Liu
2016-04-12 12:57   ` David Vrabel
2016-04-12 12:57   ` [Qemu-devel] [Xen-devel] " David Vrabel
2016-04-12 13:38     ` Andrew Cooper
2016-04-12 13:38     ` [Qemu-devel] [Xen-devel] " Andrew Cooper
2016-04-12 13:46       ` Wei Liu
2016-04-12 13:46       ` [Qemu-devel] [Xen-devel] " Wei Liu
2016-04-12 17:31         ` Stefano Stabellini [this message]
2016-04-12 17:31         ` Stefano Stabellini
2016-04-12 10:43 ` [PATCH v2 3/3] xenfb: remove out_cons in xenfb_handle_events Wei Liu
2016-04-12 10:43 ` [Qemu-devel] " Wei Liu
2016-04-12 17:33   ` Stefano Stabellini
2016-04-12 17:33   ` Stefano Stabellini

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='alpine.DEB.2.10.1604121030060.23347__40210.0579267882$1460482369$gmane$org@sstabellini-ThinkPad-X260' \
    --to=sstabellini@kernel.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 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.