[Spice-commits] server/memslot.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Feb 18 10:37:55 UTC 2016


 server/memslot.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aa724b170b7ff742b77f2a247797f0003a6d1b73
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Feb 17 21:22:22 2016 +0000

    memslot: do not crash if guest provide a wrong address
    
    This could happen with buggy driver.
    
    This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1264356
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/server/memslot.c b/server/memslot.c
index 768762b..99c63e4 100644
--- a/server/memslot.c
+++ b/server/memslot.c
@@ -61,7 +61,7 @@ int memslot_validate_virt(RedMemSlotInfo *info, unsigned long virt, int slot_id,
 
     if (virt < slot->virt_start_addr || (virt + add_size) > slot->virt_end_addr) {
         print_memslots(info);
-        spice_critical("virtual address out of range\n"
+        spice_warning("virtual address out of range\n"
               "    virt=0x%lx+0x%x slot_id=%d group_id=%d\n"
               "    slot=0x%lx-0x%lx delta=0x%lx",
               virt, add_size, slot_id, group_id,


More information about the Spice-commits mailing list