aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-08-16 15:40:20 +1000
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-10-23 14:23:09 +0530
commit97eb962d643633ff7eb1e7d83e8ce7b1e1aa0c2f (patch)
treefbacb328183b4993a9eea9fafa555dc3fb00488c /include
parenta1fced25bf41f1f94a3673a0b2bf68135eedce25 (diff)
downloadskiboot-97eb962d643633ff7eb1e7d83e8ce7b1e1aa0c2f.zip
skiboot-97eb962d643633ff7eb1e7d83e8ce7b1e1aa0c2f.tar.gz
skiboot-97eb962d643633ff7eb1e7d83e8ce7b1e1aa0c2f.tar.bz2
core/flash: Validate secure boot content size
[ Upstream commit e2018d2a3d46491dc2abd758c67c1937910b3a67 ] Currently we don't check if the secure boot payload size fits within the partition that we are reading it from. This results in strange failures later on in boot if we cross the boundary between an ECCed and a non-ECCed partition since libflash does not support reading from regions with mixed ECC status. Without this patch: blocklevel_read: Can't cope with partial ecc FLASH: failed to read content size 15728640 BOOTKERNEL partition, rc 3 With: FLASH: Cannot load BOOTKERNEL. Content is larger than the partition Cc: Nayna Jain <nayna@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Acked-by: Stewart Smith <stewart@flamingspork.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions