-
Notifications
You must be signed in to change notification settings - Fork 165
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
fix(scap_engine_bpf): enable _64BIT_ARGS_SINGLE_REGISTER
on ARM64
#418
Conversation
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: d497cd9e29995e9c47f52cb258879a9008c2005e
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…falcosecurity#93) - Falcosecurity/libs falcosecurity#416: Support execve exit and clone child exit events on ARM64 - Falcosecurity/libs falcosecurity#418: Enable 64BIT_ARGS_SINGLE_REGISER on ARM64 - Also, disable userspace workarounds ARM, which attempted to compensate for the missing execve/clone exit events
Signed-off-by: Andrea Terzolo andrea.terzolo@polito.it
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area driver-bpf
/area libscap-engine-bpf
What this PR does / why we need it:
If we are on a
64-bit
architecture we need to enable the_64BIT_ARGS_SINGLE_REGISTER
macro and this is done correctly in our drivers. The problem is that when we compilescap
we enable this define only inx86
So on ARM64, when we fill the filler table in the libscap bpf engine we use the wrong fillers for some syscalls:
For
PPME_SYSCALL_PREAD_E
event we use thesys_pread64_e
filler instead ofsys_autofill
and this cause an event drop since we define thesys_pread64_e
in this way:Causing a
scap-open
output similar to this:Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: