-
Notifications
You must be signed in to change notification settings - Fork 170
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(fillers): remove user-triggerable assertions in flag conversion code #1764
Conversation
Signed-off-by: Grzegorz Nosek <[email protected]>
Please double check driver/SCHEMA_VERSION file. See versioning. /hold |
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: c20a7fc4aa703f7a200a18439f745c0825343791
|
/milestone next-driver |
@@ -273,6 +273,7 @@ or GPL2.txt for full copies of the license. | |||
#define PPM_SHUT_RD 0 | |||
#define PPM_SHUT_WR 1 | |||
#define PPM_SHUT_RDWR 2 | |||
#define PPM_SHUT_UNKNOWN 0xffff |
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.
We should add the string mapping here:
Line 202 in 04d4cb7
const struct ppm_name_value shutdown_how[] = { |
This PR does not change the event schema, so there is no need to bump the On the other hand, if I understood correctly, this change patches the way the kernel-space<>user-space communicates and, thus, the driver API. Still, the change seems to be backward compatible, so we should only bump the patch number of the |
driver/API_VERSION
Outdated
@@ -1 +1 @@ | |||
8.0.2 | |||
8.0.1 |
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.
api_version--
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.
-ENOCOFFEE. Thanks! :)
For example, <linux/net.h> defines the constants as enum variants, not as preprocessor macros, making the original code work by accident (because SHUT_* are the same as PPM_SHUT_*). Signed-off-by: Grzegorz Nosek <[email protected]>
Signed-off-by: Grzegorz Nosek <[email protected]>
Signed-off-by: Grzegorz Nosek <[email protected]>
Signed-off-by: Grzegorz Nosek <[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: 210f652e793778e101ef41d27501f65112d4efaa
|
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, gnosek 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 driver-kmod
/area driver-bpf
/area driver-modern-bpf
Does this PR require a change in the driver versions?
API patch version bump? 🤷♂️
What this PR does / why we need it:
With debug builds, it's trivial to hit an ASSERT in fcntl or shutdown, just by passing invalid values for cmd or how, respectively.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: