Operating system controlled processor-memory bus encryption

Xi Chen, Robert P. Dick, Alok Choudhary
2008 Proceedings of the conference on Design, automation and test in Europe - DATE '08  
Unencrypted data appearing on the processormemory bus can result in security violations, e.g., allowing attackers to gather keys to financial accounts and personal data. Although on-chip bus encryption hardware can solve this problem, it requires hardware redesign or increases processor cost. Application redesign to prevent sensitive data from appearing on the processor-memory bus is extremely difficult. We propose and evaluate a processor-memory bus encryption technique for embedded systems
more » ... t requires no changes to applications or hardware. This technique exploits cache locking or scratchpad memory, features present in many embedded processors, permitting the operating system (OS) virtual memory infrastructure to automatically encrypt data belonging to protected processes as they are written to off-chip memory. Pages belonging to unprotected processes are stored unencrypted to prevent performance and energy consumption penalties. We evaluate the proposed bus encryption technique using full system simulation. Experimental results indicate that it is possible to prevent the working data sets of processes from appearing on the processor-memory bus in plaintext, without using dedicated hardware and without changing applications. The OS based technique results in 1.37× slowdown for protected processes for processors with 512 KB of L2 cache and 1.78× slowdown for processors with 256 KB of L2 cache. There are negligible performance penalties for unprotected processes.
doi:10.1145/1403375.1403657 fatcat:5dlo2mun3fa77phufvfbvuuoqa