]> asedeno.scripts.mit.edu Git - linux.git/commit
vmw_balloon: fix inflation of 64-bit GFNs
authorNadav Amit <namit@vmware.com>
Tue, 19 Jun 2018 23:00:24 +0000 (16:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 10:56:30 +0000 (12:56 +0200)
commit09755690c6b7c1eabdc4651eb3b276f8feb1e447
treef660e7c52ebe79857e74ae7d0b5dfaf87adfcb50
parent10f146639fee5ffaf7cf0081c1af518f7d0c533c
vmw_balloon: fix inflation of 64-bit GFNs

When balloon batching is not supported by the hypervisor, the guest
frame number (GFN) must fit in 32-bit. However, due to a bug, this check
was mistakenly ignored. In practice, when total RAM is greater than
16TB, the balloon does not work currently, making this bug unlikely to
happen.

Fixes: ef0f8f112984 ("VMware balloon: partially inline vmballoon_reserve_page.")
Cc: stable@vger.kernel.org
Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c