Skip to content
Commit 6a544355 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Prevent overflow in KVM_GET_SUPPORTED_CPUID



The number of entries is multiplied by the entry size, which can
overflow on 32-bit hosts.  Bound the entry count instead.

Reported-by: default avatarDavid Wagner <daw@cs.berkeley.edu>
Cc: stable@kernel.org
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent eb5109e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment