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

init multiboot2-common and use same safe memory abstractions also in multiboot2-header crate #227

Merged
merged 9 commits into from
Aug 20, 2024

Conversation

phip1611
Copy link
Collaborator

@phip1611 phip1611 commented Aug 17, 2024

This inits a new multiboot2-common crate and workspace member. The ideas of the improvements in #226 have been generalized and can now also improve the situation in the multiboot2-header crate.

Now, (for real!) all unit tests pass Miri. I misleadingly made this claim already in #226 but I forgot a few #[cfg_attr(miri, ignore)] statements - sorry.

Further, lots of UB and memory issues have been resolved in the framebuffer tag and the elf section tag. This is a significant refactoring of the internals, and it guarantees memory safety now. Big success :)

A lot of UB resulted in old code from the early days.

This closes #160 and closes #145.

@phip1611 phip1611 marked this pull request as ready for review August 20, 2024 14:27
@phip1611 phip1611 force-pushed the mb-hdr branch 7 times, most recently from 00624c8 to 2cdbe5f Compare August 20, 2024 15:14
Although the commit history doesn't reflect it, this is the outcome
after drying dozens of designs in much more time than I'd like to
admit :D

However, although this is complex, it solves real problems and is a
true value-add. Also, it reflects so many findings and learnings.
This especially significantly changes the builder. The normal public API however
is only slightly affected.
This especially significantly changes the builder. The normal public API however
is only slightly affected.
Now, the last `#[cfg_attr(miri, ignore)]` is gone!
@phip1611 phip1611 merged commit a08365e into main Aug 20, 2024
28 checks passed
@phip1611 phip1611 deleted the mb-hdr branch August 20, 2024 15:19
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.

miri: improve current situation multiboot2-header: use DST for InformationRequest
1 participant