lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 15 Sep 2023 13:30:58 +0200
From:   Ingo Molnar <mingo@...nel.org>
To:     Ard Biesheuvel <ardb@...gle.com>
Cc:     linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Ard Biesheuvel <ardb@...nel.org>,
        Evgeniy Baskov <baskov@...ras.ru>,
        Borislav Petkov <bp@...en8.de>,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        Ingo Molnar <mingo@...hat.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Peter Jones <pjones@...hat.com>,
        Matthew Garrett <mjg59@...f.ucam.org>,
        Gerd Hoffmann <kraxel@...hat.com>,
        Kees Cook <keescook@...omium.org>,
        "H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH v2 00/15] x86/boot: Rework PE header generation


* Ingo Molnar <mingo@...nel.org> wrote:

> > Ard Biesheuvel (15):
> >   x86/efi: Drop EFI stub .bss from .data section
> >   x86/efi: Disregard setup header of loaded image
> >   x86/efi: Drop alignment flags from PE section headers
> >   x86/boot: Remove the 'bugger off' message
> >   x86/boot: Omit compression buffer from PE/COFF image memory footprint
> >   x86/boot: Drop redundant code setting the root device
> >   x86/boot: Grab kernel_info offset from zoffset header directly
> >   x86/boot: Drop references to startup_64
> 
> I've applied these first 8 patches to tip:x86/boot with minor edits.
> (Please preserve existing comment capitalization conventions ...)
> 
> >   x86/boot: Set EFI handover offset directly in header asm
> >   x86/boot: Define setup size in linker script
> >   x86/boot: Derive file size from _edata symbol
> >   x86/boot: Construct PE/COFF .text section from assembler
> >   x86/boot: Drop PE/COFF .reloc section
> >   x86/boot: Split off PE/COFF .data section
> >   x86/boot: Increase section and file alignment to 4k/512
> 
> The rest conflicted with recent upstream changes, and I suppose it's
> prudent to test these changes bit by bit anyway.

So, the first 8 patches broke the x86-64-defconfig-ish Qemu bzImage bootup,
due to the 8th patch:

  988b52b207a9fe74c3699bda8c2256714926b94b is the first bad commit
  commit 988b52b207a9fe74c3699bda8c2256714926b94b
  Author: Ard Biesheuvel <ardb@...nel.org>
  Date:   Tue Sep 12 09:01:01 2023 +0000

      x86/boot: Define setup size in linker script

I've removed it for now - but this side effect was not expected.

Thanks,

	Ingo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