You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add VMA resize/relocation helper for mremap (preserving existing physical pages, permissions, and MAP_SHARED/MAP_PRIVATE flags when growing in-place or moving to a free VA region under MREMAP_MAYMOVE).
Add discard_anon_range() for MADV_DONTNEED (unmapping + freeing anonymous private pages and restoring demand-zero PTEs cleanly).
tests/host/: Add Snitch ASan/UBSan tests verifying in-place shrink/grow, MREMAP_MAYMOVE data preservation, MADV_DONTNEED zero-fill + PFA reclamation, mincore residency bitmask, and zero PFA leaks.
Out of scope: process/credentials syscalls ([SUBISSUE #2]), POSIX timers ([SUBISSUE #3]).
Acceptance Criteria & Edge Cases
mremap shrinks in-place (reclaiming tail PFA pages), grows in-place when space permits, or relocates preserving exact page contents when MREMAP_MAYMOVE is set (otherwise returns -ENOMEM)
madvise(MADV_DONTNEED) on anonymous MAP_PRIVATE regions reclaims PFA pages immediately and subsequent reads observe zeroes; benign hints (MADV_NORMAL/WILLNEED/SEQUENTIAL/RANDOM/HUGEPAGE/NOHUGEPAGE) succeed cleanly
mincore writes accurate per-page residency bits (bit 0) and returns -ENOMEM for unmapped ranges
Activity