-
Notifications
You must be signed in to change notification settings - Fork 18
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
test_mprotect: test if mprotected pages are copied #381
Conversation
82db1e7
to
4550a98
Compare
DRAFTING: as demo showed issue on ia32, weird that only on one platform there's an issue with this change |
sleep(1); | ||
if (area[0] != 0x42) { | ||
exit(1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it might be easier to do this test in reverse - modify the memory in child instead. This would be nicer, as it would only require waitpid
sync point, without sleep
. But I'm not 100% sure that such approach would test exactly the same thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add separate test case for that
pages_in_child_copied test checks if pages with protection changed to read from read-write by mprotect are copied by child. pages_in_parent_copied test checks if pages with protection changed to read from read-write by mprotect are copied by parent. JIRA: RTOS-953
4550a98
to
2ff2ee7
Compare
pages_in_child_copied test checks if pages with protection changed to read from read-write by mprotect are copied by child.
JIRA: RTOS-953
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment
map: fix mprotected pages not being copied phoenix-rtos-kernel#608