Skip to content

Commit 05fc2a5

Browse files
committed
fixup! Allow the guest to manage its own stack
Revert a change to the snapshot hashing Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 1c0d887 commit 05fc2a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/hyperlight_host/src/sandbox/snapshot.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ fn hash(memory: &[u8], regions: &[MemoryRegion]) -> Result<[u8; 32]> {
147147
// Ignore [`MemoryRegion::region_type`], since it is extra
148148
// information for debugging rather than a core part of the
149149
// identity of the snapshot/workload.
150+
hasher.update(&usize::to_le_bytes(guest_len));
151+
hasher.update(&u32::to_le_bytes(rgn.flags.bits()));
150152
}
151153
// Ignore [`load_info`], since it is extra information for
152154
// debugging rather than a core part of the identity of the

0 commit comments

Comments
 (0)