Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Odd problems when regenerating new kernel (5.15.19)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
davidbryant
Apprentice
Apprentice


Joined: 11 Jun 2020
Posts: 164
Location: Canyon Lake, Texas

PostPosted: Sun Feb 06, 2022 6:00 pm    Post subject: Odd problems when regenerating new kernel (5.15.19) Reply with quote

Yesterday when I ran "emerge --update --deep @world" I got a new set of Linux sources. So I upgraded from 5.15.16-gentoo-x86_64 to 5.15.19-gentoo-x86_64. Everything went smoothly.

Today I tweaked my .config file just a little bit, and recompiled the kernel. The "make && make modules_install" ran in just about two minutes, which seems distinctly odd. It usually takes 7 or 8 minutes to do that on my Dell XPS8930 (8 core Intel CPU). When I rebooted the system I got a bunch of errors saying "invalid signature" on some kernel modules, and the boot died after about two seconds. So I regenerated the initramfs file (I use dracut) and tried again. This was also odd ... dracut gave me a lot of error messages, and created an initramfs file that was just 4.2 MiB (the previous version, the one I built yesterday, was 7.2 MiB). And the system wouldn't boot with the new initramfs file.

I had backed everything up carefully, so it was relatively simple to get my "old" kernel working again (the one I compiled yesterday). I've been using Gentoo for almost two years, and this is the first time I have encountered such a problem. Does anyone have any idea why such things would happen? I would like to eliminate some unnecessary drivers for hardware I do not have ... the configuration file I started with two years ago had virtually every brand of hardware enabled, and I've been whittling things away whenever I have some extra free time.
_________________
David Bryant
Canyon Lake, Texas
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5394
Location: Bavaria

PostPosted: Sun Feb 06, 2022 7:22 pm    Post subject: Re: Odd problems when regenerating new kernel (5.15.19) Reply with quote

davidbryant wrote:
[...] I got a bunch of errors saying "invalid signature" on some kernel modules, [...]

This looks like you have enabled signed modules: CONFIG_MODULE_SIG
Code:
[*] Enable loadable module support  --->
  [*]   Module signature verification

-or- you have enabled Kernel Lockdown:
Code:
Security options  --->
  [*] Basic module for enforcing kernel lockdown

which enables also signed modules; see help from CONFIG_MODULE_SIG
Code:
Selected by [y]:
- SECURITY_LOCKDOWN_LSM [=y] && SECURITY [=y] && MODULES [=y]



P.S.: See more here: https://wiki.gentoo.org/wiki/Signed_kernel_module_support
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2204

PostPosted: Mon Feb 07, 2022 9:30 am    Post subject: Re: Odd problems when regenerating new kernel (5.15.19) Reply with quote

davidbryant wrote:
...
Today I tweaked my .config file just a little bit, and recompiled the kernel. The "make && make modules_install" ran in just about two minutes, which seems distinctly odd. It usually takes 7 or 8 minutes to do that on my Dell XPS8930 (8 core Intel CPU).
...

Unless you ran "make clean" between kernel "make" runs (and in general there's no need to "make clean"), the kernel build make scripts will only recompile the bits affected by your config changes. Small change means small compilation, unless the change hits one of the kernel headers, in which case you'll get something like a full recompilation. For example, adding an ethernet card only requires compiling its driver, but adding hibernate support hits _everything_.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum