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

vfs: Change dir API to place directory in a pin rather than returning it bv value #104

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Aug 21, 2024

This is a breaking change; applications that used the old API were prone to broken file system linked lists and thus UB with some file systems (whose data in the directory struct was not the moral equivalent of Unpin).

Closes: https://gitlab.com/etonomy/riot-wrappers/-/issues/8

Note that I don't manage to crash the system with the original issue's description any more -- most likely, Rust/LLVM nowadays does more optimizations that avoid moving things, and thus avoids the bug by happenstance.

… it by value

This is a breaking change; applications that used the old API were prone
to broken file system linked lists and thus UB with some file systems
(whose data in the directory struct was not the moral equivalent of
Unpin).

Closes: https://gitlab.com/etonomy/riot-wrappers/-/issues/8
@chrysn chrysn force-pushed the vfs-no-unpin branch 6 times, most recently from 587afa5 to faddcbf Compare August 22, 2024 14:36
@chrysn
Copy link
Member Author

chrysn commented Aug 22, 2024

CI passes with the current faddcbf version. Rolling back to not have the "DO NOT MERGE" in (CI will fail then) so that the PR will be recognized as merged when #109 is merged.

@chrysn chrysn merged commit 1a5f999 into main Aug 22, 2024
0 of 16 checks passed
@chrysn chrysn deleted the vfs-no-unpin branch August 22, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant