Skip to content
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

add ASLR #221

Merged
merged 5 commits into from
Feb 6, 2022
Merged

add ASLR #221

merged 5 commits into from
Feb 6, 2022

Conversation

Freax13
Copy link
Member

@Freax13 Freax13 commented Feb 4, 2022

This pr adds optional ASLR. As it turns out generating entropy to seed a random number generated is quite difficult on bare metal. This pr adds function to generate entropy based on RDRAND, RDTSC and the values in the PIT channels.

src/binary/entropy.rs Outdated Show resolved Hide resolved
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Looks really good, thanks a lot!

src/binary/level_4_entries.rs Outdated Show resolved Hide resolved
src/binary/level_4_entries.rs Show resolved Hide resolved
@Freax13 Freax13 requested a review from phil-opp February 6, 2022 15:00
@phil-opp
Copy link
Member

phil-opp commented Feb 6, 2022

Thanks!

@phil-opp phil-opp merged commit a445433 into rust-osdev:main Feb 6, 2022
@Freax13 Freax13 deleted the aslr branch February 6, 2022 15:24
@phil-opp
Copy link
Member

phil-opp commented Feb 6, 2022

Published as v0.10.12.

@ethindp
Copy link
Contributor

ethindp commented Feb 6, 2022

@Freax13 Would you be willing to help me out with my kernel boot problem? I've updated to the latest version and still no go. I'd be happy to move this discussion to Matrix or Discord, whichever you prefer.

@Freax13
Copy link
Member Author

Freax13 commented Feb 6, 2022

@Freax13 Would you be willing to help me out with my kernel boot problem? I've updated to the latest version and still no go. I'd be happy to move this discussion to Matrix or Discord, whichever you prefer.

Sure, send me an email with your discord tag and I'll add you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants