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

ASLR support? #339

Open
xx24678 opened this issue Aug 3, 2022 · 1 comment
Open

ASLR support? #339

xx24678 opened this issue Aug 3, 2022 · 1 comment

Comments

@xx24678
Copy link

xx24678 commented Aug 3, 2022

Sorry I don't see any document mentioning this: Is there a guide on how to enable ASLR for little kernel?

@travisg
Copy link
Member

travisg commented Aug 16, 2022

There is no such support at the moment, though I think in general it wouldn't be too hard to add, depending on which architecture the intended use case is.

A) It probably only makes sense on architectures with an MMU, which reduces the use case to x86-32/64, riscv32 and 64, and arm32 and arm64.
B) The system would need to be compiled position independent but some self-relocation would probably need to be done at boot, though that may be handled by whatever bootloader is in use.
C) getting access to early entropy enough to randomly decide would be a fairly problematic thing to do generically, so it'd have to be solved on a per device basis.

However if the bootloader and device has the required support it wouldn't e a tremendously difficult thing to add at the kernel level.

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

No branches or pull requests

2 participants