All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "Mattias Nissler" <mnissler@rivosinc.com>,
	qemu-devel@nongnu.org,
	"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
	stefanha@redhat.com, "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Peter Xu" <peterx@redhat.com>,
	"David Hildenbrand" <david@redhat.com>,
	"Kevin Wolf" <kwolf@redhat.com>,
	Gonglei <arei.gonglei@huawei.com>,
	"Richard Henderson" <richard.henderson@linaro.org>
Subject: Re: [PATCH] softmmu: Support concurrent bounce buffers
Date: Thu, 26 Sep 2024 04:12:47 -0400	[thread overview]
Message-ID: <20240926040912-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <3761eb6d-89c0-4e73-baf6-9242ad5136f7@tls.msk.ru>

On Thu, Sep 26, 2024 at 10:58:57AM +0300, Michael Tokarev wrote:
> 25.09.2024 13:23, Mattias Nissler wrote:
> > On Wed, Sep 25, 2024 at 12:03 PM Michael Tokarev <mjt@tls.msk.ru> wrote:
> ..
> > > So, the issue has now become CVE-2024-8612 (information leak), with this
> > > commit (v9.1.0-134-g637b0aa139) being the fix.
> > 
> > Interesting. IIUC, this is triggered by device implementations calling
> > dma_memory_unmap with an incorrect size parameter as provided by a
> > hostile guest. Shouldn't the device implementations be fixed to
> > validate the parameter as well? Maybe this has already happened? It
> > would seem the more targeted fix to me.
> 
> Yes, a similar question occurred to me too, - this change does not look
> like a proper fix for CVE-2024-8612.  And nope, no other changes has been
> made to fix it properly, in the device implementations.
> 
> Maybe now with CVE-2024-8612 in place, we can fix the actual problem in
> the right place, instead of relying on this change..
> 
> > > Should we back-port it to previous stable releases of qemu?
> > > (it applies to 9.1 but not to 9.0, and I haven't tested it even in 9.1.
> > > If anything it needs some work for 9.0 and before)
> > 
> > FWIW, I've been running with earlier variants of this since at least
> > 8.0.50, so a backport shouldn't be hard. Note that if we decide to
> > backport, we should also include "mac_dbdma: Remove leftover
> > `dma_memory_unmap` calls", which fixes a bug uncovered in mac_dbdma
> > uncovered by the concurrent bounce buffers change.
> 
> So far I picked this and mac_dbdma change for 9.1, and will try to
> back-port things up to 8.2.  But it is better - IMHO - to have a real,
> more targetting, fix for CVE-2024-8612.

Agree 100% here.

Cc a bunch more people involved.


> Thanks,
> 
> /mjt



  reply	other threads:[~2024-09-26  8:13 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 13:54 [PATCH] softmmu: Support concurrent bounce buffers Mattias Nissler
2024-08-21 18:24 ` Peter Xu
2024-09-10 14:53 ` Michael S. Tsirkin
2024-09-10 15:44   ` Peter Maydell
2024-09-10 16:10     ` Mattias Nissler
2024-09-10 16:39       ` Michael S. Tsirkin
2024-09-10 21:36         ` Mattias Nissler
2024-09-11 10:24           ` Michael S. Tsirkin
2024-09-11 11:17             ` Mattias Nissler
2024-09-12 14:27 ` Peter Maydell
2024-09-13 15:55   ` Peter Xu
2024-09-13 16:47     ` Peter Maydell
2024-09-16  7:35       ` Mattias Nissler
2024-09-16  9:05         ` Peter Maydell
2024-09-16  9:29           ` Mattias Nissler
2024-09-25 10:03 ` Michael Tokarev
2024-09-25 10:23   ` Mattias Nissler
2024-09-26  7:58     ` Michael Tokarev
2024-09-26  8:12       ` Michael S. Tsirkin [this message]
2024-10-25  5:59         ` Michael Tokarev

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=20240926040912-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=david@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mjt@tls.msk.ru \
    --cc=mnissler@rivosinc.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=stefanha@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.