|
|
e2c81d |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
e2c81d |
From: Frediano Ziglio <fziglio@redhat.com>
|
|
|
e2c81d |
Date: Wed, 17 Feb 2016 21:22:22 +0000
|
|
|
e2c81d |
Subject: [PATCH] memslot: do not crash if guest provide a wrong address
|
|
|
e2c81d |
|
|
|
e2c81d |
This could happen with buggy driver.
|
|
|
e2c81d |
|
|
|
e2c81d |
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1264356
|
|
|
e2c81d |
|
|
|
e2c81d |
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
|
|
|
e2c81d |
Acked-by: Pavel Grunt <pgrunt@redhat.com>
|
|
|
e2c81d |
---
|
|
|
e2c81d |
server/red_memslots.c | 2 +-
|
|
|
e2c81d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
e2c81d |
|
|
|
e2c81d |
diff --git a/server/red_memslots.c b/server/red_memslots.c
|
|
|
e2c81d |
index d9153d3..3b8443e 100644
|
|
|
e2c81d |
--- a/server/red_memslots.c
|
|
|
e2c81d |
+++ b/server/red_memslots.c
|
|
|
e2c81d |
@@ -87,7 +87,7 @@ int validate_virt(RedMemSlotInfo *info, unsigned long virt, int slot_id,
|
|
|
e2c81d |
|
|
|
e2c81d |
if (virt < slot->virt_start_addr || (virt + add_size) > slot->virt_end_addr) {
|
|
|
e2c81d |
print_memslots(info);
|
|
|
e2c81d |
- spice_critical("virtual address out of range\n"
|
|
|
e2c81d |
+ spice_warning("virtual address out of range\n"
|
|
|
e2c81d |
" virt=0x%lx+0x%x slot_id=%d group_id=%d\n"
|
|
|
e2c81d |
" slot=0x%lx-0x%lx delta=0x%lx",
|
|
|
e2c81d |
virt, add_size, slot_id, group_id,
|