# US 2013/0160114 A1 · Inter-thread communication with software security

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

- Number: US 2013/0160114 A1
- Document ID: US20130160114A1
- Status: Published application
- Kind: A1
- Application number: 13/329,583
- Filed: 2011-12-19
- Published: 2013-06-20
- Earliest claimed: 2011-12-19
- Assignees: International Business Machines Corporation
- Inventors: Jason Greenwood; Mark G. Kupferschmidt; Paul E. Schardt; Robert A. Shearer
- Web page: https://patentgrep.com/patent/US20130160114A1

## CPC

- G06F 21/606: {by securing the transmission between two devices or processes}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A circuit arrangement and method utilize a process context translation data structure in connection with an on-chip network of a processor chip to implement secure inter-thread communication between hardware threads in the processor chip. The process context translation data structure maps processes to inter-thread communication hardware resources, e.g., the inbox and/or outbox buffers of a NOC processor, such that a user process is only allowed to access the inter-thread communication hardware resources that it has been granted access to, and typically with only certain types of authorized access types. Moreover, a hypervisor or supervisor may manage the process context translation data structure to grant or deny access rights to user processes such that, once those rights are established in the data structure, user processes are permitted to perform inter-thread communications without requiring context switches to a hypervisor or supervisor in order to handle the communications.

## Claims

### Claim 1

A method for securely communicating data within a processor chip that includes a plurality of hardware threads coupled to one another in an on-chip network of a network on chip (NOC) arrangement, the method comprising:
in response to a request by a respective hardware thread on behalf of a respective process to access a respective inter-thread communication hardware resource connected to the on-chip network, accessing permission data from a process context translation data structure, wherein the process context translation data structure maps each of a plurality of processes to a plurality of inter-thread communication hardware resources, and stores permission data for each mapped process, the permission data indicating which inter-thread communication hardware resources each mapped process is permitted to access;
determining from the permission data whether the respective process is permitted to access the respective inter-thread communication hardware resource; and
in response to determining that the respective process is not permitted to access the respective inter-thread communication hardware resource, denying the request to access the respective inter-thread communication hardware resource.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining whether the respective process is permitted to access the respective inter-thread communication hardware resource includes determining whether the respective process is a mapped process in the process context translation data structure.

### Claim 3 (depends on 2)

The method of claim 2, further comprising determining that the respective process is not permitted to access the respective inter-thread communication hardware resource in response to determining that the respective process is not a mapped process.

### Claim 4 (depends on 1)

The method of claim 1, wherein the permission data indicates, for each mapped process, one or more access types for one or more inter-thread communication hardware resources.

### Claim 5 (depends on 4)

The method of claim 4, wherein the request by the respective hardware thread on behalf of the respective process to access the respective inter-thread communication hardware resource comprises a request to receive data from the respective inter-thread communication hardware resource by the respective hardware thread on behalf of the respective process, and wherein the method further comprises granting the request to access the respective inter-thread communication hardware resource based at least in part on the permission data associated with the respective process indicating that the respective process is permitted to perform a receive type access of the respective inter-thread communication hardware resource.

### Claim 6 (depends on 4)

The method of claim 4, wherein the request by the respective hardware thread on behalf of the respective process to access the respective inter-thread communication hardware resource comprises a request to send data to the respective inter-thread communication hardware resource by the respective hardware thread on behalf of the respective process, and wherein the method further comprises granting the request to access the respective inter-thread communication hardware resource based at least in part on the permission data associated with the respective process indicating that the respective process is permitted to perform a send type access of the respective inter-thread communication hardware resource.

### Claim 7 (depends on 1)

The method of claim 1, wherein the permission data associated with each mapped process in the process context translation data structure includes data indicating a process identifier corresponding to each mapped process, a inter-thread communication resource identifier corresponding to each inter-thread communication hardware resource associated with the mapped process, and access data indicating an access type that the mapped process is permitted for the inter-thread communication hardware resource corresponding to the inter-thread communication resource identifier.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining whether the respective process is permitted to access the respective inter-thread communication hardware resource includes determining whether a process identifier corresponding to the respective process is stored in permission data of the process context translation data structure.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining whether the respective process is permitted to access the respective inter-thread communication hardware resource includes, in response to determining that a process identifier corresponding to the respective process is stored in the process context translation data structure, determining whether the process identifier corresponding to the respective process is associated with an inter-thread communication resource identifier corresponding to the respective inter-thread communication hardware resource, and whether the access data corresponding to the inter-thread communication resource identifier indicates that the respective process is permitted to access the respective inter-thread communication hardware resource.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
executing an instruction on the respective hardware thread on behalf of the respective process; and
during execution of the instruction, requesting access the respective inter-thread communication hardware resource.

