]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[initrd] Allow for images straddling the top of the reshuffle region
authorMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 13:12:12 +0000 (14:12 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 15:28:15 +0000 (16:28 +0100)
commit11929389e4298bbe4b7dce09ef2f2c4368c009c1
treeaae7b975ff480b9337b40967afb633ff486e1623
parent029c7c4178d0122164770bf4a534aeb94d6c7698
[initrd] Allow for images straddling the top of the reshuffle region

It is hypothetically possible for external heap memory allocated
during driver startup to have been freed before an image was
downloaded, which could therefore leave an image straddling the
address recorded as the top of the reshuffle region.

Allow for this possibility by skipping squashing for any images
already straddling (or touching) the top of the reshuffle region.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/initrd.c