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

Implement NX (w^x) support #432

Closed
vathpela opened this issue Nov 3, 2021 · 0 comments · Fixed by #459
Closed

Implement NX (w^x) support #432

vathpela opened this issue Nov 3, 2021 · 0 comments · Fixed by #459

Comments

@vathpela
Copy link
Contributor

vathpela commented Nov 3, 2021

A couple of things need to be done to correctly support NX:

  • we need to be able to modify page mapping flags (https://mantis.uefi.org/mantis/view.php?id=2262)
  • load_image() needs to know how to map binary sections with the correct flags
  • Currently have no idea how the firmware loader (and shim's load_image() as well) can detect whether a binary is safe (or not) to load with NX, i.e. if it needs all mappings to be executable OR UEFI_MEMORY_ATTRIBUTE present in order to function correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants