This is a note to let you know that I've just added the patch titled x86/boot: Drop references to startup_64 to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: x86-boot-drop-references-to-startup_64.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From b618d31f112bea3d2daea19190d63e567f32a4db Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel <ardb@xxxxxxxxxx> Date: Tue, 12 Sep 2023 09:00:59 +0000 Subject: x86/boot: Drop references to startup_64 From: Ard Biesheuvel <ardb@xxxxxxxxxx> commit b618d31f112bea3d2daea19190d63e567f32a4db upstream. The x86 boot image generation tool assign a default value to startup_64 and subsequently parses the actual value from zoffset.h but it never actually uses the value anywhere. So remove this code. This change has no impact on the resulting bzImage binary. Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> Link: https://lore.kernel.org/r/20230912090051.4014114-25-ardb@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/x86/boot/Makefile | 2 +- arch/x86/boot/tools/build.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -89,7 +89,7 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vm SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) -sed-zoffset := -e 's/^\([0-9a-fA-F]*\) [a-zA-Z] \(startup_32\|startup_64\|efi32_stub_entry\|efi64_stub_entry\|efi_pe_entry\|efi32_pe_entry\|input_data\|kernel_info\|_end\|_ehead\|_text\|z_.*\)$$/\#define ZO_\2 0x\1/p' +sed-zoffset := -e 's/^\([0-9a-fA-F]*\) [a-zA-Z] \(startup_32\|efi32_stub_entry\|efi64_stub_entry\|efi_pe_entry\|efi32_pe_entry\|input_data\|kernel_info\|_end\|_ehead\|_text\|z_.*\)$$/\#define ZO_\2 0x\1/p' quiet_cmd_zoffset = ZOFFSET $@ cmd_zoffset = $(NM) $< | sed -n $(sed-zoffset) > $@ --- a/arch/x86/boot/tools/build.c +++ b/arch/x86/boot/tools/build.c @@ -60,7 +60,6 @@ static unsigned long efi64_stub_entry; static unsigned long efi_pe_entry; static unsigned long efi32_pe_entry; static unsigned long kernel_info; -static unsigned long startup_64; static unsigned long _end; /*----------------------------------------------------------------------*/ @@ -264,7 +263,6 @@ static void efi_stub_defaults(void) efi_pe_entry = 0x10; #else efi_pe_entry = 0x210; - startup_64 = 0x200; #endif } @@ -340,7 +338,6 @@ static void parse_zoffset(char *fname) PARSE_ZOFS(p, efi_pe_entry); PARSE_ZOFS(p, efi32_pe_entry); PARSE_ZOFS(p, kernel_info); - PARSE_ZOFS(p, startup_64); PARSE_ZOFS(p, _end); p = strchr(p, '\n'); Patches currently in stable-queue which might be from ardb@xxxxxxxxxx are queue-6.6/x86-boot-increase-section-and-file-alignment-to-4k-512.patch queue-6.6/x86-boot-derive-file-size-from-_edata-symbol.patch queue-6.6/x86-boot-construct-pe-coff-.text-section-from-assembler.patch queue-6.6/x86-boot-split-off-pe-coff-.data-section.patch queue-6.6/kallsyms-ignore-armv4-thunks-along-with-others.patch queue-6.6/x86-efi-drop-alignment-flags-from-pe-section-headers.patch queue-6.6/x86-boot-drop-references-to-startup_64.patch queue-6.6/x86-efistub-use-1-1-file-memory-mapping-for-pe-coff-.compat-section.patch queue-6.6/x86-boot-drop-pe-coff-.reloc-section.patch queue-6.6/x86-boot-set-efi-handover-offset-directly-in-header-asm.patch queue-6.6/x86-efi-drop-efi-stub-.bss-from-.data-section.patch queue-6.6/x86-efi-disregard-setup-header-of-loaded-image.patch queue-6.6/x86-boot-grab-kernel_info-offset-from-zoffset-header-directly.patch queue-6.6/x86-boot-drop-redundant-code-setting-the-root-device.patch queue-6.6/x86-boot-remove-the-bugger-off-message.patch queue-6.6/x86-boot-omit-compression-buffer-from-pe-coff-image-memory-footprint.patch queue-6.6/x86-boot-define-setup-size-in-linker-script.patch