All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel.a@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH for-1.7 0/5] fix address space size issues
Date: Wed, 06 Nov 2013 21:54:03 +0200	[thread overview]
Message-ID: <1383767643.2527.38.camel@localhost.localdomain> (raw)
In-Reply-To: <1383763674-18374-1-git-send-email-mst@redhat.com>

On Wed, 2013-11-06 at 20:47 +0200, Michael S. Tsirkin wrote:
> A bug reported by Luiz Capitulino let us to find
> several bugs in memory address space setup.
> 
> One issue is that gdb stub can give us arbitrary addresses
> and we'll try to access them.
> Since our lookup ignored high bits in the address,
> we hit a wrong section and got a crash.
> In fact, PCI devices can access arbitrary addresses too,
> so we should just make lookup robust against this case.
> 
> Another issue has to do with size of regions.
> memory API uses UINT64_MAX so say "all 64 bit" but
> some devices mistakenly used INT64_MAX.
> 
> It should not affect most systems in practice as
> everything should be limited by address space size,
> but it's an API misuse that we should not keep around,
> and it will become a problem if a system with 64 bit
> target address hits this path.
> 
> Patch 1 fixes an actual bug.
> The rest of patches make code cleaner and more robust.
> 
> Michael S. Tsirkin (4):
>   exec: don't ignore high address bits on lookup
>   pci: fix address space size for bridge
>   exec: don't ignore high address bits on set
>   spapr_pci: s/INT64_MAX/UINT64_MAX/
> 
> Paolo Bonzini (1):
>   pc: s/INT64_MAX/UINT64_MAX/
> 
>  exec.c              | 9 +++++++++
>  hw/i386/pc_piix.c   | 2 +-
>  hw/i386/pc_q35.c    | 2 +-
>  hw/pci/pci_bridge.c | 2 +-
>  hw/ppc/spapr_pci.c  | 2 +-
>  5 files changed, 13 insertions(+), 4 deletions(-)
> 

Reviewed-by: Marcel Apfelbaum <marcel.a@redhat.com>

       reply	other threads:[~2013-11-06 19:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1383763674-18374-1-git-send-email-mst@redhat.com>
2013-11-06 19:54 ` Marcel Apfelbaum [this message]
2013-11-06 20:13   ` [Qemu-devel] [PATCH for-1.7 0/5] fix address space size issues Michael S. Tsirkin
2013-11-06 22:09     ` Marcel Apfelbaum
2013-11-06 22:20       ` Michael S. Tsirkin
2013-11-06 22:22         ` Marcel Apfelbaum
2013-11-06 22:37           ` Michael S. Tsirkin

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=1383767643.2527.38.camel@localhost.localdomain \
    --to=marcel.a@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@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.