r/ComputerEngineering • u/EngrToday Performance Architect • Aug 23 '19
Computer Architecture Highlights: Week 6
Hi all! I'm an architecture PhD student, and I wanted to start posting a brief summary of an influential research paper (either old or new) every week! Here's one from 2014 on memory security that shows a really creative way to flip bits in memory without accessing them directly!
Title: Flipping Bits in Memory Without Accessing Them: An Experimental Study of DRAM Disturbance Errors
Conference: ISCA 2014
Paper Link: Link
Idea: Isolation in the memory system is critical for security. However, technology scaling can lead to unintended side effects at the physical level. While you may have a software guarantee that one memory access won't disturb other parts of memory not being touched, you may not have one at the hardware level. Packing DRAM cells closer means they can hold less charge, have greater coupling effects with other cells, and are more susceptible to process variations that lead to inter-cell crosstalk. In short, shrinking process technology isn't straight forward, and can lead to problems that must be carefully managed.
Exploit: This paper introduced a new kind of of attack that is typically known as rowhammer. When accessing a cell in a row in DRAM, you must first access what is known as a wordline. This paper showed that toggling a wordline repeatedly can affect other nearby rows, and make the neighboring cells leak charge faster than normal. Typically, a row is refreshed in DRAM to prevent disturbance errors, but rowhammering was shown to accelerate disturbance errors, and cause bits to flip before a refresh could occur.
Major Impact: This paper inspired many future works looking at physical memory vulnerabilities, and is a great example of how understanding the underlying hardware can be used to bypass security. The authors showed that this particular exploit existed in 110 DRAM modules out of the 129 surveyed, showing that this problem not only exists in the real world, but is pervasive. These problems are only exacerbated as technology shrinks, and new unintended side effects crop up.
That's all for this week! Check out their paper linked above for more details how DRAM works, how these disturbance errors are created, and some ways they can be mitigated! Have a wonderful start to the weekend!
--Nick
Last Week's: Link -->
My YouTube channel with similar teaching content.
My GitHub where I post all my teaching code.
2
u/eSteeeezy Aug 27 '19
A professor of mine is doing research on cyber security, specifically rowhammer and side-channel attacks. This is something I just started reading about, and I find it pretty interesting! Do you think the easiest solution to stunting rowhammer attacks would be coding against frequent refresh rates on certain rows? I feel like any physical changes to DRAM would just make accessing data slower...
2
u/EngrToday Performance Architect Aug 27 '19
It's a difficult thing to solve only in software because the compiler/programmer would have to which rows are physically, not just logically close. Mitigating in hardware is also not necessarily going to make DRAM slower. DRAM rows already have to be refreshed to prevent loss of data, so some papers have looked at making re-fresh smarter, and tracking which rows are being consistently activated that way you know which neighboring rows should be refreshed earlier.
I think the best solution would probably be someplace in the middle (a hybrid compiler-architecture solution).
0
2
u/_arsk Aug 23 '19
Does one need any minimum pre-requisite for understanding these papers? I don’t have comp-eng background, hence asking.