falcosecurity-scap-dkms failed to build on N-oem-6.10

Bug #2071301 reported by Po-Hsu Lin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
falcosecurity-libs (Ubuntu)
Fix Released
Undecided
GuoqingJiang
Noble
Fix Released
Undecided
Unassigned
Oracular
Fix Released
Undecided
GuoqingJiang
linux-oem-6.11 (Ubuntu)
Invalid
Undecided
Unassigned
Noble
Invalid
Undecided
Unassigned
Oracular
Invalid
Undecided
Unassigned

Bug Description

This DKMS is required for ubuntu_sysdig_smoke_test.

Build log:
DKMS make.log for scap-0.15.1 for kernel 6.10.0-1005-oem (x86_64)
Thu Jun 27 04:29:18 UTC 2024
make: Entering directory '/usr/src/linux-headers-6.10.0-1005-oem'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
  You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
[configure-kmod] Including /var/lib/dkms/scap/0.15.1/build//configure/DEVNODE_ARG1_CONST/Makefile.inc /var/lib/dkms/scap/0.15.1/build//configure/ACCESS_OK_2/Makefile.inc /var/lib/dkms/scap/0.15.1/build//configure/CLASS_CREATE_1/Makefile.inc
[configure-kmod] Setting HAS_DEVNODE_ARG1_CONST flag
[configure-kmod] Setting HAS_ACCESS_OK_2 flag
[configure-kmod] Setting HAS_CLASS_CREATE_1 flag
  CC [M] /var/lib/dkms/scap/0.15.1/build/main.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/dynamic_params_table.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/fillers_table.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/flags_table.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/ppm_events.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/ppm_fillers.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/event_table.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/syscall_table64.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/ppm_cputime.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/ppm_tp.o
  CC [M] /var/lib/dkms/scap/0.15.1/build/syscall_ia32_64_map.o
/var/lib/dkms/scap/0.15.1/build/ppm_cputime.c:353:10: warning: no previous prototype for ‘nsec_to_clock_t’ [-Wmissing-prototypes]
  353 | uint64_t nsec_to_clock_t(uint64_t x)
      | ^~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/main.c: In function ‘drop_nostate_event’:
/var/lib/dkms/scap/0.15.1/build/main.c:1653:22: error: implicit declaration of function ‘fd_is_open’; did you mean ‘finish_open’? [-Werror=implicit-function-declaration]
 1653 | !fd_is_open(close_fd, fdt)
      | ^~~~~~~~~~
      | finish_open
/var/lib/dkms/scap/0.15.1/build/main.c: At top level:
/var/lib/dkms/scap/0.15.1/build/main.c:2829:5: warning: no previous prototype for ‘scap_init’ [-Wmissing-prototypes]
 2829 | int scap_init(void)
      | ^~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/main.c:2992:6: warning: no previous prototype for ‘scap_exit’ [-Wmissing-prototypes]
 2992 | void scap_exit(void)
      | ^~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:509:14: warning: no previous prototype for ‘ppm_get_mm_exe_file’ [-Wmissing-prototypes]
  509 | struct file *ppm_get_mm_exe_file(struct mm_struct *mm)
      | ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:550:15: warning: no previous prototype for ‘ppm_get_mm_counter’ [-Wmissing-prototypes]
  550 | unsigned long ppm_get_mm_counter(struct mm_struct *mm, int member)
      | ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:728:5: warning: no previous prototype for ‘accumulate_argv_or_env’ [-Wmissing-prototypes]
  728 | int accumulate_argv_or_env(const char __user * __user *argv,
      | ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:874:6: warning: no previous prototype for ‘ppm_is_upper_layer’ [-Wmissing-prototypes]
  874 | bool ppm_is_upper_layer(struct file *exe_file){
      | ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:2269:5: warning: no previous prototype for ‘f_sys_send_e_common’ [-Wmissing-prototypes]
 2269 | int f_sys_send_e_common(struct event_filler_arguments *args, int *fd)
      | ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.15.1/build/ppm_fillers.c:2405:5: warning: no previous prototype for ‘f_sys_recv_x_common’ [-Wmissing-prototypes]
 2405 | int f_sys_recv_x_common(struct event_filler_arguments *args, int64_t *retval)
      | ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/scap/0.15.1/build/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.10.0-1005-oem/Makefile:1939: /var/lib/dkms/scap/0.15.1/build] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.10.0-1005-oem'

Changed in falcosecurity-libs (Ubuntu):
assignee: nobody → GuoqingJiang (guoqingjiang)
Revision history for this message
GuoqingJiang (guoqingjiang) wrote :

We probably need this commit to fix the issue

From fac87101d6789765bed434bc84b97c66f1bcc8dc Mon Sep 17 00:00:00 2001
From: Federico Di Pierro <email address hidden>
Date: Thu, 30 May 2024 11:36:32 +0200
Subject: [PATCH] fix(driver): fix build of kmod on linux 6.10.

Signed-off-by: Federico Di Pierro <email address hidden>

Changed in falcosecurity-libs (Ubuntu):
status: New → In Progress
Revision history for this message
GuoqingJiang (guoqingjiang) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0.15.1-4ubuntu2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Timo Aaltonen (tjaalton)
affects: linux-oem-6.10 (Ubuntu) → linux-oem-6.11 (Ubuntu)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

this needs to be fixed in oracular first, modified the changelog for that

Changed in linux-oem-6.11 (Ubuntu):
status: New → Invalid
Revision history for this message
Dan Bungert (dbungert) wrote :

Looks like this is all set for Oracular, unsubscribing sponsors. Please re-subscribe when other uploads are desired.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Affecting Oracular 6.11.0-5 as well.

tags: added: 6.11 oracular
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package falcosecurity-libs - 0.15.1-4ubuntu2

---------------
falcosecurity-libs (0.15.1-4ubuntu2) oracular; urgency=medium

  * debian/patches/fix-driver-fix-build-of-kmod-on-linux-6.10.patch
    - Linux 6.10: fix build of kmod (LP: #2071301)

 -- Guoqing Jiang <email address hidden> Mon, 29 Jul 2024 10:17:05 +0800

Changed in falcosecurity-libs (Ubuntu Oracular):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in falcosecurity-libs (Ubuntu Noble):
status: New → Confirmed
Changed in linux-oem-6.11 (Ubuntu Noble):
status: New → Confirmed
Revision history for this message
Haifeng Xu (acnrcf) wrote :

Hi, masters. I have encountered the same problem in ubuntu 24.04. So how can we fix it now or we need to wait the release of new version?

Thanks.

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Checked with kernels hinted with this bug, and they don't have this issue any more:
* n/realtime-6.14 - 6.14.0-1006.6~24.04.1
* n/azure-6.11 - 6.11.0-1015.16~24.04.1
* n/gcp-6.11 - 6.11.0-1016.16~24.04.1
* n/hwe-6.11 - 6.11.0-28.28~24.04.1
* n/lowlatency-hwe-6.11 - 6.11.0-1015.16~24.04.2
* n/realtime-6.11 - 6.11.0-1011.11~24.04.1

Hints removed. Closing this bug.
If you are sill experiencing similar issue please open a new bug report. Thanks!

Changed in linux-oem-6.11 (Ubuntu Noble):
status: Confirmed → Invalid
Changed in ubuntu-kernel-tests:
status: New → Fix Released
Po-Hsu Lin (cypressyew)
Changed in falcosecurity-libs (Ubuntu Noble):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.