Skip to content

Commit aa127a0

Browse files
oberparVasily Gorbik
authored andcommitted
s390/boot: add secure boot trailer
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]>
1 parent 6ec8030 commit aa127a0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

arch/s390/boot/vmlinux.lds.S

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,17 @@ SECTIONS
102102
_compressed_start = .;
103103
*(.vmlinux.bin.compressed)
104104
_compressed_end = .;
105-
FILL(0xff);
106-
. = ALIGN(4096);
105+
}
106+
107+
#define SB_TRAILER_SIZE 32
108+
/* Trailer needed for Secure Boot */
109+
. += SB_TRAILER_SIZE; /* make sure .sb.trailer does not overwrite the previous section */
110+
. = ALIGN(4096) - SB_TRAILER_SIZE;
111+
.sb.trailer : {
112+
QUAD(0)
113+
QUAD(0)
114+
QUAD(0)
115+
QUAD(0x000000207a49504c)
107116
}
108117
_end = .;
109118

0 commit comments

Comments
 (0)