Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-7497

Genkernel's busybox segfaults within initramfs on i686 cause of boot failure

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Linux funtoo 4.19.132-debian-sources-lts #1 SMP Thu Sep 24 09:43:43 EDT 2020 i686 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux

    • Hide
      Create an initramfs containing busybox with genkernel and attempt to boot.
      Extract the initramfs or genkernel's cached /usr/share/genkernel/ busybox-1.21.1-x86.tar.bz2 and execute busybox to see segfault message.
      Show
      Create an initramfs containing busybox with genkernel and attempt to boot. Extract the initramfs or genkernel's cached /usr/share/genkernel/ busybox-1.21.1-x86.tar.bz2 and execute busybox to see segfault message.
    • Hide
      A bit of searching turned up the same issue and solution on openwrt and buildroot. Using a patch to comment out i386 build flags in the busybox-1.21.1 arch/i386/Makefile fixed the problem. I made and installed i386-no-arch-flags.patch for busybox-1.21.1 installing to /usr/share/genkernel/patches/busybox/1.21.1 , delete /usr/share/genkernel/busybox-1.21.1-x86.tar.bz2 to force genkernel to use new patch and rebuild busybox-1.21.1 . Ran genkernel initramfs to rebuild initramfs and now 4.19.132-debian-sources-lts boots as expected.
      Show
      A bit of searching turned up the same issue and solution on openwrt and buildroot. Using a patch to comment out i386 build flags in the busybox-1.21.1 arch/i386/Makefile fixed the problem. I made and installed i386-no-arch-flags.patch for busybox-1.21.1 installing to /usr/share/genkernel/patches/busybox/1.21.1 , delete /usr/share/genkernel/busybox-1.21.1-x86.tar.bz2 to force genkernel to use new patch and rebuild busybox-1.21.1 . Ran genkernel initramfs to rebuild initramfs and now 4.19.132-debian-sources-lts boots as expected.
    • Hide
      Normally I use no initramfs with vanilla kernel sources. I emerged debian-sources-lts-4.19.132_p1 on funtoo amd64 to verify there was no problem in response to a forum post. I decided to emerge on my funtoo i686 install which led to the i686 boot failure discovery.
      Show
      Normally I use no initramfs with vanilla kernel sources. I emerged debian-sources-lts-4.19.132_p1 on funtoo amd64 to verify there was no problem in response to a forum post. I decided to emerge on my funtoo i686 install which led to the i686 boot failure discovery.

      Boot fails on i686 when using genkernel to create initramfs with trap errors leading to unknown blk device error. I issued shell command and typed dmesg, every command applet run by busy-box was followed by a segmentation fault. Booting into a good kernel I extracted the initramfs to execute busy-box, bin/busybox output ended with segmentation fault.

            Unassigned Unassigned
            cardinal cardinal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: