Dynamic binary translation to secure processes from speculative rogue cache loads
AssigneeVMware, Inc.
InventorsMichael Wei, Dan Tsafrir, Nadav Amit
Life of this patent
Estimating the term…
Abstract
In accordance with embodiments of the present disclosure, a binary translator can perform address shifting on the binary code of an executing application. Address shifting serves to shift the addresses of memory operations that can access locations in the kernel address space into address locations in the user space, thus avoiding speculative access into the kernel address space.
Claims18
A method for executing an application by a central processing unit (CPU) in a computer system, the method comprising:
- accessing, by the computer system, a code page of the application from a physical memory of the computer system, the accessed code page comprising computer executable instructions to be executed by the CPU;
- rewriting, by the computer system, the accessed code page to produce a rewritten code page, including:
- copying computer executable instructions in the accessed code page to the rewritten code page;
- and
- in response to a computer executable instruction being a memory operation, writing address shifting code associated with the memory operation to the rewritten code page followed by writing the memory operation to the rewritten code page;
- and
- executing, by the computer system, computer executable instructions in the rewritten code page instead of executing computer executable instructions in the accessed code page.
A non-transitory computer-readable storage medium having stored thereon computer executable instructions, which when executed by a computer device, cause the computer device to:
- access a code page of the application from a physical memory of the computer system, the accessed code page comprising computer executable instructions to be executed by the CPU;
- rewrite the accessed code page to produce a rewritten code page, including:
- copying computer executable instructions in the accessed code page to the rewritten code page;
- and
- in response to a computer executable instruction being a memory operation, writing address shifting code associated with the memory operation to the rewritten code page followed by writing the memory operation to the rewritten code page;
- and
- execute computer executable instructions in the rewritten code page instead of executing computer executable instructions in the accessed code page.
An apparatus comprising:
- one or more computer processors;
- and
- a computer-readable storage medium comprising instructions for controlling the one or more computer processors to be operable to:
- access a code page of the application from a physical memory of the computer system, the accessed code page comprising computer executable instructions to be executed by the CPU;
- rewrite the accessed code page to produce a rewritten code page, including:
- copying computer executable instructions in the accessed code page to the rewritten code page;
- and
- in response to a computer executable instruction being a memory operation, writing address shifting code associated with the memory operation to the rewritten code page followed by writing the memory operation to the rewritten code page;
- and
- execute computer executable instructions in the rewritten code page instead of executing computer executable instructions in the accessed code page.
Dependencies are inferred from the claim text.