Skip to content

Conversation

ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Jul 29, 2025

Writes into mmaped regions was accidentally possible on kvm.

KVM_MEM_READONLY was confirmed to be RX by testing hyperlight-wasm on this commit, which worked fine. EDIT: Now also tested in test here

Also adds a test which would currently fail, but now passes

@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label Jul 29, 2025
@ludfjig ludfjig changed the title [fix] Make sure memory is not mapped writeable into sandbox in kvm [fix] Make sure mmaped memory is not mapped writeable into sandbox in kvm Jul 29, 2025
@ludfjig ludfjig force-pushed the kvm_mmap_permission branch 5 times, most recently from cebf884 to 8e437c1 Compare July 29, 2025 22:27
simongdavies
simongdavies previously approved these changes Jul 30, 2025
syntactically
syntactically previously approved these changes Jul 30, 2025
@ludfjig ludfjig dismissed stale reviews from syntactically and simongdavies via 0124549 July 30, 2025 19:00
@ludfjig ludfjig force-pushed the kvm_mmap_permission branch from 8e437c1 to 0124549 Compare July 30, 2025 19:00
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig force-pushed the kvm_mmap_permission branch from 0124549 to 0833407 Compare July 30, 2025 19:01
Copy link
Member

@syntactically syntactically left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ludfjig ludfjig merged commit dfe7772 into hyperlight-dev:main Jul 30, 2025
60 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bugfix For PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants