qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	David Hildenbrand <david@redhat.com>,
	Patrick Venture <venture@google.com>,
	Peter Foley <pefoley@google.com>
Subject: Re: [PATCH] system/physmem: Silence warning from ubsan
Date: Tue, 29 Jul 2025 15:21:46 -0400	[thread overview]
Message-ID: <aIkfSris9vanaS41@x1.local> (raw)
In-Reply-To: <e19e5442-1479-43b3-a232-b8587c79caed@linaro.org>

On Mon, Jul 28, 2025 at 08:43:47PM +0200, Philippe Mathieu-Daudé wrote:
> Cc'ing Patrick & Peter for similar patch:
> https://lore.kernel.org/qemu-devel/aCUDxEQVACn5CY8f@x1.local/

This version seems to work.

> 
> On 28/7/25 19:25, Thomas Huth wrote:
> > From: Thomas Huth <thuth@redhat.com>
> > 
> > When compiling QEMU with --enable-ubsan there is a undefined behavior
> > warning when running the bios-tables-test for example:
> > 
> >   .../system/physmem.c:3243:13: runtime error: applying non-zero offset 262144 to null pointer
> >      #0 0x55ac1df5fbc4 in address_space_write_rom_internal .../system/physmem.c:3243:13

I can trigger this by as simple as "./qemu-system-x86_64 -accel kvm".  I
queued it, thanks.

-- 
Peter Xu



  reply	other threads:[~2025-07-29 21:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-28 17:25 [PATCH] system/physmem: Silence warning from ubsan Thomas Huth
2025-07-28 18:43 ` Philippe Mathieu-Daudé
2025-07-29 19:21   ` Peter Xu [this message]
2025-07-28 18:44 ` David Hildenbrand

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=aIkfSris9vanaS41@x1.local \
    --to=peterx@redhat.com \
    --cc=david@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=pefoley@google.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    --cc=venture@google.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).