-
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 Sep 18, 2024
-
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 b8e07d9 - Browse repository at this point
Copy the full SHA b8e07d9View 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 6df01b7 - Browse repository at this point
Copy the full SHA 6df01b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61effc2 - Browse repository at this point
Copy the full SHA 61effc2View 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 931f6a4 - Browse repository at this point
Copy the full SHA 931f6a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d7d7a4 - Browse repository at this point
Copy the full SHA 9d7d7a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2d6622 - Browse repository at this point
Copy the full SHA f2d6622View 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 abf2ec9 - Browse repository at this point
Copy the full SHA abf2ec9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2ca713 - Browse repository at this point
Copy the full SHA e2ca713View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57f01a7 - Browse repository at this point
Copy the full SHA 57f01a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 702bc0a - Browse repository at this point
Copy the full SHA 702bc0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ea5a6 - Browse repository at this point
Copy the full SHA 89ea5a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 258784a - Browse repository at this point
Copy the full SHA 258784aView 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.