Skip to content
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

Is there another way to fully cache the target memory without using pread()? #61

Open
howardzhang87 opened this issue Feb 1, 2018 · 1 comment

Comments

@howardzhang87
Copy link

In your code, you use pread() to cache the linux_proc_banner. I'm wondering if there is another way to do that? You mentioned that this could work with prefetch or sched_yield. I tried to replace the pread(fd, buf, sizeof(buf), 0) with _mm_prefetch((char*)addr, 0) and it doesn't work.

Can you show me the alternative way? Thanks!

@paboldin
Copy link
Owner

It works with sched_yield. Take a look at the exploit IAIK: https://github.com/IAIK/meltdown
Here I use a modified version to read arbitrary process memory: https://www.youtube.com/watch?v=De4rBaAdKNA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants