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

SBRK Wrapper #25

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

SBRK Wrapper #25

wants to merge 8 commits into from

Conversation

aroelke
Copy link
Contributor

@aroelke aroelke commented Aug 5, 2020

Adds a wrapper around the sbrk system call that fakes the program break by basically just keeping track of where it is and moving the pointer as sbrk is called. Whenever sbrk is called, if the request is to expand the available memory (even if it's to re-expand it after shrinking it), the AP will send a message to the PEX using the PIPE's mailbox mechanism, including an interrupt. The PEX is then expected to make any changes to the data TMT that are necessary.

Alec Roelke added 7 commits July 1, 2020 07:42
They create a fake program break that moves with calls to sbrk rather
than actually moving the real program break.  Attempts to access memory
in the "new" region will still cause policy violations, as they are not
tagged.
@aroelke aroelke requested review from arunthomas and ucaprompt August 5, 2020 19:37
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.

1 participant