Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910717 - sys-kernel/gentoo-sources-6.1.19 modprobe could not insert 'vhba': Unknown symbol in module, or unknown parameter
Summary: sys-kernel/gentoo-sources-6.1.19 modprobe could not insert 'vhba': Unknown sy...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-23 10:58 UTC by Plüss Roland
Modified: 2023-07-26 13:47 UTC (History)
2 users (show)

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


Attachments
emerge info (emerge--info.txt,7.56 KB, text/plain)
2023-07-23 10:58 UTC, Plüss Roland
Details
kernel config (.config,134.00 KB, text/plain)
2023-07-25 14:24 UTC, Plüss Roland
Details
console log emering vhba (remerge.log,7.77 KB, text/x-log)
2023-07-26 10:08 UTC, Plüss Roland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2023-07-23 10:58:48 UTC
Created attachment 866002 [details]
emerge info

1) emerge -v vhba
2) modprobe vhba

> modprobe: ERROR: could not insert 'vhba': Unknown symbol in module, or unknown parameter (see dmesg)

> dmes ...
> [ 7413.086446] vhba: Unknown symbol preempt_count_sub (err -2)

> uname -a
> Linux dragonworld 6.1.19-gentoo #2 SMP PREEMPT_DYNAMIC Mon May  1 12:52:12 CEST 2023 x86_64 AMD Ryzen 7 7700X 8-Core Processor AuthenticAMD GNU/Linux
Comment 1 Ionen Wolkens gentoo-dev 2023-07-23 15:35:02 UTC
That's a pretty old kernel, if you never replace it and clean old modules, it's possible you still have a old version of the vhba module at the old location and it's loading that one instead (portage has protection for these and does not remove them).

I think(?) old would be /lib/modules/6.1.19*/misc/vhba.ko, while the new likely-not-broken one will be extra/vhba.ko

`find /lib/modules -name vhba.ko` if in doubt

I did try to have a fix for issues like that but it ended up causing issues with dracut instead and got reverted.
Comment 2 Plüss Roland 2023-07-23 17:24:33 UTC
Pretty old? It's from June 18th. I would not call this old.

I removed now all module directories except the one of 6.1.19 . I re-emerged vhba and modprobe it again but the same error happens. So it's not old module directories causing the problem.
Comment 3 Plüss Roland 2023-07-23 17:25:43 UTC
And the file name of the module is: /lib/modules/6.1.19-gentoo/block/vhba.ko
Comment 4 Ionen Wolkens gentoo-dev 2023-07-23 19:03:55 UTC
(In reply to Plüss Roland from comment #2)
> Pretty old? It's from June 18th. I would not call this old.
I guess, but it's 19 versions behind the current stable 6.1.38, and is gone from the tree. Fortunately I don't think(?) that one was affected vulnerabilities, albeit cleaned kernels often are.

Tend to be easier for us if testing against the current kernels though.

(In reply to Plüss Roland from comment #3)
> And the file name of the module is: /lib/modules/6.1.19-gentoo/block/vhba.ko
That's the only one then? I guess it's not what I thought it may be then.

Given you are using stable I guess this is still the old ebuild anyway.
Comment 5 Mike Pagano gentoo-dev 2023-07-25 12:28:44 UTC
Attach your .config, please
Comment 6 Plüss Roland 2023-07-25 14:24:18 UTC
Created attachment 866184 [details]
kernel config
Comment 7 Mike Pagano gentoo-dev 2023-07-25 17:36:56 UTC
(In reply to Plüss Roland from comment #6)
> Created attachment 866184 [details]
> kernel config

I tested with your config and gentoo-sources-6.1.41 and had no issue loading the module

[Jul25 13:24] vhba: loading out-of-tree module taints kernel.
[  +0.000912] scsi host5: vhba
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-07-26 04:46:01 UTC
I'm sorry for asking the obvious but did you rebuild vhba against the kernel you are currently running?  Please double-check vhba build log that it's being built against the correct kernel.
Comment 9 Andrey Aleksandrovich 2023-07-26 09:53:17 UTC
Also it could be the reason that kernel and module were compiled by different gcc (versions/USE).
Comment 10 Plüss Roland 2023-07-26 10:08:02 UTC
Created attachment 866300 [details]
console log emering vhba
Comment 11 Plüss Roland 2023-07-26 10:08:17 UTC
Yes, I emerged it multiple times during this bug report.
Comment 12 Ionen Wolkens gentoo-dev 2023-07-26 10:41:27 UTC
My impression is as mgorny says, perhaps version is the same but your built kernel is mismatching with the one you have installed (aka may have some differences and makes it so it builds with some symbols that aren't available at runtime).

wrt gcc it also wouldn't hurt to `make clean` your kernel, then make && make install it back, and boot that one

Albeit while doing all this may as well just upgrade your kernel too.
Comment 13 Ionen Wolkens gentoo-dev 2023-07-26 10:55:10 UTC
(In reply to Plüss Roland from comment #10)
> Created attachment 866300 [details]
> console log emering vhba
Does not seem to be the only issue too, aka:

 * Updating module dependencies for 6.1.19-gentoo ...
depmod: WARNING: //lib/modules/6.1.19-gentoo/kernel/drivers/video/backlight/lcd.ko needs unknown symbol fb_unregister_client
depmod: WARNING: //lib/modules/6.1.19-gentoo/kernel/drivers/video/backlight/lcd.ko needs unknown symbol fb_register_client
depmod: WARNING: //lib/modules/6.1.19-gentoo/kernel/drivers/virtio/virtio_pci.ko needs unknown symbol pci_vfs_assigned
...

Just seems things have gotten out of sync, some of these may still load but that'd means depmod is getting wrong information.
Comment 14 Plüss Roland 2023-07-26 11:50:41 UTC
I rebuild the new kernel. Had first problems that the module could not be loaded due to exec format error but after a couple of rebuilding in a loop it worked. Kinda unstable getting that module to work but it eventually worked.
Comment 15 Mike Pagano gentoo-dev 2023-07-26 13:47:52 UTC
Seems this is resolved now, but I would take a close look at the health of your hardware.  This is a normal process that should not have this level of variability.