What the review read and ran
An appendix to the milestone.
The crate
partsfoundry/address_space_layout at 9568826fc8bdcc07a44b6e227042a5483753a5d1, version 0.1.0,
no tag, a fresh clone of main. The census of milestone 1129 (the combine review) counted the
same commit. The lane read in full: Cargo.toml, README.md, CHANGELOG.md, docs/stranger-test.md,
src/lib.rs (643 lines, its tests included) and .github/mutants-exempts. It read
src/verification.rs for the harness list and the module documentation, and
.github/workflows/ci.yml.
The commands
The lane ran these on a Linux x86_64 host with rustc 1.100.0 and CARGO_TARGET_DIR outside the
clone. git status --short showed the clone clean afterward.
cargo buildpasses.cargo testpasses: 10 unit tests and 3 doctests.RUSTDOCFLAGS="-D warnings" cargo doc --no-depspasses with no warning.cargo clippy --all-targetspasses with no warning.cargo build --lib --target <target>passes forriscv64imac-unknown-none-elf,aarch64-unknown-none-softfloatandx86_64-unknown-none.cargo package --list --allow-dirtylists 49 files, 20 of them under.github/,.githooks/or named.gitignore(P2-5).grep -c 'kani::proof' src/verification.rsprints 11, andfalsifications/holds 11 patches, as the README says.grep -n '# Panics\|# Errors' src/lib.rsprints nothing, and# Examplesappears at lines 96, 231 and 334 (P1-3).- The crate declares no features, so there is one feature combination.
A scratch program that depends on the crate by path and on memory_addr at =0.4.1 printed:
check_image(IMAGE.start + 1, IMAGE.start + 2)isOk(())(P0-4).{:?}ofIMAGEisBand { start: 1610612736, end: 2130706432 }, and{:?}ofmemory_addr::va_range!(0x6000_0000usize..0x7f00_0000usize)isVA:0x60000000..VA:0x7f000000(P2-2).Band { start: 0x2000, end: 0x1000 }compiles,contains(0x1800)on it is false, andbytes()panics with "attempt to subtract with overflow" in a debug build (P0-1).service_window(SERVICE_WINDOWS.end - PAGE_BYTES)returns0x5ffff000(P0-2).check_image(IMAGE.start, IMAGE.start)refuses an empty image asOutsideBand.
The search for a comparator
On 2026-11-26 (UTC), https://crates.io/api/v1/crates?q=<words>&sort=recent-downloads&per_page=8
for each of: "address space layout", "memory layout", "memory map", "virtual address", "address
range", "memory region", "memory-addr" and "linker script memory". No result publishes one
system's process layout. The results that hold an address or a range type became the neighbors.
The lane measured static_assertions 1.1.0, const_panic 0.2.17 and rangemap 1.9.0 and set
them aside. The first two build compile-time assertions of any kind, and the third maps ranges to
values.
The neighbors read
The lane downloaded the four neighbors' .crate files from static.crates.io, at the versions
the block's table gives, and unpacked each apart from the others.
memory_addr0.4.1,src/range.rs,src/addr.rsandsrc/lib.rs.AddrRange<A>has publicstartandend. Itsnewis notconstand panics whenstart > end,try_newreturnsOption, andnew_uncheckedis aconst unsafe fn. Its methods areis_empty,size,contains,contains_range,contained_inandoverlaps. It hasTryFrom<Range<T>>withError = (),Default, andDebug,LowerHexandUpperHexwritten by hand. An empty range is valid. No dependencies,no_std.x86_640.15.5,src/addr.rsandsrc/structures/paging/page.rs:VirtAddr(u64)with a private field,const fn newwith a## Panicssection andconst fn try_newreturningResult<VirtAddr, VirtAddrNotValid>;VirtAddrNotValid(pub u64)implementsDebugand neitherDisplaynorError.PageRangehas publicstartandend, derivesClone,Copy,PartialEq,EqandHash, hasis_empty,len(pages) andsize(bytes), and is anIterator. Its manifest's features give the feature-name evidence.vm-memory0.18.0,src/region.rs: theGuestMemoryRegiontrait (len,start_addr,last_addr,check_address,address_in_range) andGuestRegionCollection, whose constructor returnsGuestRegionCollectionError::MemoryRegionOverlaporUnsortedMemoryRegions; the error derivesthiserror::Error. It needsstdand allocates.memory_addresses0.4.0: the lane measured and unpacked it and did not read it.
The systems outside Rust
- FreeBSD release/14.3.0,
sys/amd64/include/vmparam.h:VM_MAXUSER_ADDRESS,SHAREDPAGE(one page below it) andUSRSTACK(equal toSHAREDPAGE), each as a macro with a variant for each paging depth. - Linux v6.12,
Documentation/arch/x86/x86_64/mm.rst(the table of the whole address space, with user space as one row "different per mm"),arch/x86/include/asm/page_64.handarch/x86/include/asm/processor.h(TASK_UNMAPPED_BASEas a third of the task size). - seL4 13.0.0,
libsel4/sel4_arch_include/x86_64/sel4/sel4_arch/constants.h:seL4_UserTop(0x00007ffffffff000) andseL4_PageBits, and nothing below the top.
The Linux files are GPL; the review read them for the shape of what they publish only.
The benchmark
None, and none is owed: every checked placement is a const fn bound in a const, and
check_image is three comparisons run once for each image.
What the lane did not run
- Kani and the falsification replay; the harness and patch counts are from the source.
- Mutation testing.
- The build at the minimum Rust version, 1.88; the baseline's stranger run covers it.
- The tests of the neighbors.