cyring / CoreFreq

CoreFreq : CPU monitoring and tuning software designed for 64-bit processors.
https://www.cyring.fr
GNU General Public License v2.0
1.97k stars 126 forks source link

On 1.94.1 and higher, corefreqk could not be inserted (invalid argument) #398

Closed antermin closed 1 year ago

antermin commented 1 year ago

Distro: Arch Linux Kernel: 6.1.5-arch2-1

CoreFreq 1.93.1 works for me, but when I test 1.94.1 and the develop branch, I encounter the following: modprobe: ERROR: could not insert 'corefreqk': Invalid argument

dmesg shows:

[   71.050566] corefreqk: loading out-of-tree module taints kernel.
[   71.051402] corefreqk: module verification failed: signature and/or required key missing - tainting kernel
[   71.068913] BPF: [115309] ENUM (anon) 
[   71.068927] BPF: size=4 vlen=9
[   71.068931] BPF:  
[   71.068933] BPF: Invalid name
[   71.068935] BPF: 
[   71.068943] failed to validate module [corefreqk] BTF: -22
cyring commented 1 year ago

I don't think CoreFreq version matters, your kernel is simply signed.

Thus you have to also sign corefreq.ko before to load it.

Or you disable that constraint from boot.

antermin commented 1 year ago

Re-compiled kernel and modules and it is OK now.

Sorry for disturbing.