-
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(modern): prevent CO-RE relocations when CONFIG_QUOTACTL is not defined #2042
Conversation
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
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
Thank you Andre! Great fix!
LGTM label has been added. Git tree hash: d3e3213dee9299f2d2fedb341806fe9b58e08f24
|
[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 |
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2042 +/- ##
=======================================
Coverage 74.30% 74.30%
=======================================
Files 253 253
Lines 30966 30966
Branches 5414 5410 -4
=======================================
Hits 23010 23010
+ Misses 7951 7949 -2
- Partials 5 7 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
X64 kernel testing matrix
ARM64 kernel testing matrix
|
Verified that it fixes the problem - thanks! |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area driver-modern-bpf
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
When
CONFIG_QUOTACTL
is not defined we need to avoid relocations on structs that are not defined likestruct if_dqblk
.Running
bpftool btf dump file /sys/kernel/btf/vmlinux format c | grep if_dqblk
against a kernel compiled withoutCONFIG_QUOTACTL
will show the absence ofstruct if_dqblk
and so we cannot relocate against it.Which issue(s) this PR fixes:
Fixes #2033
Special notes for your reviewer:
Does this PR introduce a user-facing change?: