DynamoRIO / DynamoRIO/dynamorio

ASSERT (linux/os.c:3049 res == 0) on mprotect +rwx of invalid memory

Open
#351 0 comments 0 reactions 0 assignees View on GitHub
Migrated OpSys-Linux Priority-Low
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

_From [derek.br...@gmail.com](https://code.google.com/u/117968039472581148324/) on October 12, 2010 15:04:11_

DR's SYS_mprotect handling is not very robust: it doesn't properly undo all failing calls, and for +rwx calls that say extend beyond the valid range it ends up trying to make that region unwritable and hits the assert here.
just about any test case of failing mprotect hits some assert or curiosity. this issue covers cleaning the code up.

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=351_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.