-
Notifications
You must be signed in to change notification settings - Fork 166
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(driver): null pointer deref in kernels >=6.5 #1409
Conversation
Please double check driver/API_VERSION file. See versioning. /hold |
b0084fb
to
b998515
Compare
9962dbc
to
392c00d
Compare
/milestone next-driver |
392c00d
to
ede9f2b
Compare
ede9f2b
to
897447e
Compare
{ | ||
return true; | ||
} | ||
|
||
// In kernels >=6.5 d_fsdata represents an ovl_entry_flag. | ||
unsigned long flags = (unsigned long)BPF_CORE_READ(dentry, d_fsdata); |
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.
I'd put this in the else
branch.
Signed-off-by: Roberto Scolaro <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]> Co-authored-by: Andrea Terzolo <[email protected]>
4b6c606
to
9575190
Compare
Signed-off-by: Roberto Scolaro <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]> Co-authored-by: Andrea Terzolo <[email protected]>
9575190
to
8066b9d
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
LGTM label has been added. Git tree hash: 1c96a99b3fa1876dfca6e21ecb9b0bb3bffa36ec
|
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, FedeDP, 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 |
/unhold |
Github PR mention works the other way around I thought it did: #1960 (comment) |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area driver-kmod
/area driver-bpf
/area driver-modern-bpf
Does this PR require a change in the driver versions?
/version driver-SCHEMA-version-patch
What this PR does / why we need it:
This fixes a null pointer deref in kernels >= 6.5.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: