-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASLR: Lay down the foundations #725
Draft
n0toose
wants to merge
12
commits into
hermit-os:main
Choose a base branch
from
n0toose:aslr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Commits on Nov 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb5d05d - Browse repository at this point
Copy the full SHA cb5d05dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 279aa7e - Browse repository at this point
Copy the full SHA 279aa7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44756d8 - Browse repository at this point
Copy the full SHA 44756d8View commit details -
ASLR: Lay down the foundations
- Move x86_64-related paging code to src/arch/x86_64/paging - Tests: x86_64-related paging tests should use a guest_address that is not 0 - Tests: Move them in separate files, use appropriate 'use' directives - Tests: Use init_guest_mem wrapper in test_virt_to_phys - Fix kernel memory loading - Add guest_address getter in UhyveVm - Change names of constants to clarify their purpose - Use u64 for arch::RAM_START instead of GuestVirtAddr - Remove pagetable_l0 from virt_to_phys function - Various `cargo fmt`-related changes - aarch64: Blindly replace constant names and similar RAM_START change We currently rely on guest_address in MmapMemory to calculate the offsets during the initialization of the VM and when converting virtual addresses to physical addresses. The latter case is intended to be temporary - we should read the value from the CR3 register at a later point, but this is too complex for the time being because of the different architectures. Although this current revision does work with relocatable binaries, it is not making use of this functionality _just_ yet. Fixes hermit-os#719. Co-authored-by: Jonathan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fdb9f20 - Browse repository at this point
Copy the full SHA fdb9f20View commit details -
ASLR: Use OnceLock for storing guest_address
This will be used by other functions for now, instead of relying on mem.guest_address. guest_address should only be a GuestPhysAddr internally for now, as other functions in places like src/linux/x86_64/kvm_cpu.rs use it.
Configuration menu - View commit details
-
Copy full SHA for 14c75fd - Browse repository at this point
Copy the full SHA 14c75fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c53a675 - Browse repository at this point
Copy the full SHA c53a675View commit details -
ASLR: Remove superfluous start_address entry
Removes the start_address entry and uses the existing offset entry instead. Plus some `cargo fmt` changes
Configuration menu - View commit details
-
Copy full SHA for 02ef3e7 - Browse repository at this point
Copy the full SHA 02ef3e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f05ea9a - Browse repository at this point
Copy the full SHA f05ea9aView commit details -
x86_64: allow MMIO reads for MP floating table search when lower memo…
…ry is not mapped
Configuration menu - View commit details
-
Copy full SHA for c4cad7d - Browse repository at this point
Copy the full SHA c4cad7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9d410c - Browse repository at this point
Copy the full SHA e9d410cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9ab783 - Browse repository at this point
Copy the full SHA c9ab783View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4eb1e1 - Browse repository at this point
Copy the full SHA d4eb1e1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.