falcosecurity / falco

Cloud Native Runtime Security
https://falco.org
Apache License 2.0
7.38k stars 902 forks source link

Falco won't install on some Ubuntu 20.04 (linux 5.4.0) cluster nodes with PPM_IOCTL_GET_API_VERSION complaint #2071

Closed jrabbit closed 2 years ago

jrabbit commented 2 years ago

Describe the bug If you install falco using helm chart v 1.19.1 and falco 0.32.0 some nodes will never be ready

How to reproduce it

helm install falco falcosecurity/falco starts, but certain pods will never stop being in restart loop reporting "Runtime error: Kernel module does not support PPM_IOCTL_GET_API_VERSION. Exiting." after failing to build the module with gcc but success with other versions of gcc.

Expected behavior Ideally falco loads a working driver.

Illustrative screenshot image Environment

Additional context

Originally from #1941 but doesn't involve minikube

jasondellaluce commented 2 years ago

This usually happens if you are running a recent version of Falco with an older version of the kernel drivers. The way to fix this should be to uninstall you kernel modules and update them.

jrabbit commented 2 years ago

We can't. Falco keeps spawning new binaries even when unscheduled from the cluster. The module is constantly in use and can't be rmmod'ed. Killing falco then immediately rmmoding doesn't even fix the problem, just loads a new(?) broken driver. e: Further problems with that diagnosis is this failed on brand new nodes that never ran Falco before.

jrabbit commented 2 years ago

Found more falco instances running, seems to work right once they were removed