-
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(modern_bpf): fix args/env retrival in case of large args/env #1660
fix(modern_bpf): fix args/env retrival in case of large args/env #1660
Conversation
Signed-off-by: Roberto Scolaro <[email protected]>
c9baad4
to
067626e
Compare
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
/next-driver
LGTM label has been added. Git tree hash: 91343489eaa771e5661e92c9b2fe1c37248bea27
|
Signed-off-by: Roberto Scolaro <[email protected]>
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: 013296a9e08e3fcee6d7c24ae31cf6e72661cca3
|
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, incertum, therealbobo 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 |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area libscap-engine-modern-bpf
Does this PR require a change in the driver versions?
What this PR does / why we need it:
In case of an
execve
large args/env, this permits to correctly retrieve those. Otherwise no arg/env is retrieved.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
This behaviour is not 100% identical to the kmod behaviour: the kmod subtract the len of
argv[0]
when retriving args; on the other hand the modern bpf starts fromargv[1]
and tries to read the max amount allowed.Does this PR introduce a user-facing change?: