問題タブ [mprotect]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - mprotect を使用して特定のメモリを保護するにはどうすればよいですか?
mprotect を使用して特定のメモリ領域を保護したい。
そこで、保護する仮想アドレスを指定するコードを書きましたが、mprotect が機能しません。
私のコードに問題はありますか?
これが私のコードです。
linux - run `make qemu` got error: `qemu_mprotect__osdep: mprotect failed: Permission denied`
I am trying do mit6.828 lab on mac m1. After installed riscv-tool-chain
, I tried to run make qemu
which seems to be used start the kernel, but at first I got this error:
So I clone the qemu reposiroty from the github to get the source code,and check the version to v5.1.0, then I apply the patch from this link pathch which is mentioned by this link
configure run as the belows:
The make
and make install
seems work well, but when I execute make qemu
again in the lab, it appeared another error, I still not found how to solve this problem: