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

[Backport v3.5-branch] posix: eventfd: Fix unsetting internal flags in ioctl #71459

Closed
wants to merge 2 commits into from

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Apr 13, 2024

Backport 325f22a~2..325f22a from #71344.

Fixes #71399

Commit e6eb0a7 ("posix: eventfd: revise locking, signaling, and
allocation") introduced a regression where the internal flags of an
event file descriptor would be erased when calling the F_SETFL ioctl
operation.

This includes the flag EFD_IN_USE_INTERNAL which determines whether
this file descriptor has been opened, thus effectively closing the
eventfd whenever one tries to change a flag.

Signed-off-by: Celina Sophie Kalus <[email protected]>
(cherry picked from commit 5bd86ea)
Add a test to protect against future regressions in the ioctl F_SETFL
operation of eventfd. Flags are set and unset and validity of the file
descriptor is checked by reading and writing.

Signed-off-by: Celina Sophie Kalus <[email protected]>
(cherry picked from commit 325f22a)
@zephyrbot zephyrbot requested a review from cfriedt as a code owner April 13, 2024 10:00
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: POSIX POSIX API Library labels Apr 13, 2024
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jun 13, 2024
@github-actions github-actions bot closed this Jun 27, 2024
@nashif nashif deleted the backport-71344-to-v3.5-branch branch November 16, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library Backport Backport PR and backport failure issues Stale
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants