Skip to content

multiboot2: model MBI as DST #155

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

Merged
merged 3 commits into from
Jun 22, 2023
Merged

multiboot2: model MBI as DST #155

merged 3 commits into from
Jun 22, 2023

Conversation

phip1611
Copy link
Member

@phip1611 phip1611 commented Jun 21, 2023

This is an improvement that enables better memory checks by miri. Furthermore, it is technically the right way to model this in Rust.

Hopefully, eventually, this will also simplify #128 #117

This change is entirely internal, and it won't add more breaking changes to the next release.

This is an improvement that enables better memory checks by miri. Furthermore,
it is technically the right to model this in Rust.
@phip1611 phip1611 self-assigned this Jun 21, 2023
@phip1611
Copy link
Member Author

phip1611 commented Jun 22, 2023

Unfortunately, this still doesn't satisfy miri. &*ptr in TagTrait::from_base_tag is still causing problems. Miri reports

trying to retag from <208001> for SharedReadOnly permission at alloc80640[0x8], but that tag does not exist in the borrow stack for this location - this error occurs as part of retag at alloc80640[0x0..0x10]

The MR is, however, still a big improvement and satisfies at least a few problems reported by miri

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