我想要获取当前程序计数器(PC)的值,它位于mprotect处理程序中。从那里,我想将PC的值增加'n‘条指令,这样程序就可以跳过一些指令。我想为linux内核版本3.0.1做所有这些事情。因此,我的想法是使用mprotect来使地址受到写保护。当一些代码试图在该内存地址上写入内容时,我将使用mprotect处理程序来执行一些操作。在处理完处理程序之后,我希望使写操作成功。write it again
set PC to the next instruction of original write ins
Error: /usr/lib/x86_64-linux-gnu/graphviz/config6a is zero sized, or other read error.Warning: Could not load "/usr/lib/x86_64-linux-gnu/graphviz/libgvplugin_pango.so.6" - file not found(0x7f9676a06000, 4096, PROT_READ) =
我第一次调用malloc()时遇到了一个分段错误,这是在我使用mprotect()保护一个内存区域之后调用的。array){ // Protects memory after values are set if (mprotect(array, type_size*size, PROT_READ)) {