-
Notifications
You must be signed in to change notification settings - Fork 172
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
scap kernel module fails to build on Linux >= 6.13 #2277
Comments
Hi!
Basically, the In your case, all these modules fail to build thus the driver build proceeds as if all of these checks failed, not enabling the usage of correct APIs. Am not sure about what's causing the |
Hi. This is building with dkms. Worked ok for a long time, and I see it building OK with 6.12, but it fails with 6.13. You are correct in that the configuration is the part that is failing: with 6.12 I see these compile flags being used: |
Hi. The bug is here: Line 32 in 51410de
Prior to 6.13, this is evaluated in the kernel source directory, and the code works as intended. However, in 6.13 the kbuild logic changed, and this is evaluated in the Thanks |
One "fix" is to replace
|
Hi! Thanks, this is the commit that introduced the change, i think: torvalds/linux@13b2548 |
/milestone next-driver |
@dkogan would you mind testing using:
?
|
It won't work; can you try invoking dkms with:
where |
Hi. Notes:
|
Also, Linus's commit says to use either |
ALSO, I'd like to clearly point out that I'm using Debian and its packaged kernel sources (in the |
I just tried something else that apparently does not work:
It looks at |
Did you try #2277 (comment) by chance? I 🙏 that can fix the issue, but am not 💯 sure! EDIT: we use this very same method to make dkms build in |
Hi. I tried that; it didn't help. But even if it did, it isn't a viable solution because In the commit in the linux tree, they say to use |
I am not on 6.13 unfortunately, so i cannot test :/ |
OK. It sounds like we need a bit of time to find a generic solution. In the meantime I added a patch to the Debian build that works on Debian: https://salsa.debian.org/debian/falcosecurity-libs/-/blob/5c10309ed6c56b92954a6d24ff957486f725f393/debian/patches/kernel-module-builds-in-6.13.patch Here I use |
Thanks for spotting the bug and taking the time to report and debug it. Let's see if we get more feedback on this one to understand the best way to proceed. |
I also encountered an error when compiling the ebpf probe:
|
Describe the bug
scap fails to build. Here's a bug report showing the failure with falcosecurity-libs 0.18.1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093098
I just tried with 0.20.0, and I see the same failure
How to reproduce it
Build against a recent-enough kernel
Environment
Debian amd64.
Thanks.
The text was updated successfully, but these errors were encountered: