From 9dc15cb0d0405c596ae02dc733d51fe727e62090 Mon Sep 17 00:00:00 2001 From: Gerlando Falauto Date: Tue, 13 Aug 2024 16:24:08 +0200 Subject: [PATCH 1/2] disable driver creation for kernel 6.11 Ubuntu noble started featuring kernel 6.11.0-1001-oem which has the following issues: a) legacy eBPF In file included from /code/sysdig-rw/bpf/probe.c:27: /code/sysdig-rw/bpf/fillers.h:2871:22: error: no member named '__i_ctime' in 'struct inode' time = _READ(inode->__i_ctime); ~~~~~ ^ /code/sysdig-rw/bpf/plumbing_helpers.h:22:51: note: expanded from macro '_READ' bpf_probe_read_kernel(&_val, sizeof(_val), &P); \ which then causes other cascading errors Notice how as today, this issue has not been fixed b) kmod /code/sysdig-rw/main.c: In function 'drop_nostate_event': /code/sysdig-rw/main.c:1660:22: error: implicit declaration of function 'fd_is_open'; did you mean 'finish_open'? [-Werror=implicit-function-declaration] 1660 | !fd_is_open(close_fd, fdt) | ^~~~~~~~~~ | finish_open This issue has been fixed starting with 13.3.2. --- agent_ignorelist.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/agent_ignorelist.yaml b/agent_ignorelist.yaml index 2901bc6..d039bcc 100644 --- a/agent_ignorelist.yaml +++ b/agent_ignorelist.yaml @@ -76,3 +76,15 @@ ignorelist: probe_kinds: [ kmod ] matcher: generic skip_if: "{{ major|int == 6 and minor|int == 10 }}" + + - description: "kernel 6.11: no member named '__i_ctime' in 'struct inode'" + probe_versions: [ 12.20.0, 13.0.0, 13.0.1, 13.0.2, 13.0.3, 13.0.4, 13.1.0, 13.1.1, 13.2.0, 13.2.1, 13.3.0, 13.3.1, 13.3.2, 13.3.3, 13.4.0 ] + probe_kinds: [ legacy_ebpf ] + matcher: generic + skip_if: "{{ major|int == 6 and minor|int >= 11 }}" + + - description: "kernel 6.11: implicit declaration of function 'fd_is_open'; did you mean 'finish_open'?" + probe_versions: [ 12.20.0, 13.0.0, 13.0.1, 13.0.2, 13.0.3, 13.0.4, 13.1.0, 13.1.1, 13.2.0, 13.2.1, 13.3.0, 13.3.1 ] + probe_kinds: [ kmod ] + matcher: generic + skip_if: "{{ major|int == 6 and minor|int >= 11 }}" From 25d3614dde61056a47cb6cb07ad23347d258b1b7 Mon Sep 17 00:00:00 2001 From: Gerlando Falauto Date: Tue, 13 Aug 2024 17:39:42 +0200 Subject: [PATCH 2/2] group 6.11 together with 6.10 --- agent_ignorelist.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/agent_ignorelist.yaml b/agent_ignorelist.yaml index d039bcc..c853d5d 100644 --- a/agent_ignorelist.yaml +++ b/agent_ignorelist.yaml @@ -75,16 +75,10 @@ ignorelist: probe_versions: [ 12.20.0, 13.0.0, 13.0.1, 13.0.2, 13.0.3, 13.0.4, 13.1.0, 13.1.1, 13.2.0, 13.2.1, 13.3.0, 13.3.1 ] probe_kinds: [ kmod ] matcher: generic - skip_if: "{{ major|int == 6 and minor|int == 10 }}" + skip_if: "{{ major|int == 6 and minor|int >= 10 }}" - description: "kernel 6.11: no member named '__i_ctime' in 'struct inode'" probe_versions: [ 12.20.0, 13.0.0, 13.0.1, 13.0.2, 13.0.3, 13.0.4, 13.1.0, 13.1.1, 13.2.0, 13.2.1, 13.3.0, 13.3.1, 13.3.2, 13.3.3, 13.4.0 ] probe_kinds: [ legacy_ebpf ] matcher: generic skip_if: "{{ major|int == 6 and minor|int >= 11 }}" - - - description: "kernel 6.11: implicit declaration of function 'fd_is_open'; did you mean 'finish_open'?" - probe_versions: [ 12.20.0, 13.0.0, 13.0.1, 13.0.2, 13.0.3, 13.0.4, 13.1.0, 13.1.1, 13.2.0, 13.2.1, 13.3.0, 13.3.1 ] - probe_kinds: [ kmod ] - matcher: generic - skip_if: "{{ major|int == 6 and minor|int >= 11 }}"