Skip to content

SBRK Wrapper#25

Open
aroelke wants to merge 8 commits intomasterfrom
sbrk
Open

SBRK Wrapper#25
aroelke wants to merge 8 commits intomasterfrom
sbrk

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