]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:46 +0000 (19:45 -0600)
commitb7c7aeebf94bc5e2c29678e95b4bbd39cfb14204
tree5a66559e9b724ce29a2a28df143262bb30c5e5d3
parent81a215fe81ad8cd33ba1aeda68f3ca825ec65db7
vmw_balloon: fix inflation of 64-bit GFNs

BugLink: https://bugs.launchpad.net/bugs/1835972
commit 09755690c6b7c1eabdc4651eb3b276f8feb1e447 upstream.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/misc/vmw_balloon.c