# US 2022/0030065 A1 · Reuse of execution environments while guaranteeing isolation in serverless computing

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

- Number: US 2022/0030065 A1
- Document ID: US20220030065A1
- Status: Published application
- Kind: A1
- Application number: 17/329,327
- Filed: 2021-05-25
- Published: 2022-01-27
- Earliest claimed: 2020-07-21
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Dominik Rene Tornow; Urmil Vijay Dave; Kyle Andrew Donald Mestery; Ian Wells
- Web page: https://patentgrep.com/patent/US20220030065A1

## CPC

- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G05B 2219/23428: Select program from look up tables as function of detector states, pointer, index to program
- G05B 2219/34299: Memory with I-O and pointer, external I-O with map, edit map, pointer to adapt I-O
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

Systems, methods, and computer-readable media are provided for reusing execution environments and code of serverless functions while ensuring isolation in serverless computing environments. In some examples, a method can include, in response to a first request to run a serverless function, executing, at an execution environment on a network, computer-readable code configured to perform the serverless function; after the computer-readable code has executed, modifying a pointer to an area of memory used to store a first state of the serverless function to reference a different area of memory; in response to a second request to run the serverless function, reusing, at the execution environment, the computer-readable code to perform the serverless function; and based on the pointer referencing the different area of memory, using the different area of memory to store a second state of the serverless function.

## Claims

### Claim 1

A method comprising:
executing, at an execution environment on a network, computer-readable code configured to perform a serverless function;
modifying a pointer identifying an area of memory used to store a first state of the serverless function, the pointer being modified to identify a different area of memory;
reusing, at the execution environment, the computer-readable code to perform the serverless function; and
based on a determination that the pointer identifies the different area of memory, storing a second state of the serverless function in the different area of memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the area of memory is in a different memory device than the different area of memory.

### Claim 3 (depends on 1)

The method of claim 1, wherein the area of memory and the different area of memory correspond to different memory locations in a same memory device.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
instantiating, at the execution environment, multiple instances of the serverless function within a same process, the multiple instances of the serverless function being assigned different areas of memory; and
storing respective states of the multiple instances of the serverless function in respective areas of memory from the different areas of memory.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
executing a first instance of the serverless function and a second instance of the serverless function at least partly in parallel; and
storing state data of the first instance of the serverless function and the second instance of the serverless function in different areas of memory.

### Claim 6 (depends on 5)

The method of claim 5, wherein a portion of computer-readable code implementing the first instance of the serverless function is assigned one or more security permissions granting access to a first one of the different areas of memory and prohibiting access to a second one of the different areas of memory, and wherein a different portion of computer-readable code implementing the second instance of the serverless function is assigned one or more security permissions granting access to the second one of the different areas of memory and prohibiting access to the first one of the different areas of memory.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
identifying the different area of memory; and
assigning the different area of memory to at least one of the computer-readable code, the serverless function and the second state of the serverless function.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
based on the executing of the computer-readable code configured to perform the serverless function, generating at least one of an output of the serverless function, an output of the computer-readable code, and data associated with the serverless function.

### Claim 9 (depends on 1)

The method of claim 1, wherein the different area of memory comprises an unused area of memory in an initialize state, and wherein the execution environment comprises one of a software container, a virtual machine, or a server.

### Claim 10

A system comprising:
one or more processors; and
at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
execute, at an execution environment on a network, computer-readable code configured to perform a serverless function;
modify a pointer identifying an area of memory used to store a first state of the serverless function, the pointer being modified to identify a different area of memory;
reuse, at the execution environment, the computer-readable code to perform the serverless function; and
based on a determination that the pointer identifies the different area of memory, store a second state of the serverless function in the different area of memory.

### Claim 11 (depends on 10)

The system of claim 10, the at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
instantiate, at the execution environment, multiple instances of the serverless function within a same process, the multiple instances of the serverless function being assigned different areas of memory; and
store respective states of the multiple instances of the serverless function in respective areas of memory from the different areas of memory.

### Claim 12 (depends on 10)

The system of claim 10, the at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
execute a first instance of the serverless function and a second instance of the serverless function at least partly in parallel; and
store state data of the first instance of the serverless function and the second instance of the serverless function in different areas of memory.

### Claim 13 (depends on 12)

The system of claim 12, wherein a portion of computer-readable code implementing the first instance of the serverless function is assigned one or more security permissions granting access to a first one of the different areas of memory and prohibiting access to a second one of the different areas of memory, and wherein a different portion of computer-readable code implementing the second instance of the serverless function is assigned one or more security permissions granting access to the second one of the different areas of memory and prohibiting access to the first one of the different areas of memory.

### Claim 14 (depends on 10)

The system of claim 10, the at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
identify the different area of memory; and
assign the different area of memory to at least one of the computer-readable code, the serverless function and the second state of the serverless function.

### Claim 15 (depends on 10)

The system of claim 10, the at least one computer-readable storage medium having stored thereon instructions which, when executed by the one or more processors, cause the one or more processors to:
generate, based on the executing of the computer-readable code configured to perform the serverless function, at least one of an output of the serverless function, an output of the computer-readable code, and data associated with the serverless function.

### Claim 16 (depends on 1)

The system of claim 1, wherein the different area of memory comprises an unused area of memory in an initialize state, and wherein the execution environment comprises one of a software container, a virtual machine, or a server.

### Claim 17

A non-transitory computer-readable storage medium having stored thereon instructions which, when executed by one or more processors, cause the one or more processors to:
execute, at an execution environment on a network, computer-readable code configured to perform a serverless function;
modify a pointer identifying an area of memory used to store a first state of the serverless function, the pointer being modified to identify a different area of memory;
reuse, at the execution environment, the computer-readable code to perform the serverless function; and
based on a determination that the pointer identifies the different area of memory, store a second state of the serverless function in the different area of memory.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising instructions which, when executed by the one or more processors, cause the one or more processors to:
instantiate, at the execution environment, multiple instances of the serverless function within a same process, the multiple instances of the serverless function being assigned different areas of memory; and
store respective states of the multiple instances of the serverless function in respective areas of memory from the different areas of memory.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising instructions which, when executed by the one or more processors, cause the one or more processors to:
execute a first instance of the serverless function and a second instance of the serverless function at least partly in parallel; and
store state data of the first instance of the serverless function and the second instance of the serverless function in different areas of memory, wherein a portion of computer-readable code implementing the first instance of the serverless function is assigned one or more security permissions granting access to a first one of the different areas of memory and prohibiting access to a second one of the different areas of memory, and wherein a different portion of computer-readable code implementing the second instance of the serverless function is assigned one or more security permissions granting access to the second one of the different areas of memory and prohibiting access to the first one of the different areas of memory.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the different area of memory comprises an unused area of memory in an initialize state, and wherein the execution environment comprises one of a software container, a virtual machine, or a server.
