Re: [REGRESSION] linux 6.6.18 and later fails to boot with "initramfs unpacking failed: invalid magic at start of compressed archive"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 14 Mar 2024 at 22:53, Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:
>
> On Thu, 14 Mar 2024 at 20:35, Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:
> >
> > On Thu, 14 Mar 2024 at 19:32, Radek Podgorny <radek@xxxxxxxxxxx> wrote:
> > >
> > > hi,
> > >
> > > i seem to be the only one in the world to have this problem. :-(
> > >
> > > on one of my machines, updating to 6.6.18 and later (including mainline
> > > branch) leads to unbootable system. all other computers are unaffected.
> > >
> > > bisecting the history leads to:
> > >
> > > commit 8117961d98fb2d335ab6de2cad7afb8b6171f5fe
> > > Author: Ard Biesheuvel <ardb@xxxxxxxxxx>
> > >
> >
> > Thanks for the report.
> >
> > I'd like to get to the bottom of this if we can.
> >
> > Please share as much information as you can about the system
> > - boot logs
> > - DMI data to identify the system and firmware etc
> > - distro version
> > - versions of boot components (shim, grub, systemd-boot, etc including
> > config files)
> > - other information that might help narrow this down.
>
> Also, please check whether the below change makes a difference or not
>
> --- a/drivers/firmware/efi/libstub/x86-stub.c
> +++ b/drivers/firmware/efi/libstub/x86-stub.c
> @@ -477,6 +477,8 @@
>                 efi_exit(handle, status);
>         }
>
> +       memset(&boot_params, 0, sizeof(boot_params));
> +
>         /* Assign the setup_header fields that the kernel actually
> cares about */
>         hdr->root_flags = 1;
>         hdr->vid_mode   = 0xffff;

Another thing you might try is reverting commit

commit 5f51c5d0e905608ba7be126737f7c84a793ae1aa
Author: Ard Biesheuvel <ardb@xxxxxxxxxx>
Date:   Tue Sep 12 09:00:52 2023 +0000

    x86/efi: Drop EFI stub .bss from .data section

(in v6.6 the commit id is fa244085025f4a8fb38ec67af635aed04297758d)




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux