Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic in gentoo-sources 5.4.11, 5.4.12 [Partly solved
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
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Jan 16, 2020 10:08 pm    Post subject: Kernel panic in gentoo-sources 5.4.11, 5.4.12 [Partly solved Reply with quote

Having built the gentoo-sources kernels 5.4.11 and 5.4.12 this week, I find that neither will boot. My present kernel 5.4.8 boots correctly. The error message is:
Code:
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009

Machine is "86_64 Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz GenuineIntel"

Does anyone know what changed in the newer kernels to cause this?


Last edited by rickj on Fri Jan 17, 2020 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Fri Jan 17, 2020 12:03 pm    Post subject: Reply with quote

I had the same error!

But after updating genkernel it worked :)

My command was: time (emerge -1 gentoo-sources;genkernel --menuconfig --install --integrated-initramfs --kernel-config=/proc/config.gz all)
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Fri Jan 17, 2020 7:34 pm    Post subject: Reply with quote

This is encouraging. I've never used genkernel, but perhaps I should give it a try.

I would still be interested to know what is going on, and what genkernel does that my build omits.

The full error screen is at https://postimg.cc/5X3QvngW. Sorry about the quality, 'phone does not like to focus so close.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Fri Jan 17, 2020 10:50 pm    Post subject: Reply with quote

Progress: I now have a bootable gentoo-sources-5.4.12 kernel.

Reviewing the dmesg in the old, bootable 5.4.8 kernel, there were kernel-lockdown complaints in the early stages of boot. These were not fatal, but in the later kernels they apparently are fatal. In my case the kernel-lockdown prevented ring_buffer_set_clock from operating, and the boot process ended. Disabling kernel lockdown in .config produced a bootable kernel.

Kernel lockdown is clearly a useful facility, but apparently it needs to be used with more care than I can manage at present. If some kind soul with a better understanding of this facility would write up some guidelines, I would be very grateful.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23071

PostPosted: Sat Jan 18, 2020 1:20 am    Post subject: Reply with quote

My understanding of the lockdown patches is that if you have to ask someone to explain them to you, you probably don't need them and will just turn them off after you read the explanation. :) They're targeted to situations where you want to have the root user still be unable to do certain things that would be bad for longterm security. For most home users, root is all-powerful and the owner of the system likes it that way, so disabling lockdown is the right choice.
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Sun Jan 19, 2020 7:51 pm    Post subject: Reply with quote

Indeed, Hu, for most of my systems an omnipotent root is the appropriate choice. I run a work network, and I suspect that the firewall and the webserver might benefit from some degree of lockdown.
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