All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] ui/spice: fix crash when disabling GL scanout on
Date: Mon, 8 Sep 2025 16:59:55 +0100	[thread overview]
Message-ID: <aL79ezQgX03csRiU@redhat.com> (raw)
In-Reply-To: <20250903193818.2460914-1-marcandre.lureau@redhat.com>

On Wed, Sep 03, 2025 at 11:38:18PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> When spice_qxl_gl_scanout2() isn't available, the fallback code
> incorrectly handles NULL arguments to disable the scanout, leading to:
> 
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  spice_server_gl_scanout (qxl=0x55a25ce57ae8, fd=0x0, width=0, height=0, offset=0x0, stride=0x0, num_planes=0, format=0, modifier=72057594037927935, y_0_top=0)
>     at ../ui/spice-display.c:983
> 983         if (num_planes <= 1) {
> 
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2391334
> Fixes: 98a050ca93afd8 ("ui/spice: support multi plane dmabuf scanout")
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  ui/spice-display.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2025-09-08 16:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-03 19:38 [PATCH] ui/spice: fix crash when disabling GL scanout on marcandre.lureau
2025-09-08 15:59 ` Daniel P. Berrangé [this message]
2025-09-15  8:50 ` Michael Tokarev
2025-09-27 13:01 ` 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=aL79ezQgX03csRiU@redhat.com \
    --to=berrange@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.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.