[Bug 2051270] [NEW] [SRU] sysdig-dkms 0.27.1-0.3ubuntu0.2: sysdig kernel module failed to build

Launchpad Bug Tracker 2051270 at bugs.launchpad.net
Fri Feb 2 20:03:10 UTC 2024


You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):

[ 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/dkms/sysdig/0.27.1/build/main.c: In function ‘sysdig_init’:
./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   29 | #define THIS_MODULE (&__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |
      |                      struct module *
/var/lib/dkms/sysdig/0.27.1/build/main.c:2484:36: note: in expansion of macro ‘THIS_MODULE’
 2484 |         g_ppm_class = class_create(THIS_MODULE, PROBE_DEVICE_NAME);
      |                                    ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
                 from ./include/linux/cdev.h:8,
                 from /var/lib/dkms/sysdig/0.27.1/build/main.c:26:
./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/var/lib/dkms/sysdig/0.27.1/build/main.c:2484:23: error: too many arguments to function ‘class_create’
 2484 |         g_ppm_class = class_create(THIS_MODULE, PROBE_DEVICE_NAME);
      |                       ^~~~~~~~~~~~
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:251: /var/lib/dkms/sysdig/0.27.1/build/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.5.0-15-generic/Makefile:2037: /var/lib/dkms/sysdig/0.27.1/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.0-15-generic'

[ 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://lore.kernel.org/all/20230313181843.1207845-4-gregkh@linuxfoundation.org/
 * 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_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

$ 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://gb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     0.27.1-0.3build1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages

$ apt policy linux-image-$(uname -r)
linux-image-6.5.0-14-generic:
  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://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: sysdig-dkms 0.27.1-0.3ubuntu0.2
ProcVersionSignature: Ubuntu 6.5.0-14.14~22.04.1-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
DKMSKernelVersion: 6.5.0-15-generic
Date: Thu Jan 25 16:35:09 2024
DuplicateSignature: dkms:sysdig-dkms:0.27.1-0.3ubuntu0.2:./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
InstallationDate: Installed on 2023-01-27 (362 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitecture: all
PackageVersion: 0.27.1-0.3ubuntu0.2
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt  2.4.11
SourcePackage: sysdig
Title: sysdig-dkms 0.27.1-0.3ubuntu0.2: sysdig kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: sysdig (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: sysdig (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-package jammy
-- 
[SRU] sysdig-dkms 0.27.1-0.3ubuntu0.2: sysdig kernel module failed to build
https://bugs.launchpad.net/bugs/2051270
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list