aslr on the line
play

ASLR on the Line Ben Gras, Kaveh Razavi, Erik Bosman , Herbert Bos, - PowerPoint PPT Presentation

ASLR on the Line Ben Gras, Kaveh Razavi, Erik Bosman , Herbert Bos, Cris ano Giu ff rida VUSec Erik Bosman @brainsmoke Kaveh Razavi @gober Ben Gras @bjg Stephan van Schaik ASLR Address Space Layout Randomiza on Widely deployed


  1. 7 F 8 3 B 6 3 7 3 0 4 0 7F83B6372040 virtual address lookup (x86_64)

  2. TLB miss!

  3. CR3

  4. 511 512 entries 0 CR3

  5. 255 511 512 entries 0 CR3

  6. 255 512 entries CR3

  7. 255 14 512 entries CR3

  8. 255 14 512 entries CR3

  9. 255 14 433 512 entries CR3

  10. 255 14 433 512 entries CR3

  11. 255 14 433 370 512 entries CR3

  12. 255 14 433 370 actual data CR3

  13. 255 14 433 370 64 actual data CR3

  14. 255 14 433 370 64 actual data CR3 4K page

  15. 255 14 433 370 64 CR3 4K page

  16. 255 14 433 370 64 CR3 4K page

  17. Observa � on: address informa � on is directly encoded into the page table lookups, and page tables are pages themselves.

  18. 255 14 433 370 64 CR3 4K page

  19. 255 14 433 370 64 CR3 4K page 4K page 4K page 4K page 4K page

  20. 255 14 433 370 64 CR3 4K page 4K page 4K page 4K page 4K page

  21. CR3

  22. 255 ... 256 255 254 253 252 251 250 249 248 ... 247

  23. 255 ... 256 255 254 253 ? 1 Cache line = 252 64 bytes = 251 8 possible 250 page table 249 entries 248 ... 247

  24. 255 ... 256 255 254 253 ? 1 Cache line = 252 64 bytes = 251 8 possible 250 page table 249 entries 248 ... 247

  25. 255 ... 256 255 254 253 ? 1 Cache line = 252 64 bytes = 251 8 possible 250 page table 249 entries 248 ... 247 cache line reveals 6 address bits

  26. 255 14 433 370 64

Recommend


More recommend