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

[MODERN_EBPF] failure in kernels that don't define open_how.flags #3417

Open
Andreagit97 opened this issue Nov 27, 2024 · 2 comments
Open

[MODERN_EBPF] failure in kernels that don't define open_how.flags #3417

Andreagit97 opened this issue Nov 27, 2024 · 2 comments
Labels

Comments

@Andreagit97
Copy link
Member

Andreagit97 commented Nov 27, 2024

auxmap__store_u32_param(auxmap, open_flags_to_scap(how.flags));
278: <invalid CO-RE relocation>
failed to resolve CO-RE relocation <byte_off> [1685] struct open_how.flags (0:0 @ offset 0)
processed 232 insns (limit 1000000) max_states_per_insn 0 total_states 13 peak_states 13 mark_read 5
-- END PROG LOAD LOG --
Wed Nov 27 13:23:03 2024: [libs]: libbpf: prog 'openat2_e': failed to load: -22
Wed Nov 27 13:23:03 2024: [libs]: libbpf: failed to load object 'bpf_probe'
Wed Nov 27 13:23:03 2024: [libs]: libbpf: failed to load BPF skeleton 'bpf_probe': -22
Wed Nov 27 13:23:03 2024: [libs]: libpman: failed to load BPF object (errno: 22 | message: Invalid argument)
Wed Nov 27 13:23:03 2024: An error occurred in an event source, forcing termination...
Wed Nov 27 13:23:03 2024: Stopping capture for event source 'syscall'
Wed Nov 27 13:23:03 2024: [libs]: 
n_evts:49

Bests regards,

Originally posted by @salem017 in #3323 (comment)

@salem017
Copy link

salem017 commented Nov 27, 2024

there is some details.
Wed Nov 27 16:18:56 2024: The --cri option is deprecated and will be removed in Falco 0.40.0. Use -o container_engines.cri.sockets[]=<socket_path> instead. Wed Nov 27 16:18:56 2024: Falco version: 0.39.2 (x86_64) Wed Nov 27 16:18:56 2024: CLI args: /usr/bin/falco --cri /var/run/docker.sock --cri /run/containerd/containerd.sock --cri /run/crio/crio.sock -pk Wed Nov 27 16:18:56 2024: Falco initialized with configuration files: Wed Nov 27 16:18:56 2024: /etc/falco/config.d/engine-kind-falcoctl.yaml | schema validation: ok Wed Nov 27 16:18:56 2024: /etc/falco/falco.yaml | schema validation: ok Wed Nov 27 16:18:56 2024: System info: Linux version 4.18.0-372.119.1.el8_6.x86_64 ([email protected]) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC)) #1 SMP Fri Aug 9 17:13:36 EDT 2024 Wed Nov 27 16:18:56 2024: Enabled container engine 'docker' Wed Nov 27 16:18:56 2024: Enabled container engine 'podman' Wed Nov 27 16:18:56 2024: Enabled container engine 'CRI' Wed Nov 27 16:18:56 2024: Enabled container engine 'lxc' Wed Nov 27 16:18:56 2024: Enabled container engine 'libvirt_lxc' Wed Nov 27 16:18:56 2024: Enabled container engine 'bpm' Wed Nov 27 16:18:56 2024: Enabled container runtime socket at '/var/run/docker.sock' via CLI args Wed Nov 27 16:18:56 2024: Enabled container runtime socket at '/run/containerd/containerd.sock' via CLI args Wed Nov 27 16:18:56 2024: Enabled container runtime socket at '/run/crio/crio.sock' via CLI args Wed Nov 27 16:18:56 2024: Configured rules filenames: Wed Nov 27 16:18:56 2024: /etc/falco/falco_rules.yaml Wed Nov 27 16:18:56 2024: /etc/falco/falco-incubating_rules.yaml Wed Nov 27 16:18:56 2024: /etc/falco/falco-sandbox_rules.yaml Wed Nov 27 16:18:56 2024: /etc/falco/falco_extended_rules.yaml Wed Nov 27 16:18:56 2024: Loading rules from: Wed Nov 27 16:18:56 2024: /etc/falco/falco_rules.yaml | schema validation: ok Wed Nov 27 16:18:56 2024: /etc/falco/falco-incubating_rules.yaml | schema validation: ok Wed Nov 27 16:18:56 2024: /etc/falco/falco-sandbox_rules.yaml | schema validation: ok Wed Nov 27 16:18:57 2024: /etc/falco/falco_extended_rules.yaml | schema validation: ok Wed Nov 27 16:18:57 2024: /etc/falco/falco_extended_rules.yaml: Ok, with warnings 12 Warnings:

Bests regards

@salem017
Copy link

env: Openshift cluster
Behavior: crashloopback and falco never start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants