diff mbox

[V2,3/4] vmxnet3: validate interrupt indices read on migration

Message ID 1396604722-11902-4-git-send-email-dmitry@daynix.com
State New
Headers show

Commit Message

Dmitry Fleytman April 4, 2014, 9:45 a.m. UTC
CVE-2013-4544

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/net/vmxnet3.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Dr. David Alan Gilbert April 11, 2014, 2:21 p.m. UTC | #1
* Dmitry Fleytman (dmitry@daynix.com) wrote:
> CVE-2013-4544
> 
> Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
> Reported-by: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

Dave

> ---
>  hw/net/vmxnet3.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
> index 4fefc7b..a0723c0 100644
> --- a/hw/net/vmxnet3.c
> +++ b/hw/net/vmxnet3.c
> @@ -2391,6 +2391,8 @@ static int vmxnet3_post_load(void *opaque, int version_id)
>          }
>      }
>  
> +    vmxnet3_validate_interrupts(s);
> +
>      return 0;
>  }
>  
> -- 
> 1.8.5.3
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
diff mbox

Patch

diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index 4fefc7b..a0723c0 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -2391,6 +2391,8 @@  static int vmxnet3_post_load(void *opaque, int version_id)
         }
     }
 
+    vmxnet3_validate_interrupts(s);
+
     return 0;
 }