linux/arch/s390/boot
Alexander Egorenkov ddc6cbef3e s390/boot/vmlinux.lds.S: Ensure bzImage ends with SecureBoot trailer
Since commit 3e86e4d74c ("kbuild: keep .modinfo section in
vmlinux.unstripped") the .modinfo section which has SHF_ALLOC ends up
in bzImage after the SecureBoot trailer. This breaks SecureBoot because
the bootloader can no longer find the SecureBoot trailer with kernel's
signature at the expected location in bzImage. To fix the bug,
move discarded sections before the ELF_DETAILS macro and discard
the .modinfo section which is not needed by the decompressor.

Fixes: 3e86e4d74c ("kbuild: keep .modinfo section in vmlinux.unstripped")
Cc: stable@vger.kernel.org
Suggested-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Tested-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
History 2026-01-22 15:15:50 +01:00
..
.gitignore s390/boot: Ignore vmlinux.map 2025-03-18 17:13:05 +01:00
als.c s390/boot: Use the full title of the manual for facility bits 2025-06-23 12:05:00 +02:00
alternative.c s390/alternatives: Add debug functionality 2025-03-04 17:18:08 +01:00
boot.h s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
clz_ctz.c s390/boot: get rid of startup archive 2022-05-06 20:45:14 +02:00
cmdline.c s390: move ipl block and cmd line handling to early boot phase 2018-10-09 11:21:14 +02:00
ctype.c s390: move ipl block and cmd line handling to early boot phase 2018-10-09 11:21:14 +02:00
decompressor.c s390/boot: Add common boot_panic() code 2025-08-28 16:52:54 +02:00
decompressor.h s390/boot: Rework deployment of the kernel image 2024-04-17 13:38:02 +02:00
ebcdic.c s390/decompressor: avoid reusing uncompressed image objects 2018-06-25 10:14:39 +02:00
head.S s390/boot: Add exception table support 2025-03-04 17:25:22 +01:00
head_kdump.S s390: consistently use .balign instead of .align 2023-06-28 13:57:09 +02:00
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
ipl_data.c s390: Remove compat support 2025-11-17 11:10:38 +01:00
ipl_parm.c s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
ipl_report.c s390/ipl_report: Remove unused 'size' variable 2025-01-26 17:24:04 +01:00
ipl_vmparm.c s390: move ipl block and cmd line handling to early boot phase 2018-10-09 11:21:14 +02:00
kaslr.c s390/boot: Replace boot_printk() with loglevel-specific helpers 2025-01-26 17:24:00 +01:00
kmsan.c s390/boot: add the KMSAN runtime stub 2024-07-03 19:30:24 -07:00
machine_kexec_reloc.c s390/kernel: build a relocatable kernel 2019-04-29 10:47:10 +02:00
Makefile s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
mem.S s390/decompressor: reuse lib/mem.S for mem functions 2018-06-25 10:14:39 +02:00
pgm_check.c s390/boot: Add exception table support 2025-03-04 17:25:22 +01:00
physmem_info.c s390/boot: Add common boot_panic() code 2025-08-28 16:52:54 +02:00
printk.c s390/boot: Use strspcy() instead of strcpy() 2025-04-30 11:41:28 +02:00
sclp_early_core.c s390/boot: move sclp early buffer from fixed address in asm to C 2021-07-27 09:39:15 +02:00
stackprotector.c s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
startup.c s390: Add stackprotector support 2025-11-24 11:45:21 +01:00
string.c s390/boot: Add sized_strscpy() to enable strscpy() usage 2025-04-14 11:23:22 +02:00
trampoline.S s390/boot: Introduce jump_to_kernel() function 2025-07-10 14:42:10 +02:00
uv.c s390/uv: Retrieve UV secrets sysfs support 2024-10-29 11:17:17 +01:00
uv.h s390: Remove protvirt and kvm config guards for uv code 2024-07-23 16:02:33 +02:00
version.c kbuild: build init/built-in.a just once 2022-09-29 04:40:15 +09:00
vmem.c s390/boot: Use entire page for PTEs 2025-12-07 16:15:19 +01:00
vmlinux.lds.S s390/boot/vmlinux.lds.S: Ensure bzImage ends with SecureBoot trailer 2026-01-22 15:15:50 +01:00