[PATCH v2 1/2] modutils: check ELF header before calling finit_module()

Lauri Kasanen cand at gmx.com
Wed Jan 6 07:18:53 UTC 2021


On Tue, 5 Jan 2021 20:21:12 +0100
Alex Samorukov <samm at os2.kiev.ua> wrote:

> On Tue, 5 Jan 2021 10:47:25 +0800
> > Kang-Che Sung <explorer09 at gmail.com> wrote:
> >
> >> I don't see why the
> >> "Invalid ELF header" message would bother you so much, since you
> >> won't load kernel modules often.
> > As mentioned in my original post, it's a pr_err. It shows up on console!
> I am very likely missing something, but why we are trying to load
> non-elf modules?

We're trying to load compressed ELF modules. Pre-v5.9-rc4 kernels
silently told busybox "I can't open this, send uncompressed". Since
that version, the kernel complains loudly. Hence the issue.

(re-adding busybox list)

- Lauri


More information about the busybox mailing list