Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Re: Latest 4.9 kernels broken?
Date: Sat, 09 Jun 2018 15:51:04
Message-Id: CAJ1xhMX0qjtA9dLsThfSrpQxRGauzct3B4RNhM473Hd-wdkt=Q@mail.gmail.com
In Reply to: [gentoo-user] Re: Latest 4.9 kernels broken? by Ian Zimmerman
1 On Sat, Jun 9, 2018 at 5:26 PM Ian Zimmerman <itz@××××××××××××.org> wrote:
2 >
3 > On 2018-06-09 14:15, Alexander Kapshuk wrote:
4 >
5 > > I had a look at the source code for kmod-25. If I read it right, dmesg
6 > > should have records along the lines of:
7 > > kmod-25/libkmod/libkmod-module.c:886: INFO(mod->ctx, "Failed
8 > > to insert module '%s': %m\n", path);
9 > >
10 > > modprobe returns Exec format error.
11 >
12 > > Now, if my understanding of the source code above is right, you either
13 > > have CONFIG_X86_32 set in your kernel, e.i. your Elf_Ehdr is set to
14 > > Elf32_Ehdr, or the module's header is for the architecture that is
15 > > different from what is expected by the kernel.
16 >
17 > The former is definitely false. If the latter holds, it is not due to
18 > any action on my part, but due to how the module is built by the kernel
19 > build system (at the same time as the kernel proper). Again, I strongly
20 > suspect this is due to all the "objtool" churn in 4.9.106 and later.
21 >
22 > I'm afraid I'm at the limit of my patience diving into this for now.
23 > You see, I have to remove the broken kernel from grub manually every
24 > time (and then re-add it for another test), otherwise it breaks
25 > unattended boots.
26 >
27 > Sorry about that. Maybe in a few days I'll have time to sit down and
28 > track it properly.
29 >
30 > --
31 > Please don't Cc: me privately on mailing lists and Usenet,
32 > if you also post the followup to the list or newsgroup.
33 > To reply privately _only_ on Usenet and on broken lists
34 > which rewrite From, fetch the TXT record for no-use.mooo.com.
35 >
36
37 I appreciate that this has been a frustrating experience for you, but
38 when you get a change, could you please run 'readelf -h' on the module
39 concerned and show the output below:
40 readelf -h /path/to/module.ko
41 ELF Header:
42 Magic:
43 Class:
44 Machine:
45 Size of this header:
46
47 This will either confirm or refute my assumption about the ELF header
48 being the wrong size and causing the 'Exec format error' message to be
49 printed.
50
51 Thanks.

Replies

Subject Author
[gentoo-user] Re: Latest 4.9 kernels broken? Ian Zimmerman <itz@××××××××××××.org>