-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-142779: Initialize reserved field for proper padding #142780
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
Conversation
The jitdump specification specifies a reserved field for padding. Initialize it so no garbage data is embedded in the jitdump files.
|
cc @pablogsal |
vstinner
left a comment
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.
LGTM
vstinner
left a comment
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.
perf_map_jit_write_header() allocates the header on the stack memory:
static void perf_map_jit_write_header(int pid, FILE* out_file) {
Header header; It's correct to initialize the reserved member to 0. Header structure says:
uint32_t reserved; // Reserved field (must be 0)|
Thanks @stratakis for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…GH-142780) The jitdump specification specifies a reserved field for padding. Initialize it so no garbage data is embedded in the jitdump files. (cherry picked from commit 77bf4ba) Co-authored-by: stratakis <cstratak@redhat.com>
…GH-142780) The jitdump specification specifies a reserved field for padding. Initialize it so no garbage data is embedded in the jitdump files. (cherry picked from commit 77bf4ba) Co-authored-by: stratakis <cstratak@redhat.com>
|
GH-144159 is a backport of this pull request to the 3.14 branch. |
|
GH-144160 is a backport of this pull request to the 3.13 branch. |
|
Merged, thanks for the fix. I backported the change to 3.13 and 3.14 branches. |
…2780) (#144160) gh-142779: Initialize reserved field for proper padding (GH-142780) The jitdump specification specifies a reserved field for padding. Initialize it so no garbage data is embedded in the jitdump files. (cherry picked from commit 77bf4ba) Co-authored-by: stratakis <cstratak@redhat.com>
|
The jitdump specification specifies a reserved field for padding.
Initialize it so no garbage data is embedded in the jitdump files.