# US 2012/0255038 A1 · Dual Trust Architecture

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

- Number: US 2012/0255038 A1
- Document ID: US20120255038A1
- Status: Published application
- Kind: A1
- Application number: 13/419,608
- Filed: 2012-03-14
- Published: 2012-10-04
- Earliest claimed: 2011-03-28
- Assignees: International Business Machines Corporation
- Inventors: Peter E. Havercan
- Web page: https://patentgrep.com/patent/US20120255038A1

## CPC

- G06F 21/12: Protecting executable software
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/60: Protecting data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Mechanisms for executing a software routine in an application executing as a multi-user single address space subsystem in an operating environment having a trusted mode of operation for trusted routines and a reduced-trust mode of operation for untrusted routines. The application includes a control module for execution as a trusted routine and a trusted routine table including identifiers of trusted routines. The control module performs switches between a trusted mode of operation for execution and a reduced trust mode of operation based on various determinations regarding the nature of a calling routine being trusted or untrusted, a call stack, and whether the calling routine is being restored or not from the call stack.

## Claims

### Claim 1

A method, in a data processing system having a processor and a memory, for executing a software routine in an application, the application executing as a multi-user single address space subsystem in an operating environment having a trusted mode of operation for trusted routines and a reduced-trust mode of operation for untrusted routines, the application including a control module for execution as a trusted routine and a trusted routine table including identifiers of trusted routines, the method comprising the following operations executed by the data processing system:
switching, by the control module, in response to a determination that the routine is restored from a call stack and the routine is a most recent entry in an active trusted routine list, to the trusted mode of operation for execution of the routine, and removing, by the control module, the routine from the active trusted routine list;
switching, by the control module, in response to a determination that the routine is not restored from a call stack and that the routine is included in the trusted routine table, to the trusted mode of operation for execution of the routine;
switching, by the control module, in response to a determination that the routine is untrusted, to the reduced-trust mode of operation for execution of the routine; and
adding, by the control module, in response to a determination that the routine is not restored from a call stack and that a calling routine for the routine is executing in a trusted operating mode, the calling routine to the active trusted routine list, wherein in the trusted mode of operation the application records or modifies trusted data that is not modifiable in the reduced-trust mode of operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the trusted and reduced-trust modes of operation are enforced in the operating environment by a cooperation of an operating system and processor hardware of the operating environment.

### Claim 3 (depends on 2)

The method of claim 2, wherein the operating environment is a z/Architecture environment.

### Claim 4 (depends on 3)

The method of claim 3, wherein the trusted and reduced-trust modes of operation are implemented as a key-controlled protection mechanism of the z/Architecture environment.

### Claim 5 (depends on 4)

The method of claim 4, wherein the switching operations are performed using a Branch and Set Authority (BSA) instruction of the z/Architecture environment.

### Claim 6

An apparatus for executing a software routine in an application, the application executing as a multi-user single address space subsystem in an operating environment having a trusted mode of operation for trusted routines and a reduced-trust mode of operation for untrusted routines, the application including a control module for execution as a trusted routine and a trusted routine table including identifiers of trusted routines, the apparatus comprising:
a processor; and
a memory coupled to the processor, wherein the memory comprises instructions, which when executed by the processor, cause the processor to implement a control module configured to:
switch, in response to a determination that the routine is restored from a call stack and the routine is a most recent entry in an active trusted routine list, to the trusted mode of operation for execution of the routine and to remove the routine from the active trusted routine list,
switch, in response to a determination that the routine is not restored from a call stack and that the routine is included in the trusted routine table, to the trusted mode of operation for execution of the routine,
switch, in response to a determination that the routine is untrusted, to the reduced-trust mode of operation for execution of the routine, and
add, in further response to a determination that the routine is not restored from a call stack and that a calling routine for the routine is executing in a trusted operating mode, the calling routine to the active trusted routine list, wherein in the trusted mode of operation the application records or modifies trusted data that is not modifiable in the reduced-trust mode of operation.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the trusted and reduced-trust modes of operation are enforced in the operating environment by a cooperation of an operating system and processor hardware of the operating environment.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the operating environment is a z/Architecture environment.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the trusted and reduced-trust modes of operation are implemented as a key-controlled protection mechanism of the z/Architecture environment.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the switching operations are performed using a Branch and Set Authority (BSA) instruction of the z/Architecture environment.

