Skip to content
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

mm/shm/shmget: Zero allocated shared memory pages when created. #10566

Merged
merged 1 commit into from Sep 11, 2023

Conversation

g2gps
Copy link
Contributor

@g2gps g2gps commented Sep 11, 2023

Summary

Modification based on opengroup's description for shmget: "When the shared memory segment is created, it shall be initialized with all zero values."

Link to documentation page for shmget: https://pubs.opengroup.org/onlinepubs/9699919799/

Impact

XSI shared memory page's values are set to zero when IPC_CREAT is specified and the page doesn't already exist.

Testing

Modification based on opengroup's description for shmget: "When the shared memory segment is created, it shall be initialized with all zero values."

Link to documentation page for shmget: https://pubs.opengroup.org/onlinepubs/9699919799/
@xiaoxiang781216
Copy link
Contributor

let's ignore the temp ci failure.

@xiaoxiang781216 xiaoxiang781216 merged commit 531e5c2 into apache:master Sep 11, 2023
11 of 26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to core in Release Notes - 12.3.0 Sep 27, 2023
@jerpelea jerpelea moved this from core to done in Release Notes - 12.3.0 Oct 4, 2023
@g2gps g2gps deleted the shmget-zero branch October 25, 2023 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants