# US 2019/0171824 A1 · Verifying proper operation of the instruction execution protection architecture

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0171824 A1
- Document ID: US20190171824A1
- Status: Published application
- Kind: A1
- Application number: 16/270,764
- Filed: 2019-02-08
- Published: 2019-06-06
- Earliest claimed: 2016-12-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: ALI Y. DUALE; SHAILESH R. GAMI; JOHN L. WEBER; DENNIS WITTIG
- Web page: https://patentgrep.com/patent/US20190171824A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method includes executing one or more tests on a computing device. The computing device has Instruction Execution Protection (IEP), and each test of the one or more tests includes selectively setting one or more IEP bits of one or more page tables, where each IEP bit prevents code in a respective storage block from being executed. During the one or more tests, an IEP exception is detected, by a computer processor, each time an attempt is made to execute code in a storage block for which a respective IEP bit is set. Test results of the one or more tests are determined based on the detecting. A remedial action is performed in response to the test results of the one or more tests.

## Claims

### Claim 1

A computer-implemented method comprising:
executing one or more tests on a computing device, wherein the computing device comprises Instruction Execution Protection (IEP), and wherein each test of the one or more tests comprises selectively setting one or more IEP bits of one or more page tables, wherein each IEP bit prevents code in a respective storage block from being executed;
wherein executing a first test of the one or more tests comprises:
setting a first IEP bit in a first page table used to translate between virtual memory and physical memory, wherein the first IEP bit in the first page table indicates that data in a storage block associated with the first page table is not executable; and
detecting, during the first test, a first IEP exception responsive to an attempt to execute the data in the first storage block and responsive to the first IEP bit of the first page table associated with the first storage block being set;
determining test results of the one or more tests based at least in part on the detecting the first IEP exception; and
performing a remedial action in response to the test results of the one or more tests.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein executing the first test of the one or more tests comprises:
instructing a uniprocessor to execute code in one or more protected storage blocks having respective IEP bits that are set; and
instructing the uniprocessor to execute code in one or more unprotected storage blocks having respective IEP bits that are not set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the uniprocessor attempts to execute code in the one or more protected storage blocks.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a common storage shared with a first set of slave processors;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the master processor and the first set of slave processors attempts to execute code in the one or more protected storage blocks in common storage.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the executing the first test of the one or more tests further comprises:
instructing a second set of slave processors of the multiprocessor system to execute code in a second storage, wherein the second storage is absent protected storage blocks with respective IEP bits that are set.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage, wherein the first storage is absent protected storage blocks with respective IEP bits that are set;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a second storage;
instructing a first set of slave processors of the multiprocessor system to execute code in the second storage;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the first set of slave processors attempts to execute code in the one or more protected storage blocks in the second storage.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the executing the first test of the one or more tests further comprises:
instructing a second set of slave processors of the multiprocessor system to execute code in a third storage, wherein the third storage is absent protected storage blocks with respective IEP bits that are set.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in the first storage;
instructing one or more slave processors of the multiprocessor system to execute code in the second storage, wherein the second storage is absent protected storage blocks with respective IEP bits that are set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the master processor attempts to execute code in the one or more protected storage blocks in the first storage.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the remedial action comprises reporting the test results of the one or more test programs.

### Claim 9

A system comprising:
a memory having computer-readable instructions; and
one or more processors for executing the computer-readable instructions, the computer readable instructions comprising:
executing one or more tests on a computing device, wherein the computing device comprises Instruction Execution Protection (IEP), and wherein each test of the one or more tests comprises selectively setting one or more IEP bits of one or more page tables, wherein each IEP bit prevents code in a respective storage block from being executed;
wherein executing a first test of the one or more tests comprises:
setting a first IEP bit in a first page table used to translate between virtual memory and physical memory, wherein the first IEP bit in the first page table indicates that data in a storage block associated with the first page table is not executable; and
detecting, during the first test, a first IEP exception responsive to an attempt to execute the data in the first storage block and responsive to the first IEP bit of the first page table associated with the first storage block being set;
determining test results of the one or more tests based at least in part on the detecting the first IEP exception; and
performing a remedial action in response to the test results of the one or more tests.