### Claim at position 11

11-12. (canceled)

### Claim 13

A computer program product comprising a computer readable storage device having a computer readable program stored therein, wherein the computer readable program, when executed on a computing device executing a software routine in an application, the application executing as a multi-user single address space subsystem in an operating environment having a trusted mode of operation for trusted routines and a reduced-trust mode of operation for untrusted routines, the application including a control module for execution as a trusted routine and a trusted routine table including identifiers of trusted routines, causes the computing device to:
switch, by the control module, in response to a determination that the routine is restored from a call stack and the routine is a most recent entry in an active trusted routine list, to the trusted mode of operation for execution of the routine, and remove, by the control module, the routine from the active trusted routine list;
switch, by the control module, in response to a determination that the routine is not restored from a call stack and that the routine is included in the trusted routine table, to the trusted mode of operation for execution of the routine;
switch, by the control module, in response to a determination that the routine is untrusted, to the reduced-trust mode of operation for execution of the routine; and
add, by the control module, in response to a determination that the routine is not restored from a call stack and that a calling routine for the routine is executing in a trusted operating mode, the calling routine to the active trusted routine list, wherein in the trusted mode of operation the application records or modifies trusted data that is not modifiable in the reduced-trust mode of operation.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the trusted and reduced-trust modes of operation are enforced in the operating environment by a cooperation of an operating system and processor hardware of the operating environment.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein the operating environment is a z/Architecture environment.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the trusted and reduced-trust modes of operation are implemented as a key-controlled protection mechanism of the z/Architecture environment.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the switching operations are performed using a Branch and Set Authority (BSA) instruction of the z/Architecture environment.

### Claim 18

A method, in a data processing system having a processor and a memory, for executing a software routine in an application having a trusted mode of operation for trusted routines and a reduced-trust mode of operation for untrusted routines, comprising:
switching, by the processor, based on results of one or more determinations as to whether the software routine is restored from a call stack and is or is not in a trusted routine table, the application to one of a trusted mode of operation for execution of the software routine or to the reduced-trust mode of operation for execution of the software routine resulting in a switched mode of operation; and
executing, by the processor, the software routine in the switched mode of operation, wherein, in the trusted mode of operation, the application records or modifies trusted data that is not modifiable in the reduced-trust mode of operation.

### Claim 19 (depends on 18)

The method of claim 18, wherein switching the application to one of a trusted mode of operation or the reduced-trust mode of operation, further comprises at least one of:
switching, in response to a determination that the routine is restored from a call stack and the routine is a most recent entry in an active trusted routine list, to the trusted mode of operation for execution of the routine, and removing the routine from the active trusted routine list;
switching, in response to a determination that the routine is not restored from a call stack and that the routine is included in the trusted routine table, to the trusted mode of operation for execution of the routine; or
switching, in response to a determination that the routine is untrusted, to the reduced-trust mode of operation for execution of the routine.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
adding, by the processor, in response to a determination that the routine is not restored from a call stack and that a calling routine for the routine is executing in a trusted operating mode, the calling routine to the active trusted routine list.

### Claim 21 (depends on 18)

The method of claim 18, wherein the trusted and reduced-trust modes of operation are enforced in the operating environment by a cooperation of an operating system and processor hardware of the operating environment.

### Claim 22 (depends on 18)

The method of claim 18, wherein the trusted and reduced-trust modes of operation are implemented as a key-controlled protection mechanism of the z/Architecture environment.

### Claim 23 (depends on 18)

The method of claim 18, wherein the switching operation is performed using a Branch and Set Authority (BSA) instruction of the z/Architecture environment.

### Claim 24 (depends on 18)

The method of claim 18, wherein the application executes as a multi-user single address space subsystem in an operating environment.

### Claim 25 (depends on 24)

The method of claim 24, wherein the operating environment is a z/Architecture environment.
