Skip to content

Conversation

@phip1611
Copy link
Member

@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
@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

2 participants