### Claim 10 (depends on 9)

The system of claim 9, wherein executing the first test of the one or more tests comprises:
instructing a uniprocessor to execute code in one or more protected storage blocks having respective IEP bits that are set; and
instructing the uniprocessor to execute code in one or more unprotected storage blocks having respective IEP bits that are not set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the uniprocessor attempts to execute code in the one or more protected storage blocks.

### Claim 11 (depends on 9)

The system of claim 9, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a common storage shared with a first set of slave processors;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the master processor and the first set of slave processors attempts to execute code in the one or more protected storage blocks in common storage.

### Claim 12 (depends on 9)

The system of claim 9, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage, wherein the first storage is absent protected storage blocks with respective IEP bits that are set;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a second storage;
instructing a first set of slave processors of the multiprocessor system to execute code in the second storage;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the first set of slave processors attempts to execute code in the one or more protected storage blocks in the second storage.

### Claim 13 (depends on 9)

The system of claim 9, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in the first storage;
instructing one or more slave processors of the multiprocessor system to execute code in the second storage, wherein the second storage is absent protected storage blocks with respective IEP bits that are set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the master processor attempts to execute code in the one or more protected storage blocks in the first storage.

### Claim 14 (depends on 9)

The system of claim 9, wherein the remedial action comprises reporting the test results of the one or more test programs.

### Claim 15

A computer-program product for testing functionality of Instruction Execution Protection (IEP), the computer-program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising:
executing one or more tests on a computing device, wherein the computing device comprises Instruction Execution Protection (IEP), and wherein each test of the one or more tests comprises selectively setting one or more IEP bits of one or more page tables, wherein each IEP bit prevents code in a respective storage block from being executed;
wherein executing a first test of the one or more tests comprises:
setting a first IEP bit in a first page table used to translate between virtual memory and physical memory, wherein the first IEP bit in the first page table indicates that data in a storage block associated with the first page table is not executable; and
detecting, during the first test, a first IEP exception responsive to an attempt to execute the data in the first storage block and responsive to the first IEP bit of the first page table associated with the first storage block being set;
determining test results of the one or more tests based at least in part on the detecting the first IEP exception; and
performing a remedial action in response to the test results of the one or more tests.

### Claim 16 (depends on 15)

The computer-program product of claim 15, wherein executing the first test of the one or more tests comprises:
instructing a uniprocessor to execute code in one or more protected storage blocks having respective IEP bits that are set; and
instructing the uniprocessor to execute code in one or more unprotected storage blocks having respective IEP bits that are not set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the uniprocessor attempts to execute code in the one or more protected storage blocks.

### Claim 17 (depends on 15)

The computer-program product of claim 15, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a common storage shared with a first set of slave processors;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the master processor and the first set of slave processors attempts to execute code in the one or more protected storage blocks in common storage.

### Claim 18 (depends on 15)

The computer-program product of claim 15, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage, wherein the first storage is absent protected storage blocks with respective IEP bits that are set;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in a second storage;
instructing a first set of slave processors of the multiprocessor system to execute code in the second storage;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time at least one of the first set of slave processors attempts to execute code in the one or more protected storage blocks in the second storage.

### Claim 19 (depends on 15)

The computer-program product of claim 15, wherein executing the first test of the one or more tests comprises:
instructing a master processor of a multiprocessor system to execute code in a first storage;
instructing the master processor to set the one or more IEP bits of the one or more page tables, wherein the one or more page tables correspond to one or more protected storage blocks in the first storage;
instructing one or more slave processors of the multiprocessor system to execute code in the second storage, wherein the second storage is absent protected storage blocks with respective IEP bits that are set;
wherein the detecting the first IEP exception comprises detecting an IEP exception each time the master processor attempts to execute code in the one or more protected storage blocks in the first storage.

### Claim 20 (depends on 15)

The computer-program product of claim 15, wherein the remedial action comprises reporting the test results of the one or more test programs.
