Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo-hardened not autoloading kernel modules
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
squeegily
n00b
n00b


Joined: 17 Apr 2016
Posts: 57

PostPosted: Tue Apr 25, 2017 2:46 pm    Post subject: Gentoo-hardened not autoloading kernel modules Reply with quote

I generally compile Gentoo systems with the drivers for soldered-on or otherwise integrated devices as builtin (integrated audio, USB/ATA controllers, iGPU, hw I/O ports, etc), and anything peripheral (basically all PCI/USB devices) as modules.

However, I have noticed that the officially supported hardened-sources seems not to load modularized drivers automatically (the most "vital" ones being ath5k and, for now, usbhid; the box will hopefully soon be headless, but at that time the Wi-Fi will be more vital.)

What do I need to change to get hardened-sources to load device drivers?
_________________
~0x4657bfb0
Code:
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3381

PostPosted: Tue Apr 25, 2017 3:22 pm    Post subject: Reply with quote

I'm not sure if it's related, but I'm having similar problems with my non-hardened machines, and our problems may be related.

It seems that OpenRC has been "evolving" to be more systemd-compatible, or something like that. In the process some of the good old stuff has been breaking, prompting some to mask OpenRC updates, and others to think about forking it.

For my part, stuff from /etc/conf.d/modules doesn't seem to be getting loaded, or at least some of it doesn't. Apparently the new and improved way is to use the modules-load service instead of the modules service. However I understand that the improved modules-load service doesn't let you specify module parameters, as modules did.

Many modules manage to load automagically, so I only have one system crippled by this problem, and it has other issues and is sufficiently non-essential that I haven't gotten it fixed, yet. Nor do I know exactly what I'm going to do - mask OpenRC at some level, learn to love the new way, or whatever.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42873
Location: 56N 3W

PostPosted: Tue Apr 25, 2017 3:34 pm    Post subject: Reply with quote

depontius,

different != improved.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3381

PostPosted: Tue Apr 25, 2017 3:57 pm    Post subject: Reply with quote

NeddySeagoon wrote:
depontius,

different != improved.


I really need to add a sarcasm emoticon. I thought my opinion was evident from my wording, evidently I was wrong.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
squeegily
n00b
n00b


Joined: 17 Apr 2016
Posts: 57

PostPosted: Tue Apr 25, 2017 5:10 pm    Post subject: Reply with quote

…hold up, so this is actual changes/breakage happening in OpenRC updates?? Like, if I update my daily driver rig: no more keyboard+mouse?

If so, why is this being pushed out to the default repos as unmasked, "stable" updates?? 8O
_________________
~0x4657bfb0
Code:
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3654
Location: Hamburg

PostPosted: Tue Apr 25, 2017 8:07 pm    Post subject: Re: Gentoo-hardened not autoloading kernel modules Reply with quote

squeegily wrote:
However, I have noticed that the officially supported hardened-sources seems not to load modularized drivers automatically
4.9.24-hardened does it (and all older w/o any problems too) here at my hardened stable Gentoo at a ThinkPad T440s
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13628

PostPosted: Wed Apr 26, 2017 1:57 am    Post subject: Reply with quote

OP: could you post emerge --info from an affected system? Most of that output is not relevant to your current problem, but it may help us to know the versions of OpenRC, kernel, etc. You could probably show just emerge --info | sed -e '/^$/q' (all output up to the first blank line).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42873
Location: 56N 3W

PostPosted: Wed Apr 26, 2017 8:42 am    Post subject: Reply with quote

squeegily,

Pastebin you kernel .config please. There are a few kernel options in hardened that can cause this behavior.
Two that come to mind are ignore USB devices no detected at boot and restrict module leading to a single filesystem.
That's not their actual names ... its what they do.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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