🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.kernel
Article #823

Bug#1148126: dracut: Including busybox module results in errors "Invalid ELF header magic" during early boot

#823
From: Benjamin Drung
Date: Tue, 24 Nov 2026 13:00
70 lines
4563 bytes
On Thu, 2026-09-17 at 12:33 +0200, Farblos wrote:
> Package: dracut
> Version: 112-6
> Severity: normal
> X-Debbugs-Cc: farblos@vodafonemail.de
> 
> Dear Maintainer,
> 
> Since the installation of dracut 112-6 yesterday I get journal
> errors (prio <3>) during early boot:
> 
>   [1.680672] <5> kernel Loaded X.509 cert 'Build time autogenerated kernel ke>
>   [1.680676] <6> kernel Demotion targets for Node 0: null
>   [1.680679] <5> kernel Key type .fscrypt registered
>   [1.680683] <5> kernel Key type fscrypt-provisioning registered
>   [1.680687] <3> kernel Invalid ELF header magic: != %7FELF
>   [1.680691] <3> kernel Invalid ELF header magic: != %7FELF
>   [1.680694] <3> kernel Invalid ELF header magic: != %7FELF
>   [1.680698] <3> kernel Invalid ELF header magic: != %7FELF
>   [1.680702] <5> kernel Key type encrypted registered
>   [1.680706] <6> kernel AppArmor: AppArmor sha256 policy hashing enabled
>   [1.680710] <6> kernel ima: Allocated hash algorithm: sha256
>   [1.680713] <6> kernel ima: No architecture policies found
> 
> (Note: These errors are visible only as shown above with my
> private journalctl wrapper - more on that below.)
> 
> If I explicitly omit module "busybox" in my dracut configuration
> and rebuild the initramfs, above error messages do not occur in
> the journal.
> 
> 
> From what I understood with some LLM help:
> 
> - dracut 112-5 includes the busybox module by default, and I can
>   see it being included in my initramfs, where it replaces insmod
>   and modprobe:
> 
>     dracut modules:
>     [...]
>     busybox
>     [...]
> 
>     usr/sbin/insmod -> ../bin/busybox
>     usr/sbin/modprobe -> ../bin/busybox
> 
> - Busybox's insmod/modprobe can show above error when trying to
>   process a compressed module, as described here:
> 
>     https://lists.busybox.net/pipermail/busybox/2023-March/090205.html
> 
>   After issuing the error, Busybox's insmod/modprobe try to
>   uncompress the module being processed, which succeeds.
> 
> 
> Not sure whether you consider this a bug, just thought to report
> it.

The "Invalid ELF header magic: != %7FELF" are caused by using busybox
inside the initrd. What I assume (but haven't verified): kmod
decompressed kernel modules and pass them to the kernel. busybox instead
does not decompressed kernel modules, but pass them compressed to the
kernel. The kernel has to do the decompression. The kernel should not
complain when it can decompress the module. So this probably should be
reported to the kernel team.

-- 
Benjamin Drung
Debian & Ubuntu Developer
Technical Details
Message-ID: <O2YhP-dSqh-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NEhH3-77H-9@gated-at.bofh.it> <NEhH3-77H-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Benjamin Drung <bdrung@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.kernel
Subject: Bug#1148126: dracut: Including busybox module results in errors "Invalid ELF header magic" during early boot
Date: Tue, 24 Nov 2026 14:00:01 +0100
Message-ID: <O2YhP-dSqh-9@gated-at.bofh.it>
References: <NEhH3-77H-9@gated-at.bofh.it> <NEhH3-77H-9@gated-at.bofh.it>
X-Original-To: Farblos <farblos@vodafonemail.de>, 1148126@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 12:51:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Benjamin Drung <bdrung@debian.org>, 1148126@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-kernel@lists.debian.org
X-Debian-Pr-Message: followup 1148126
X-Debian-Pr-Package: dracut
X-Debian-Pr-Source: dracut
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.56.2-9 
MIME-Version: 1.0
X-Debian-User: bdrung
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004662
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 70
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 24 Nov 2026 13:48:11 +0100
X-Original-Message-ID: <5cbd402df78ad84ff5fd475f90b18420fe8584fd.camel@debian.org>
X-Original-References: <178964118104.3209.8989862553124696703.reportbug@sappc1.fritz.box> <178964118104.3209.8989862553124696703.reportbug@sappc1.fritz.box>