Skip to content

Commit

Permalink
s390/boot: add secure boot trailer
Browse files Browse the repository at this point in the history
This patch enhances the kernel image adding a trailer as required for
secure boot by future firmware versions.

Cc: <[email protected]> # 5.2+
Signed-off-by: Peter Oberparleiter <[email protected]>
Reviewed-by: Sven Schnelle <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
oberpar authored and Vasily Gorbik committed Oct 26, 2022
1 parent 6ec8030 commit aa127a0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions arch/s390/boot/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,17 @@ SECTIONS
_compressed_start = .;
*(.vmlinux.bin.compressed)
_compressed_end = .;
FILL(0xff);
. = ALIGN(4096);
}

#define SB_TRAILER_SIZE 32
/* Trailer needed for Secure Boot */
. += SB_TRAILER_SIZE; /* make sure .sb.trailer does not overwrite the previous section */
. = ALIGN(4096) - SB_TRAILER_SIZE;
.sb.trailer : {
QUAD(0)
QUAD(0)
QUAD(0)
QUAD(0x000000207a49504c)
}
_end = .;

Expand Down

0 comments on commit aa127a0

Please sign in to comment.