Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917670 - sys-kernel/gentoo-kernel: modprobe: FATAL: Module msr not found
Summary: sys-kernel/gentoo-kernel: modprobe: FATAL: Module msr not found
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 11:50 UTC by Agostino Sarubbo
Modified: 2023-11-21 13:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-11-21 11:50:26 UTC
I'm running gentoo-kernel-6.1.60 and while I'm trying to use cpupower (from sys-power/cpupower) I get:

modprobe: FATAL: Module msr not found in directory /lib/modules/6.1.60-gentoo-dist-hardened

Would be great if you can enable CONFIG_X86_MSR
Comment 1 Nowa Ammerlaan gentoo-dev 2023-11-21 12:34:45 UTC
This is currently explicitly disabled by the hardend-*.config[1]. From what I'm reading[2] the rational for this is because this option allows the root user to modify the kernel at runtime.

[1] https://github.com/projg2/gentoo-kernel-config/blob/master/hardened-amd64.config
[2] https://www.kicksecure.com/wiki/Hardened-kernel
Comment 2 genBTC 2023-11-21 13:11:03 UTC
MSR is disabled on purpose for hardened configs, its a security hole because it can send secret commands deep into the CPU. You can re-enable it if you want CPU telemetry.

The cpupower .ebuild should probably be patched to include a CONFIG_CHECK item for needing X86_MSR as a warning.
Comment 3 Agostino Sarubbo gentoo-dev 2023-11-21 13:28:57 UTC
That's enough to auto-close, thanks.