summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-09-16 16:22:47 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-09-26 12:15:01 +0200
commit9c1442a9d039a1a3302fa93e9a11001c5f23b624 (patch)
treeb64d3d4baf2c80fb50409a24a5e53997044d3ecf /drivers/firmware/efi
parentc33ce984435bb6142792802d75513a71e55d1969 (diff)
downloadtalos-obmc-linux-9c1442a9d039a1a3302fa93e9a11001c5f23b624.tar.gz
talos-obmc-linux-9c1442a9d039a1a3302fa93e9a11001c5f23b624.zip
x86: boot: Fix EFI stub alignment
We currently align the end of the compressed image to a multiple of 16. However, the PE-COFF header included in the EFI stub says that the file alignment is 32 bytes, and when adding an EFI signature to the file it must first be padded to this alignment. sbsigntool commands warn about this: warning: file-aligned section .text extends beyond end of file warning: checksum areas are greater than image size. Invalid section table? Worse, pesign -at least when creating a detached signature- uses the hash of the unpadded file, resulting in an invalid signature if padding is required. Avoid both these problems by increasing alignment to 32 bytes when CONFIG_EFI_STUB is enabled. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'drivers/firmware/efi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud