-
Notifications
You must be signed in to change notification settings - Fork 162
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(tests, bpf): correct build and test case failures on s390x #1150
Conversation
Signed-off-by: Hendrik Brueckner <[email protected]>
The prctl GET_CHILD_SUBREAPER function stores the PID as `(int *) arg2`. Previously, the arg2 value has been read as `unsigned long` causing endianess issue on s390x resulting in test case failures. Change this to read an integer value similar as in modern BPF. Signed-off-by: Hendrik Brueckner <[email protected]>
Please double check driver/API_VERSION file. See versioning. |
Thank you for this PR @hbrueckner ! LGTM! |
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: a3df6ea4d6b7c4264c52227b2c8bae8949b2acb4
|
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
@@ -6715,8 +6716,9 @@ FILLER(sys_prctl_x, true) | |||
/* | |||
* arg2_int | |||
*/ | |||
bpf_probe_read_user(&arg2_int,sizeof(arg2_int),(void*)arg2); | |||
res = bpf_push_s64_to_ring(data, (int)arg2_int); | |||
reaper_attr = 0; |
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.
great catch, thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, hbrueckner 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 |
/milestone 5.1.0+driver |
What type of PR is this?
/kind bug
/kind failing-test
Any specific area of the project related to this PR?
/area driver-bpf
/area tests
Does this PR require a change in the driver versions?
What this PR does / why we need it:
Correct a build break on s390x due to a undefined variable. Also correctly read the
prctl GET_CHILD_SUBREAPER
value to avoid type/endianess issues.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: