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

Undefined Behavior with Multiple Text Segments #68

Open
aroelke opened this issue Jun 3, 2020 · 0 comments
Open

Undefined Behavior with Multiple Text Segments #68

aroelke opened this issue Jun 3, 2020 · 0 comments

Comments

@aroelke
Copy link
Contributor

aroelke commented Jun 3, 2020

When the .text segment is divided into multiple noncontiguous sections, tags are not applied correctly to the binary. For example, a linker script might divide .text like this:

.text.init : {
  *(.text.init);
}
.text : ALIGN(0x1000) {
  *(.text)
  *(.text.*)
}

In this case, the first instruction of the program running with the rwx policy, normally tagged allGrp, Rd, Ex, is read by the PEX kernel as being tagged with loadGrp, allGrp, Rd, Ex, causing a policy violation.

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

1 participant