Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dmesg errors: version magic...should be...
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
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Thu Feb 29, 2024 1:36 am    Post subject: [SOLVED] dmesg errors: version magic...should be... Reply with quote

Hello,

After fixing an issue with kernel/boot, I checked the output of dmesg to see if there are any errors and found the following:

Code:
x86_pkg_temp_thermal: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
iptable_nat: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
nf_log_syslog: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
xt_LOG: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
xt_MASQUERADE: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
xt_addrtype: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
xt_mark: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
xt_nat: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '


I have never came across these error messages before and googling them was fruitless.
_________________
[<<$>>]


Last edited by myga on Thu Mar 07, 2024 3:12 am; edited 1 time in total
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Thu Feb 29, 2024 12:15 pm    Post subject: Reply with quote

Have you recompiled (and installed) modules again for new kernel? ie. make modules && make modules_install
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Thu Feb 29, 2024 3:53 pm    Post subject: Reply with quote

myga: you are trying to load modules from a kernel version other than the one for which they were built. This is almost guaranteed to fail badly if allowed, so the kernel disallows it. I've seen people get this when they flip a Kconfig option, but I've never seen someone accidentally try to load a module from a completely different kernel version. How did you get into that state?
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Sun Mar 03, 2024 2:34 am    Post subject: Reply with quote

freke wrote:
Have you recompiled (and installed) modules again for new kernel? ie. make modules && make modules_install


Yes, more than 6 times already. Where does RC get the instructions to load those modules?
_________________
[<<$>>]
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Sun Mar 03, 2024 2:42 am    Post subject: Reply with quote

Hu wrote:
myga: you are trying to load modules from a kernel version other than the one for which they were built. This is almost guaranteed to fail badly if allowed, so the kernel disallows it. I've seen people get this when they flip a Kconfig option, but I've never seen someone accidentally try to load a module from a completely different kernel version. How did you get into that state?


I have no clue how this happened. All I know is I started having major problems when I updated to kernel 6.6.13, so I completely removed it and went back to 6.1.67 which I found out shortly after it is not available on https://packages.gentoo.org/packages/sys-kernel/gentoo-sources!? So, I updated to 6.1.74 and that's what I'm using now. I wish I knew where the heck RC is getting the kernel 5.15.88 from.
_________________
[<<$>>]
Back to top
View user's profile Send private message
BurningMemory
n00b
n00b


Joined: 17 Jan 2023
Posts: 28

PostPosted: Sun Mar 03, 2024 4:33 am    Post subject: Reply with quote

Not sure if this would help, but do
Code:
eselect kernel list

I don't know if this actually has any effect on the system other
than the symlink in /usr/src.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Sun Mar 03, 2024 11:23 am    Post subject: Re: dmesg errors: version magic...should be... Reply with quote

myga wrote:
Hello,

After fixing an issue with kernel/boot, I checked the output of dmesg to see if there are any errors and found the following:

Code:
x86_pkg_temp_thermal: version magic '5.15.88-gentoo SMP mod_unload ' should be '6.1.74-gentoo SMP preempt mod_unload '
...


I have never came across these error messages before and googling them was fruitless.

