INVALID ELF STRUCTURES

Eliyam Levy <[email protected]> Tue, 21 Dec 2021 11:54:09 -0500
Newsgroups gmane.linux.kernel.modules,gmane.linux.newbie
Message-ID <CAD9KO1=gjhe1sc3MNyc3QawQgJAgwptFgsTZE903PCi3_DEyPg@mail.gmail.com>
Hi,

I'm on Ubuntu 20.04 with kernel version 5.11 and I keep hitting the
"Module has invalid ELF structures" error on a kernel module I'm
building. I know this is related to the "harden ELF info handling"
patch that was introduced. Are there any useful ways to debug this? Is
there anything I should be mindful of when building the kernel module
to avoid this?

Best,
Eliyam