KVM: Prevent overflow in largepages calculation
authorAvi Kivity <avi@redhat.com>
Mon, 8 Jun 2009 12:55:21 +0000 (15:55 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 12:18:16 +0000 (15:18 +0300)
If userspace specifies a memory slot that is larger than 8 petabytes, it
could overflow the largepages variable.

Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found