Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ignore kernel 6.7 on agent 12.19.0 and older #124

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

iurly
Copy link
Contributor

@iurly iurly commented Feb 6, 2024

Kernel 6.7 will cause the following errors on agent 12.19.0


kmod

/code/sysdig-rw/ppm_fillers.c: In function 'ppm_get_mm_exe_file':
/code/sysdig-rw/ppm_fillers.c:549:24: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
549 | down_read(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
/code/sysdig-rw/ppm_fillers.c:553:22: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
553 | up_read(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base


bpf

/code/sysdig-rw/bpf/fillers.h:2855:22: error: no member named 'i_mtime' in 'struct inode'; did you mean '__i_mtime'?
2855 | time = _READ(inode->i_mtime);
| ^~~~~~~
| __i_mtime

Both have already been fixed by agent 12.20.0,
so just silence them for older versions.

Kernel 6.7 will cause the following errors on agent 12.19.0

----
kmod
----
 /code/sysdig-rw/ppm_fillers.c: In function 'ppm_get_mm_exe_file':
 /code/sysdig-rw/ppm_fillers.c:549:24: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
   549 |         down_read(&mm->mmap_sem);
       |                        ^~~~~~~~
       |                        mmap_base
 /code/sysdig-rw/ppm_fillers.c:553:22: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
   553 |         up_read(&mm->mmap_sem);
       |                      ^~~~~~~~
       |                      mmap_base

---
bpf
---

 /code/sysdig-rw/bpf/fillers.h:2855:22: error: no member named 'i_mtime' in 'struct inode'; did you mean '__i_mtime'?
  2855 |         time = _READ(inode->i_mtime);
       |                             ^~~~~~~
       |                             __i_mtime

Both have already been fixed by agent 12.20.0,
so just silence them for older versions.
@iurly iurly merged commit 31f6ec4 into dev Feb 6, 2024
1 check passed
@iurly iurly deleted the ignore_6.7 branch February 6, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants