[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJWrxn2+KL_O=cjDuhzpmVf7qPzr_Vx-eAmA3+8wg_CJS-LZag@mail.gmail.com>
Date: Mon, 7 Dec 2020 01:45:39 -0800
From: Elias Carter <edcarter@...berta.ca>
To: David Hildenbrand <david@...hat.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: 5.10 RC 7: grub2 out of memory
>What's the size difference between old vs. new kernel and old vs. new
initrd?
The new initrd is over twice as large as the old one, the kernels
appear to be similar sizes:
elias@...as-5600X:~$ ll -h /boot/
total 435M
drwxr-xr-x 4 root root 4.0K Dec 7 01:31 ./
drwxr-xr-x 23 root root 4.0K Dec 6 23:15 ../
-rw-r--r-- 1 root root 160K Dec 7 01:31 config-5.10.0-rc7
-rw-r--r-- 1 root root 243K Dec 7 00:11 config-5.10.0-rc7.old
-rw-r--r-- 1 root root 233K Apr 20 2020 config-5.4.0-26-generic
-rw-r--r-- 1 root root 233K Nov 23 10:06 config-5.4.0-56-generic
drwx------ 3 root root 4.0K Dec 31 1969 efi/
drwxr-xr-x 4 root root 4.0K Dec 7 01:31 grub/
lrwxrwxrwx 1 root root 27 Dec 7 00:01 initrd.img ->
initrd.img-5.4.0-56-generic
-rw-r--r-- 1 root root 206M Dec 7 01:31 initrd.img-5.10.0-rc7
-rw-r--r-- 1 root root 82M Dec 6 23:23 initrd.img-5.4.0-26-generic
-rw-r--r-- 1 root root 82M Dec 7 00:01 initrd.img-5.4.0-56-generic
lrwxrwxrwx 1 root root 21 Dec 7 00:01 initrd.img.old ->
initrd.img-5.10.0-rc7
-rw-r--r-- 1 root root 5.3M Dec 7 01:31 System.map-5.10.0-rc7
-rw-r--r-- 1 root root 5.5M Dec 7 00:11 System.map-5.10.0-rc7.old
-rw------- 1 root root 4.6M Apr 20 2020 System.map-5.4.0-26-generic
-rw------- 1 root root 4.6M Nov 23 10:06 System.map-5.4.0-56-generic
lrwxrwxrwx 1 root root 18 Dec 7 01:31 vmlinuz -> vmlinuz-5.10.0-rc7
-rw-r--r-- 1 root root 12M Dec 7 01:31 vmlinuz-5.10.0-rc7
-rw-r--r-- 1 root root 12M Dec 7 00:11 vmlinuz-5.10.0-rc7.old
-rw-r--r-- 1 root root 12M Jun 24 11:59 vmlinuz-5.4.0-26-generic
-rw------- 1 root root 12M Nov 23 10:10 vmlinuz-5.4.0-56-generic
lrwxrwxrwx 1 root root 22 Dec 7 01:31 vmlinuz.old -> vmlinuz-5.10.0-rc7.old
> Which distro/grub2 version etc are
you running?
Linux Mint 20 Cinnamon.
elias@...as-5600X:~$ grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.7
Thanks,
Elias
On Mon, Dec 7, 2020 at 1:38 AM David Hildenbrand <david@...hat.com> wrote:
>
> On 07.12.20 10:16, Elias Carter wrote:
> > I just compiled and installed 5.10 RC 7 and got a message from grub2:
> > "out of memory, press any key to continue" shortly followed by a
> > kernel panic (see attached screenshot).
> >
> > The 5.4.0-56-generic kernel from Ubuntu works on my machine fine.
> >
> > Things I have tried so far:
> > - setting grub video mode to "console"
> > - setting grub video resolution to 800x600
> > - regenerating the initramfs for 5.10 RC 7
> > - verifying that /boot has free space
> > - changing boot mode from UEFI to legacy BIOS
> >
> > I have attached the following:
> > 1.) dmesg ran from using the 5.4 kernel (since I cant boot into 5.10 RC 7)
> > 2.) my 5.10 RC 7 kernel .config
> > 3.) screenshot of kernel panic after "out of memory" grub2 message
> > 4.) my /etc/default/grub
> >
> > Please let me know if you would like any more information or testing of patches.
>
> The kernel crashes because it's unable to mount root - I suspect the
> initrd is not loaded, because I would have expected systemd messages
> before trying to mount root (after loading additional drivers from the
> initrd). I assume grub2 fails to load the (now too big?) initrd - you
> could try compiling out debug symbols and give it a try.
>
> What's the size difference between old vs. new kernel and old vs. new
> initrd?
>
>
> Similar report for aarch64 was at
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1615969
>
> which turned out to be a grub2 issue. Which distro/grub2 version etc are
> you running?
>
> --
> Thanks,
>
> David / dhildenb
>
Powered by blists - more mailing lists