Linux kernel source is not consist with current kernel image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
This is a general issue. in Ubuntu 22.10, our test case will build kernel module based on current kenel.
when we install linux-source, and build the kernel module out, found it can't be insert into current system.
just like this:
|0919_172629.
insmod: ERROR: could not insert module ddt_intel/
root cause:
linux-source-5.19.0 subversion is not the same as Linux RPLS01 5.19.0-15-generic which is default kernel.
we build this module based on default linux-source
#modinfo sync_core_timing.ko
filename: case/Processor/
license: GPL
srcversion: D5404C78B18A319
depends:
retpoline: Y
name: sync_core_timing
vermagic: 5.19.0 SMP preempt mod_unload modversions
parm: repeats:uint
a. installed linux-source
# apt-get install linux-source
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-source is already the newest version (5.19.0.15.15).
0 upgraded, 0 newly installed, 0 to remove and 387 not upgraded.
b. here is default installed linux-source version
# cat /usr/src/
# SPDX-License-
VERSION = 5
PATCHLEVEL = 19
SUBLEVEL = 0
EXTRAVERSION =
NAME = Superb Owl
c. here is default kernel installed information
# uname -a
Linux RPLS01 5.19.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 2 07:35:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[HW/SW Information]
Target Kernel: 5.19
Target Release: 22.10
Changed in ubuntu: | |
status: | New → Invalid |
I don't think you're supposed to be building modules against what linux-source package provides, but by installing 'linux- headers- generic' instead.