Skip to content
Commit dfd74a1e authored by Ross Lagerwall's avatar Ross Lagerwall Committed by David Vrabel
Browse files

xen/balloon: Fix crash when ballooning on x86 32 bit PAE

Commit 55b3da98

 (xen/balloon: find
non-conflicting regions to place hotplugged memory) caused a
regression in 4.4.

When ballooning on an x86 32 bit PAE system with close to 64 GiB of
memory, the address returned by allocate_resource may be above 64 GiB.
When using CONFIG_SPARSEMEM, this setup is limited to using physical
addresses < 64 GiB.  When adding memory at this address, it runs off
the end of the mem_section array and causes a crash.  Instead, fail
the ballooning request.

Signed-off-by: default avatarRoss Lagerwall <ross.lagerwall@citrix.com>
Cc: <stable@vger.kernel.org> # 4.4+
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent 60901df3
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