Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~998 People Reached
About Me

Learning never ends !!! I am here to understand more about C, C++, OOP design & System Internals & many more !

Favorite Forums
Favorite Tags
Member Avatar for balajirs

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

Member Avatar for balajirs
0
220
Member Avatar for balajirs

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 …

Member Avatar for gerard4143
0
630
Member Avatar for balajirs

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 …

Member Avatar for balajirs
0
148