发明名称 |
Controlling execution of binary code |
摘要 |
An apparatus for controlling an execution of a binary code by multiple threads includes a detection unit configured to detect an occurrence of modification of a first part that is a part of a first binary code by a self-modifying code; a specifying unit configured to specify a second part that is a part corresponding to the first part in a second binary code acquired by converting the first binary code, in response to detection of the occurrence of modification of the first part by the self-modifying code; and a correction unit configured to correct the second part such that a specific thread that executes the second part of the second binary code among the multiple threads causes an exception. |
申请公布号 |
US9626169(B2) |
申请公布日期 |
2017.04.18 |
申请号 |
US201514746875 |
申请日期 |
2015.06.23 |
申请人 |
INTERNATIONAL BUSINESS MACHINES CORPORATION |
发明人 |
Kawahito Motohiro;Koju Toshihiko;Tong Xin |
分类号 |
G06F9/45;G06F11/07;G06F21/00;G06F21/52;G06F21/56 |
主分类号 |
G06F9/45 |
代理机构 |
Cantor Colburn LLP |
代理人 |
Cantor Colburn LLP ;Razavi Keivan |
主权项 |
1. A method of controlling an execution of a binary code by multiple threads, the method comprising:
detecting an occurrence of modification of a first part that is a part of a first binary code by a self-modifying code; specifying a second part that is a part corresponding to the first part in a second binary code acquired by converting the first binary code, in response to detection of the occurrence of modification of the first part by the self-modifying code; correcting the second part such that a specific thread that executes the second part of the second binary code among the multiple threads causes an exception; and maintaining a state where a page which is a memory area to store at least part of the first part and include an instruction modified by the self-modifying code is mapped to a virtual page to which page protection is not applied and which is not used, while specifying the second part and correcting the second part. |
地址 |
Armonk NY US |