-
Notifications
You must be signed in to change notification settings - Fork 56
[Bug] Assertion failed when parsing EFI Multiboot memory region header #215
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
Comments
Yep, my fault. Sorry! UEFI doesn't want you to ever rely on In the spec, this is not really that clear, but in the implementation, it is. https://github.com/tianocore/edk2/blob/7142e648416ff5d3eac6c6d607874805f5de0ca8/MdeModulePkg/Core/PiSmmCore/Page.c#L1059 |
@junyang-zh Can you please check if #216 fixes the problems for you? |
Tried! #216 is fully functioning in our specific use case. Thanks very much for fixing it such quickly. |
Released as |
This fix relates to an upstream bug <rust-osdev/multiboot2#215>.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
This relates to the upstream bug: rust-osdev/multiboot2#215.
Uh oh!
There was an error while loading. Please reload this page.
Known versions
The bug can be reproduced with version
0.19.0
and0.20.0
. While0.18.1
is functioning.Bug behavior
Panicked with
at
multiboot2/multiboot2/src/memory_map.rs
Lines 328 to 337 in 3077c3b
Context
I used
let mb2_info = BootInformation::load(addr)
to load the header, and try to debug print it with"{:#?}", mb2_info
.The following information is printed:
And it stops printing with a panic here.
Environment
edk2-stable202402
;8.2.1
.I don't have time build a minimal reproduction demo. But one can do it under our kernel project https://github.com/asterinas/asterinas. There's a development image for the exact environment https://hub.docker.com/r/asterinas/asterinas.
Plans to fix it
We may use
0.18.1
for our project currently. I am happy to provide assistance for anyone taking it. I can also take it but I need guidance.The text was updated successfully, but these errors were encountered: