No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Learning never ends !!! I am here to understand more about C, C++, OOP design & System Internals & many more !
I have been trying to explore the source code of the getcontext() and setcontext functions but I have not been able to spot the right file or resource. Any help in this regard will be helpful. I was able to trace to http://fossies.org/dox/glibc-2.14.1/setcontext_8c_source.html but there is no info |
|
Below is a part of an experiement. I am trying to mprotect the whole of the stack area but mprotect needs page aligned space. I can get the address of the current pointer using ucontext.uc_mcontext.gregs[REG_ESP] . But how do I get the page-size aligned address to use in the mprotect … |
|
If I mprotect a segment with PROT_NONE and if a SIGSEGV occurs due to a write which gets handled by sigaction with sa_sigaction, We will be able to find the address where the fault occurs using siginfo_t's si_addr. Is there a way to know the data that was tried to … |