My guess is that for some reason I can't imagine :-( your build process is putting modules from your kernel with the id "5.15.88-gentoo SMP" into "/lib/modules/6.1.74-gentoo SMP preempt". I'd guess that is something weird to do with your build process. But the spaces in the id string (I think that's CONFIG_LOCALVERSION) might be part of the issue if there's a script somewhere parsing that string and not handling spaces properly. It might be worth changing the spaces to hyphens.
_________________
Greybeard
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 03, 2024 1:16 pm    Post subject: Reply with quote

myga,

What does
Code:
ls -l /lib/modules
tell?
Code:
$ ls -l /lib/modules
total 36
drwxr-xr-x 4 root root 4096 May 13  2023 5.15.110-gentoo
drwxr-xr-x 5 root root 4096 Jul  1  2023 6.4.0-gentoo
drwxr-xr-x 5 root root 4096 Aug 15  2023 6.4.10-gentoo
drwxr-xr-x 6 root root 4096 Oct 10 16:34 6.5.0-gentoo
drwxr-xr-x 5 root root 4096 Nov 11 18:54 6.6.1-gentoo
drwxr-xr-x 3 root root 4096 Nov 27 11:14 6.6.2-gentoo
drwxr-xr-x 5 root root 4096 Jan 20 21:22 6.7.1-gentoo
drwxr-xr-x 5 root root 4096 Feb  4 11:00 6.7.3-gentoo
drwxr-xr-x 5 root root 4096 Feb 24 21:28 6.7.6-gentoo

The dates are the install dates of the modules.

What does
Code:
uname -a
tell?

The kernel tries lo load its matching modules from /lib/modules/`uname -r`
Code:
ls /lib/modules/`uname -r`
works.

I've not seen version magic problems across kernel versions ever.

Anyway, if /lib/modules/`uname -r` exists, are you able to
Code:
modprobe x86_pkg_temp_thermal
by hand.
Do any modules load correctly?
Code:
lsmod

_________________
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
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Sun Mar 03, 2024 9:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
myga,

What does
Code:
ls -l /lib/modules
tell?
What does
Code:
uname -a
tell?

The kernel tries lo load its matching modules from /lib/modules/`uname -r`
Code:
ls /lib/modules/`uname -r`
works.

I've not seen version magic problems across kernel versions ever.

Anyway, if /lib/modules/`uname -r` exists, are you able to
Code:
modprobe x86_pkg_temp_thermal
by hand.
Do any modules load correctly?
Code:
lsmod


Note: I don't select modules when I modify the kernel configuration using make menuconfig, I choose to build them in the kernel.

Code:
ls -l /lib/modules
total 0
drwxr-xr-x 1 root root 474 Feb 19  2023 5.15.88-gentoo
drwxr-xr-x 1 root root 474 Mar 14  2023 6.1.12-gentoo
drwxr-xr-x 1 root root 474 May  8  2023 6.1.19-gentoo
drwxr-xr-x 1 root root 474 May 17  2023 6.1.27-gentoo-r1
drwxr-xr-x 1 root root 474 May 23  2023 6.1.28-gentoo
drwxr-xr-x 1 root root 474 Jul  3  2023 6.1.31-gentoo
drwxr-xr-x 1 root root 474 Jul 19  2023 6.1.38-gentoo
drwxr-xr-x 1 root root 474 Aug 20  2023 6.1.41-gentoo
drwxr-xr-x 1 root root 474 Sep  5 18:38 6.1.46-gentoo
drwxr-xr-x 1 root root 474 Sep 13 21:37 6.1.53-gentoo
drwxr-xr-x 1 root root 474 Oct  8 20:30 6.1.53-gentoo-r1
drwxr-xr-x 1 root root 474 Nov 26 00:46 6.1.57-gentoo
drwxr-xr-x 1 root root 474 Dec  8 21:18 6.1.66-gentoo
drwxr-xr-x 1 root root 474 Feb 10 20:07 6.1.67-gentoo
drwxr-xr-x 1 root root 474 Mar  2 23:01 6.1.74-gentoo
drwxr-xr-x 1 root root 462 Jan 23 22:13 6.6.13-gentoo


Code:
uname -a
Linux lavender 6.1.74-gentoo #3 SMP PREEMPT_DYNAMIC Sat Mar  2 22:59:02 CST 2024 x86_64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz GenuineIntel GNU/Linux


Code:
ls -l /lib/modules/$(uname -r)
total 236
lrwxrwxrwx 1 root root     28 Feb 19 13:41 build -> /usr/src/linux-6.1.74-gentoo
drwxr-xr-x 1 root root     18 Mar  2 23:01 kernel
-rw-r--r-- 1 root root    432 Mar  2 23:01 modules.alias
-rw-r--r-- 1 root root    343 Mar  2 23:01 modules.alias.bin
-rw-r--r-- 1 root root  14848 Mar  2 23:01 modules.builtin
-rw-r--r-- 1 root root  12388 Mar  2 23:01 modules.builtin.alias.bin
-rw-r--r-- 1 root root  16700 Mar  2 23:01 modules.builtin.bin
-rw-r--r-- 1 root root 137178 Mar  2 23:01 modules.builtin.modinfo
-rw-r--r-- 1 root root    251 Mar  2 23:01 modules.dep
-rw-r--r-- 1 root root    512 Mar  2 23:01 modules.dep.bin
-rw-r--r-- 1 root root      0 Mar  2 23:01 modules.devname
-rw-r--r-- 1 root root     68 Mar  2 23:01 modules.order
-rw-r--r-- 1 root root     55 Mar  2 23:01 modules.softdep
-rw-r--r-- 1 root root   4680 Mar  2 23:01 modules.symbols
-rw-r--r-- 1 root root   5227 Mar  2 23:01 modules.symbols.bin
lrwxrwxrwx 1 root root     28 Mar  2 23:01 source -> /usr/src/linux-6.1.74-gentoo
drwxr-xr-x 1 root root    138 Feb 19 13:43 video


Running the command below didn't provide any output which means it was successful.
Code:
modprobe x86_pkg_temp_thermal


Code:
lsmod
Module                  Size  Used by
nvidia_uvm           1376256  0
nvidia_drm             65536  4
nvidia_modeset       1261568  7 nvidia_drm
nvidia              55943168  311 nvidia_uvm,nvidia_modeset
efivarfs               24576  1

_________________
[<<$>>]
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Tue Mar 05, 2024 4:28 pm    Post subject: Reply with quote

You're trying to load (specific) modules via /etc/modules.d/ or /etc/conf.d/modules or something like that?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Mar 05, 2024 4:43 pm    Post subject: Reply with quote

myga

Do you get any hits with
Code:
grep -R 5.15.88 /etc

The right answer is no.
_________________
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
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Tue Mar 05, 2024 7:24 pm    Post subject: Reply with quote

Rather than:
Code:
modprobe x86_pkg_temp_thermal

try:
Code:
modinfo x86_pkg_temp_thermal

That lists both library path and the (erroneous) version magic.
_________________
Greybeard
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Wed Mar 06, 2024 2:22 am    Post subject: Reply with quote

NeddySeagoon wrote:
myga

Do you get any hits with
Code:
grep -R 5.15.88 /etc

The right answer is no.


Code:
# grep -R "5.15.88" /etc

/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/fs/efivarfs/efivarfs.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/nf_log_syslog.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_LOG.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_addrtype.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_mark.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_nat.ko

_________________
[<<$>>]
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Wed Mar 06, 2024 2:24 am    Post subject: Reply with quote

Goverp wrote:
Rather than:
Code:
modprobe x86_pkg_temp_thermal

try:
Code:
modinfo x86_pkg_temp_thermal

That lists both library path and the (erroneous) version magic.


Code:
# modinfo x86_pkg_temp_thermal

name:           x86_pkg_temp_thermal
filename:       (builtin)
license:        GPL v2
file:           drivers/thermal/intel/x86_pkg_temp_thermal
author:         Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
description:    X86 PKG TEMP Thermal Driver
parm:           notify_delay_ms:User space notification delay in milli seconds. (int)

_________________
[<<$>>]
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Wed Mar 06, 2024 2:53 am    Post subject: Reply with quote

myga wrote:
Code:
# grep -R "5.15.88" /etc

/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/fs/efivarfs/efivarfs.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/nf_log_syslog.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_LOG.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_addrtype.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_mark.ko
/etc/modules-load.d/network.conf:/lib/modules/5.15.88-gentoo/kernel/net/netfilter/xt_nat.ko

These should not be full paths, just list the module name one per line. e.g. x86_pkg_temp_thermal for the first one.
If you didn't do this yourself, some tool has gone overboard.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Wed Mar 06, 2024 9:27 am    Post subject: Reply with quote

myga wrote:
...
Code:
# modinfo x86_pkg_temp_thermal

name:           x86_pkg_temp_thermal
filename:       (builtin)
license:        GPL v2
file:           drivers/thermal/intel/x86_pkg_temp_thermal
author:         Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
description:    X86 PKG TEMP Thermal Driver
parm:           notify_delay_ms:User space notification delay in milli seconds. (int)

Interesting; it shows you have that module compiled into the kernel, so the (incorrect) entry noted by grknight shouldn't be there..
_________________
Greybeard
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Thu Mar 07, 2024 3:11 am    Post subject: Reply with quote

Well, I took a semi-aggressive approach to try and solve this problem and I guess it solved this unusual issue! I still don't know how this happened, but anyway, all I did was rename the '/etc/modules-load.d/network.conf' file and reboot.

Thank you all for your help.


This may be unrelated, but I thought I'd add it in case anyone else has seen it.
When I rebooted, just past the GRUB screen, there was a black bar in the upper right corner with what I thought was an error saying something like "fstab...initrd..."! I couldn't read it that fast because it only lasted about a second.

I checked these logs (boot, kern.log, dmesg, messages, rc.log, & syslog) without any luck.
_________________
[<<$>>]
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