sysdig-dkms fails to build on arm64 - kernel 5.13

Bug #1945757 reported by Andrea Righi
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysdig (Ubuntu)
Fix Released
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

sysdig-dkms fails to build on arm64 with the latest impish kernel (5.13):

/var/lib/dkms/sysdig/0.27.1/build/main.c:1942:28: error: ‘SYSCALL_TABLE_ID0’ undeclared (first use in this function); did you mean ‘SYSCALL_TABLE_SIZE’?
 1942 | table_index = id - SYSCALL_TABLE_ID0;
      | ^~~~~~~~~~~~~~~~~
      | SYSCALL_TABLE_SIZE
/var/lib/dkms/sysdig/0.27.1/build/main.c:1942:28: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/sysdig/0.27.1/build/main.c: In function ‘syscall_exit_probe’:
/var/lib/dkms/sysdig/0.27.1/build/main.c:2019:28: error: ‘SYSCALL_TABLE_ID0’ undeclared (first use in this function); did you mean ‘SYSCALL_TABLE_SIZE’?
 2019 | table_index = id - SYSCALL_TABLE_ID0;
      | ^~~~~~~~~~~~~~~~~
      | SYSCALL_TABLE_SIZE

[Test case]

$ sudo apt install sysdig-dkms

[Fix]

SYSCALL_TABLE_ID0 needs to be properly defined for arm64.

[Where problems could occur]

If the syscall table base ID changes on arm64 we may experience kernel panics due to memory access violations or sysdig may report incorrect result.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Andrea Righi (arighi) wrote :
tags: added: patch
Changed in linux-oem-5.6 (Ubuntu Impish):
status: New → Fix Committed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

sysdig (0.27.1-0.2ubuntu1) impish; urgency=medium

  * Fix syscall table base ID on arm64 (LP: #1945757)

 -- Andrea Righi <email address hidden> Fri, 01 Oct 2021 11:20:07 +0200

affects: linux-oem-5.6 (Ubuntu) → sysdig (Ubuntu)
Changed in sysdig (Ubuntu Impish):
status: Fix Committed → Fix Released
Changed in sysdig (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Darren Dupre (dmdx86) wrote :

This is also a problem in 22.04/arm64. The diff here appears to fix the build issue there as well.

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.