-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page fault in Rust Eapp #462
Comments
This might actually be an compiler bug, if I disable optimizations for
optimised
|
Hi @shimunn. I also have the same problem with memset used in libsodium. Can you tell me how you disabled optimization? I'm using Compile flag but it seems like it's being overriden since I see no changes. |
Just used pragmas around the memset function
|
thanks. I also tried volatile pointer and it works fine. |
Describe the bug
Page fault when using certain Rust libraries in an eapp
Build Failure
If you ran into build problems, please add these information
(1) Results of
git submodule status
(2) Your Linux distribution (e.g., Ubuntu 14.04)
(3) The branch you're working on (e.g.,
master
ordev
)Screenshots or Error Log
If applicable, add screenshots/error logs to help explain your problem.
0x12d90
ismemset
,0x3feffff0
is at the end of my 1M stackGDB stepthrough
I've tested all functions which page fault in keystone in the RISCV Qemu VM as well as on my Machine where they executae as expected. Therefor I believe there must be something special about keystone which breaks these particular functions.
The function in particular should be fairly harmless, since it is just loading an DER encoded ed25519 private key which shoudln't use much stack and no heap.
Are there any special compiler flags I should be aware of which might help?
The text was updated successfully, but these errors were encountered: