-
Notifications
You must be signed in to change notification settings - Fork 114
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
Update Rust deps #4596
Update Rust deps #4596
Conversation
6069d7f
to
18efdb2
Compare
bb4c26e
to
665f720
Compare
This was quite painful, and still some crates were not updatable in the end, we need to do another pass soon... |
20f5b3b
to
a58eb99
Compare
6780e41
to
24117f8
Compare
@andrisaar @conradgrobler tests seem to fail consistently after this update. Below are the logs. Can you think of anything that may be causing it?
|
The error suggests it happens rather early in the boot process (we're creating file systems and whatnot), so I'd suspect the change to |
oak_containers_stage1/src/dice.rs
Outdated
@@ -109,7 +106,7 @@ fn read_stage0_dice_data(start: PhysAddr) -> anyhow::Result<Stage0DiceData> { | |||
length.try_into()?, | |||
ProtFlags::PROT_READ | ProtFlags::PROT_WRITE, | |||
MapFlags::MAP_SHARED, | |||
dice_file.as_raw_fd(), | |||
Some(dice_file), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be something like Some(dice_file.as_fd())
or Some(&dice_file)
. The current implementation consumes dice_file
, which I think means that it is closed by the time we try to access it by reading from the mmap
ed memory range.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Conrad, great catch, that seems to be exactly the problem! 💯
90f1cd6
to
2f6a8f7
Compare
2f6a8f7
to
484f11d
Compare
No description provided.