linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* INVALID ELF STRUCTURES
@ 2021-12-21 16:54 Eliyam Levy
       [not found] ` <CAD9KO1=gjhe1sc3MNyc3QawQgJAgwptFgsTZE903PCi3_DEyPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Eliyam Levy @ 2021-12-21 16:54 UTC (permalink / raw)
  To: linux-modules-u79uwXL29TY76Z2rM5mHXA,
	linux-newbie-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: INVALID ELF STRUCTURES
       [not found] ` <CAD9KO1=gjhe1sc3MNyc3QawQgJAgwptFgsTZE903PCi3_DEyPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-12-21 21:44   ` Luis Chamberlain
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Chamberlain @ 2021-12-21 21:44 UTC (permalink / raw)
  To: Eliyam Levy
  Cc: linux-modules-u79uwXL29TY76Z2rM5mHXA,
	linux-newbie-u79uwXL29TY76Z2rM5mHXA

On Tue, Dec 21, 2021 at 11:54:09AM -0500, Eliyam Levy wrote:
> 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?

Look for the already merged patch, "module: change to print useful
messages from elf_validity_check()".

$ git describe --contains 7fd982f394c42f25a73fe9dfbf1e6b11fa26b40a
v5.16-rc1~95^2    

  Luis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-21 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 16:54 INVALID ELF STRUCTURES Eliyam Levy
     [not found] ` <CAD9KO1=gjhe1sc3MNyc3QawQgJAgwptFgsTZE903PCi3_DEyPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-12-21 21:44   ` Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).