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

./detect-mc-mapping-pagemap.sh fails with invalid option -- 'b' #16

Closed
travisdowns opened this issue Nov 24, 2018 · 2 comments
Closed

Comments

@travisdowns
Copy link

Because detect-mc-mapping.sh doesn't work for me as described in #15, I tried ./detect-mc-mapping-pagemap.sh which I understand is the new "safe" method of detecting the bank bits.

However, this script fails since the mc-mapping-pagemap binary doesn't support the -b option that the script uses:

$ ./detect-mc-mapping-pagemap.sh 
mc-mapping-pagemap: no process found
Run a background task on core1-3
Now run the test
Bit12: ./mc-mapping-pagemap: invalid option -- 'b'
Bit13: ./mc-mapping-pagemap: invalid option -- 'b'
Bit14: ./mc-mapping-pagemap: invalid option -- 'b'
Bit15: ./mc-mapping-pagemap: invalid option -- 'b'
Bit16: ./mc-mapping-pagemap: invalid option -- 'b'
Bit17: ./mc-mapping-pagemap: invalid option -- 'b'
@heechul
Copy link
Owner

heechul commented Nov 25, 2018

Thanks for the report. I removed the script. As mc-mapping-pagemap is now multithreaded, you can instead directly run the program as follow without needing a script.

$ sudo chrt -f 1 ./mc-mapping-pagemap -p 0.7 -n 3

Note, however, that the detector may not be able to handle newer Intel architectures such as Skylake as their dram controllers use more complex XOR schemes.

For the new architectures, you may want to checkout the following paper and the authors' code repository.

DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks, Usenix Security Symposium, 2016
https://github.com/IAIK/drama

@travisdowns
Copy link
Author

Thanks @heechul - I had indeed run across that one, although I haven't tried out the code yet. Thanks for the note!

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