[SRU] sysdig-dkms 0.27.1-0.3ubuntu0.2: sysdig kernel module failed to build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysdig (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
sysdig fails to install if the user is using the hwe kernel which is v6.5 as the dkms module will fail to build during installation.
The error being:
/var/lib/
./include/
29 | #define THIS_MODULE (&__this_module)
| ~^~~~~~~~~~~~~~~
| |
| struct module *
/var/lib/
2484 | g_ppm_class = class_create(
| ^~~~~~~~~~~
In file included from ./include/
./include/
230 | struct class * __must_check class_create(const char *name);
| ~~~~~~~~~~~~^~~~
/var/lib/
2484 | g_ppm_class = class_create(
| ^~~~~~~~~~~~
./include/
230 | struct class * __must_check class_create(const char *name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/
[ Test Plan ]
This needs to be done on both the hwe kernel (v6.5) and the generic kernel (v5.15) to ensure it works on both.
* install sysdig (which will also install sysdig-dkms as dependency)
* successfull installation will mean the build failure has been fixed.
We need to do a basic test to see sysdig is still working.
* Give the command "sudo sysdig proc.name=ls" on one terminal
* On another terminal give the command "ls"
* The first terminal should now show the debug information about "ls".
[ Where problems could occur ]
* This change is only affecting the users of hwe kernel (v6.5) and the only change is in the way the class is created. The class will be created when the module is loaded. So, if there is no error in loading the module then the user should not see any regression in normal operation.
[ Other Info ]
* The change in the upstream linux kernel has been done via: https://<email address hidden>/
* Patch not forwarded upstream sysdig is now using "falcosecurity".
[ Original Bug Description ]
This appears to happen upon the installation of kernel updates. It has occurring for some time, having been witness on multiple systems running jammy (Ubuntu 22.04 LTS).
Please see Ubuntu and package version info below.
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_
ID=ubuntu
ID_LIKE=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
UBUNTU_
$ apt policy sysdig-dkms
sysdig-dkms:
Installed: 0.27.1-0.3ubuntu0.2
Candidate: 0.27.1-0.3ubuntu0.2
Version table:
*** 0.27.1-0.3ubuntu0.2 500
500 http://
500 http://
100 /var/lib/
0.
500 http://
500 http://
$ apt policy linux-image-$(uname -r)
linux-image-
Installed: 6.5.0-14.14~22.04.1
Candidate: 6.5.0-14.14~22.04.1
Version table:
*** 6.5.0-14.14~22.04.1 500
500 http://
500 http://
100 /var/lib/
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: sysdig-dkms 0.27.1-0.3ubuntu0.2
ProcVersionSign
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
DKMSKernelVersion: 6.5.0-15-generic
Date: Thu Jan 25 16:35:09 2024
DuplicateSignature: dkms:sysdig-
InstallationDate: Installed on 2023-01-27 (362 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitec
PackageVersion: 0.27.1-0.3ubuntu0.2
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.1ubuntu2.2
apt 2.4.11
SourcePackage: sysdig
Title: sysdig-dkms 0.27.1-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Changed in sysdig (Ubuntu Jammy): | |
status: | New → Confirmed |
Changed in sysdig (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.