summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown2011-03-15 02:52:58 +0100
committerMichael Brown2011-03-15 03:07:22 +0100
commit23daab14a66d407db4ea81811bddf9da95cc35e9 (patch)
tree75ba07a813d050a7035988139b3d76b8f745a6dc /src/include/ipxe/efi
parent[eepro100] Do not discard short packets (diff)
downloadipxe-23daab14a66d407db4ea81811bddf9da95cc35e9.tar.gz
ipxe-23daab14a66d407db4ea81811bddf9da95cc35e9.tar.xz
ipxe-23daab14a66d407db4ea81811bddf9da95cc35e9.zip
[romprefix] Use correct size for PMM allocation of image source block
iPXE allocates its first PMM block using the image source length, which is rounded up to the nearest 16-byte paragraph. It then copies in data of a length calculated from the ROM size, which is theoretically less than or equal to the image source length, but is rounded up to the nearest 512-byte sector. This can result in copying beyond the end of the allocated PMM block, which can corrupt the PMM data structures (and other essentially arbitrary areas of memory). Fix by rounding up the image source length to the nearest 512-byte sector before using it as the PMM allocation length. Reported-by: Alex Williamson <alex.williamson@redhat.com> Reported-by: Jarrod Johnson <jarrod.b.johnson@gmail.com> Reported-by: Itay Gazit <itayg@mellanox.co.il> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
0 files changed, 0 insertions, 0 deletions