Busybox modprobe brings error "Invalid ELF header magic: !=ELF"

Denys Vlasenko vda.linux at googlemail.com
Tue May 2 12:31:30 UTC 2023


On Mon, May 1, 2023 at 4:25 PM Jeff Pohlmeyer <yetanothergeek at gmail.com> wrote:
> On Fri, Apr 28, 2023 at 9:19 AM Jeff Pohlmeyer wrote:
> > On Fri, Mar 31, 2023 at 6:20 AM Denys Vlasenko wrote:
>
> > > Kernel does not auto-detect compressed modules.
> > > We need to call finit_module() with MODULE_INIT_COMPRESSED_FILE flag
> > > if module is compressed.
> > >
> > > Fixed it in git. Please try it now.
>
> > This is not working for me.
> > ...
> > But in the worst case (which seems to happen randomly), finit_module()
> > tries the MODULE_INIT_COMPRESSED_FILE flag and immediately receives a
> > SIGKILL, killing busybox and failing to load the module. (See
> > attachment for dmesg output.)
> >
> > This is on Artix Linux with their stock kernel 6.2.11.
>
> With the latest Artix kernel upgrade from 6.2.11 to 6.2.13, the random
> crashes seem to be fixed.
>
> MODULE_INIT_COMPRESSED_FILE is still failing, but at least now it
> isn't killing busybox.
>
> But the "Invalid ELF header magic" messages are still there.

Hmm. So it works, there are just these annoying messages?

Should we add an option to NOT try finit_module at all,
and just decompress modules in userspace?


More information about the busybox mailing list