Skip to content

Commit

Permalink
update to vm-memory 0.2.1
Browse files Browse the repository at this point in the history
In rust-vmm/vm-memory 0.2.0, the functions read_obj and write_obj
are not doing atomic accesses for all combinations of platform and
libc implementations. This is caused by everything being written
at a one byte granularity. The reads and writes eventually translate
to memcpy, which in some cases are not optimized to write at a higher
granularity. Since accesses are not guaranteed to be atomic, using
vm-memory in the virtio implementation causes undefined behavior
because the requirement of 2-byte aligned accesses of descriptor
indexes cannot be fulfilled.

The patch that fixes this issue is included in the 0.2.1 vm-memory
update.

There were no Firecracker releases after 2020-03-03; all existing
releases, including those used by AWS Lambda and AWS Fargate, are
not affected.

Related to: rust-vmm/vm-memory#93

Signed-off-by: Andreea Florescu <fandree@amazon.com>
  • Loading branch information
andreeaflorescu authored and dianpopa committed Aug 5, 2020
1 parent 52e9018 commit 79b4d6c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79b4d6c

Please sign in to comment.