This is a note to let you know that I've just added the patch titled x86/efi: Drop alignment flags from PE section headers 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-efi-drop-alignment-flags-from-pe-section-headers.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 bfab35f552ab3dd6d017165bf9de1d1d20f198cc Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel <ardb@xxxxxxxxxx> Date: Tue, 12 Sep 2023 09:00:54 +0000 Subject: x86/efi: Drop alignment flags from PE section headers From: Ard Biesheuvel <ardb@xxxxxxxxxx> commit bfab35f552ab3dd6d017165bf9de1d1d20f198cc upstream. The section header flags for alignment are documented in the PE/COFF spec as being applicable to PE object files only, not to PE executables such as the Linux bzImage, so let's drop them from the PE header. Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> Link: https://lore.kernel.org/r/20230912090051.4014114-20-ardb@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/x86/boot/header.S | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S @@ -209,8 +209,7 @@ section_table: .word 0 # NumberOfLineNumbers .long IMAGE_SCN_CNT_CODE | \ IMAGE_SCN_MEM_READ | \ - IMAGE_SCN_MEM_EXECUTE | \ - IMAGE_SCN_ALIGN_16BYTES # Characteristics + IMAGE_SCN_MEM_EXECUTE # Characteristics # # The EFI application loader requires a relocation section @@ -230,8 +229,7 @@ section_table: .word 0 # NumberOfLineNumbers .long IMAGE_SCN_CNT_INITIALIZED_DATA | \ IMAGE_SCN_MEM_READ | \ - IMAGE_SCN_MEM_DISCARDABLE | \ - IMAGE_SCN_ALIGN_1BYTES # Characteristics + IMAGE_SCN_MEM_DISCARDABLE # Characteristics #ifdef CONFIG_EFI_MIXED # @@ -249,8 +247,7 @@ section_table: .word 0 # NumberOfLineNumbers .long IMAGE_SCN_CNT_INITIALIZED_DATA | \ IMAGE_SCN_MEM_READ | \ - IMAGE_SCN_MEM_DISCARDABLE | \ - IMAGE_SCN_ALIGN_1BYTES # Characteristics + IMAGE_SCN_MEM_DISCARDABLE # Characteristics #endif # @@ -271,8 +268,7 @@ section_table: .word 0 # NumberOfLineNumbers .long IMAGE_SCN_CNT_CODE | \ IMAGE_SCN_MEM_READ | \ - IMAGE_SCN_MEM_EXECUTE | \ - IMAGE_SCN_ALIGN_16BYTES # Characteristics + IMAGE_SCN_MEM_EXECUTE # Characteristics .set section_count, (. - section_table) / 40 #endif /* CONFIG_EFI_STUB */ 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