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

Bug #2071301 reported by Po-Hsu Lin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
falcosecurity-libs (Ubuntu)
In Progress
Undecided
GuoqingJiang
linux-oem-6.10 (Ubuntu)
New
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
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.