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

Falco 0.25.0-60+1efa4d3 - Segmentation fault (core dumped) when using K8s integration #1409

Closed
leogr opened this issue Sep 17, 2020 · 1 comment · Fixed by #1410
Closed

Comments

@leogr
Copy link
Member

leogr commented Sep 17, 2020

Describe the bug

Falco version 0.25.0-60+1efa4d3 process exits (Segmentation fault (core dumped)) when using K8s integration.

How to reproduce it

Just deploying Falco on Kubernetes using the current falcosecurity/falco:master image (version 0.25.0-60+1efa4d3) . Then the container will restart since the Falco process is exiting.

I also tried to manually run Falco from within the container, and I noticed the segfault:

root@falco-w9tcx:/# /usr/bin/falco --cri /run/containerd/containerd.sock -K /var/run/secrets/kubernetes.io/serviceaccount/token -k "https://$KUBERNETES_SERVICE_HOST" -pk
Thu Sep 17 16:00:10 2020: Falco version 0.25.0-60+1efa4d3 (driver version 73554b9c48b06612eb50494ee6fa5b779c57edc0)
Thu Sep 17 16:00:10 2020: Falco initialized with configuration file /etc/falco/falco.yaml
Thu Sep 17 16:00:10 2020: Loading rules from file /etc/falco/falco_rules.yaml:
Thu Sep 17 16:00:13 2020: Loading rules from file /etc/falco/falco_rules.local.yaml:
Thu Sep 17 16:00:18 2020: Starting internal webserver, listening on port 8765
Segmentation fault (core dumped)

It does not happen without the -k flag.

Expected behaviour

No segmentation fault.

Screenshots

Environment

  • Falco version: 0.25.0-60+1efa4d3
  • System info:
  • Cloud provider or hardware configuration:
  • OS:
  • Kernel:
    Linux x1 5.8.9-arch2-1 #1 SMP PREEMPT Sun, 13 Sep 2020 23:44:55 +0000 x86_64 GNU/Linux
  • Installation method:
    Helm chart or manual deployment on K8s (kind)

Additional context

Need further investigation.

The current version on the master branch misses this fix draios/sysdig#1686 which might be related to this issue.

@leogr leogr added the kind/bug label Sep 17, 2020
@leogr
Copy link
Member Author

leogr commented Sep 18, 2020

The problem occurs even just sending SIGINT:

root@falco-b8dl9:/# /usr/bin/falco -K /var/run/secrets/kubernetes.io/serviceaccount/token -k "https://$KUBERNETES_SERVICE_HOST" -pk
Fri Sep 18 11:31:47 2020: Falco version 0.25.0-60+1efa4d3 (driver version 73554b9c48b06612eb50494ee6fa5b779c57edc0)
Fri Sep 18 11:31:47 2020: Falco initialized with configuration file /etc/falco/falco.yaml
Fri Sep 18 11:31:47 2020: Loading rules from file /etc/falco/falco_rules.yaml:
Fri Sep 18 11:31:49 2020: Loading rules from file /etc/falco/falco_rules.local.yaml:
Fri Sep 18 11:31:53 2020: Starting internal webserver, listening on port 8765
^CFri Sep 18 11:32:06 2020: SIGINT received, exiting...
Events detected: 0
Rule counts by severity:
Triggered rules by rule name:
Syscall event drop monitoring:
   - event drop detected: 0 occurrences
   - num times actions taken: 0
Segmentation fault (core dumped)

@leogr leogr added this to the 0.26.0 milestone Sep 18, 2020
@leogr leogr changed the title wip: Segmentation fault (core dumped) - Falco version 0.25.0-60+1efa4d3 Falco 0.25.0-60+1efa4d3 - Segmentation fault (core dumped) when using K8s integration Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant