* efficient way to verify one memory block is only readable?
@ 2015-10-09 7:21 mudongliang
0 siblings, 0 replies; only message in thread
From: mudongliang @ 2015-10-09 7:21 UTC (permalink / raw)
To: kernelnewbies
When I did some experiments about vtable, and modified the virtual
method address myself,
I found error report : "Segment fault". When I see the /proc/self/maps,
vtable is in the readonly text segment.
I almost forget the fact that vtables have been stored in readonly segment.
So I have a question : how to effectively verify one memory block is
only readable or writable?
I think it's not efficient to check all the parts in /proc/maps.
Does anyone have another efficient way to do this verification?
Thanks in advance.
- mudongliang
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-09 7:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09 7:21 efficient way to verify one memory block is only readable? mudongliang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).