### Claim 11 (depends on 1)

The method of claim 1, wherein denying the request to access the respective inter-thread communication hardware resource includes signaling an exception to a hypervisor or supervisor.

### Claim 12 (depends on 1)

The method of claim 1, further comprising, in response to determining that the respective process is permitted to access the respective inter-thread communication hardware resource, granting the request to access the respective inter-thread communication hardware resource by moving data between the respective inter-thread communication hardware resource and a register from a register file.

### Claim 13 (depends on 1)

The method of claim 1, wherein the process context translation data structure includes a translation table including an entry for each mapped process, wherein each entry includes a process identifier corresponding to at least one mapped process, an inter-thread communication resource identifier for at least one inter-thread communication hardware resource associated with the mapped process of the entry, and access data indicating an access type for the mapped process of the entry and the inter-thread communication hardware resource corresponding to the inter-thread communication resource identifier included in the entry.

### Claim 14 (depends on 13)

The method of claim 13, wherein determining whether the respective process is permitted to access the respective inter-thread communication hardware resource includes determining whether any entry of the translation table includes a process identifier corresponding to the respective process.

### Claim 15 (depends on 1)

The method of claim 1, wherein the plurality of hardware threads are disposed in a plurality of nodes interconnected by the on-chip network.

### Claim 16

A circuit arrangement, comprising:
a processor chip including an on-chip network; and
a plurality of nodes disposed on the processor chip and coupled to the on-chip network in a network on chip (NOC) arrangement, wherein each node among the plurality of nodes includes at least one hardware thread;
wherein a first node among the plurality of nodes is configured to, in response to a request by a respective hardware thread in the first node on behalf of a respective process to access a respective inter-thread communication hardware resource connected to the on-chip network, access permission data from a process context translation data structure, wherein the process context translation data structure maps each of a plurality of processes to a plurality of inter-thread communication hardware resources and stores permission data for each mapped process, wherein the permission data indicates which inter-thread communication hardware resources each mapped process is permitted to access, wherein the first node is further configured to determine from the permission data whether the respective process is permitted to access the respective inter-thread communication hardware resource, and in response to determining that the respective process is not permitted to access the respective inter-thread communication hardware resource, deny the request to access the respective inter-thread communication hardware resource.

### Claim 17 (depends on 16)

The circuit arrangement of claim 16, wherein the first node is configured to determine whether the respective process is permitted to access the respective inter-thread communication hardware resource by determining whether the respective process is a mapped process in the process context translation data structure.

### Claim 18 (depends on 16)

The circuit arrangement of claim 16, wherein the permission data indicates, for each mapped process, one or more access types for one or more inter-thread communication hardware resources.

### Claim 19 (depends on 18)

The circuit arrangement of claim 18, wherein the request by the respective hardware thread on behalf of the respective process to access the respective inter-thread communication hardware resource comprises a request to receive data from the respective inter-thread communication hardware resource by the respective hardware thread on behalf of the respective process, and wherein the first node is configured to grant the request to access the respective inter-thread communication hardware resource based at least in part on the permission data associated with the respective process indicating that the respective process is permitted to perform a receive type access of the respective inter-thread communication hardware resource.

### Claim 20 (depends on 18)

The circuit arrangement of claim 18, wherein the request by the respective hardware thread on behalf of the respective process to access the respective inter-thread communication hardware resource comprises a request to send data to the respective inter-thread communication hardware resource by the respective hardware thread on behalf of the respective process, and wherein the first node is configured to grant the request to access the respective inter-thread communication hardware resource based at least in part on the permission data associated with the respective process indicating that the respective process is permitted to perform a send type access of the respective inter-thread communication hardware resource.

### Claim 21 (depends on 20)

The circuit arrangement of claim 20, wherein the request by the respective hardware thread on behalf of the respective process to access the respective inter-thread communication hardware resource comprises a broadcast request.

### Claim 22 (depends on 16)

The circuit arrangement of claim 16, wherein the first node is configured to deny the request to access the respective inter-thread communication hardware resource by signaling an exception to a hypervisor or supervisor.

### Claim 23 (depends on 16)

The circuit arrangement of claim 16, wherein the first node is configured to, in response to determining that the respective process is permitted to access the respective inter-thread communication hardware resource, grant the request to access the respective inter-thread communication hardware resource by moving data between the respective inter-thread communication hardware resource and a register from a register file.

### Claim 24 (depends on 16)

An integrated circuit device including the circuit arrangement of claim 16.

### Claim 25 (depends on 16)

A program product comprising a computer readable medium and logic definition program code stored on the computer readable medium and defining the circuit arrangement of claim 16.
