🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.kernel
1 messages
1 total messages Started by Benjamin Drung Tue, 24 Nov 2026 13:00
Bug#1148126: dracut: Including busybox module results in errors "Invalid ELF header magic" during early boot
#823
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads