# US 10,871,974 B1 · Target injection safe method for inlining registration calls

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

- Number: US 10,871,974 B1
- Document ID: US10871974B1
- Status: Granted
- Kind: B1
- Application number: 16/746,731
- Filed: 2020-01-17
- Published: 2021-01-14
- Granted: 2020-12-22
- Earliest claimed: 2019-07-08
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Nadav Amit; Frederick Joseph Jacobs; Michael Wei
- Web page: https://patentgrep.com/patent/US10871974B1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- H04M 3/42221: {Conversation recording systems (at the subscriber's set H04M1/656)}
- G06F 9/30058: {Conditional branch instructions}
- G06F 9/30065: {Loop control instructions; iterative instructions, e.g. LOOP, REPEAT}
- G06F 9/30101: {Special purpose registers}
- G06F 9/323: {for indirect branch instructions}
- G06F 9/35: Indirect addressing
- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/4486: {Formation of subprogram jump address}
- G06F 12/10: Address translation
- G06F 21/54: by adding security routines or objects to programs
- G06N 20/00: Machine learning
- H04M 3/42059: {Making use of the calling party identifier}
- H04M 3/5175: {Call or contact centers supervision arrangements}
- H04M 3/5191: {interacting with the Internet}
- H04M 3/523: with call distribution or queueing
- G06F 2212/65: Details of virtual memory and virtual address translation
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of redirecting an indirect call in a callback list associated with a list of functions that are registered, includes the steps of: upon registering the list of functions, determining a list of function pointers, each of which corresponds to an address in an associated callback; for each function pointer in the list of function pointers, adding a direct call instruction to the registration trampoline corresponding to the associated callback of the function pointer; and upon invoking the associated callback of one of the function pointers in the list of function pointers, invoking the corresponding direct call instruction in the registration trampoline.

## Claims

### Claim 1

A method of redirecting an indirect call in a callback list associated with a list of functions that are registered, to a direct call in a registration trampoline, the method comprising:
upon registering the list of functions, determining a list of function pointers, each of which corresponds to an address in an associated callback;
for each function pointer in the list of function pointers, adding a direct call instruction to the registration trampoline corresponding to the associated callback of the function pointer; and
upon invoking the associated callback of one of the function pointers in the list of function pointers, invoking the corresponding direct call instruction in the registration trampoline.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the list of function pointers includes unrolling a loop to expose the address in the associated callback.

### Claim 3 (depends on 1)

The method of claim 1, wherein the list of function pointers is registered by an operating kernel.

### Claim 4 (depends on 1)

The method of claim 1, wherein the list of function pointers is a filter list.

### Claim 5 (depends on 4)

The method of claim 4, wherein the filter list is derived from a system call filter.

### Claim 6 (depends on 1)

The method of claim 1, wherein the registration trampoline is implemented as an instance trampoline.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
upon receiving a modification to the list of function pointers, updating an address associated with the modification in the direct call instruction in the registration trampoline corresponding to the modification.

### Claim 8

A system comprising:
a memory containing one or more user processes, and
an operating system kernel having a memory code region that has a different mapping for each user process; and
one or more CPUs coupled to the memory, the one or more CPUs running the operating system kernel and the one or more user processes;
wherein the operating system kernel is configured to:
upon registering a list of functions, determine a list of function pointers, each of which corresponds to an address in an associated callback;
for each function pointer in the list of function pointers, add a direct call instruction to the registration trampoline corresponding to the associated callback of the function pointer; and
upon invoking the associated callback of one of the function pointers in the list of function pointers, invoke the corresponding direct call instruction in the registration trampoline.

### Claim 9 (depends on 8)

The system of claim 8, wherein the operating system kernel determines the list of functions by unrolling a loop to expose the address in the associated callback.

### Claim 10 (depends on 8)

The system of claim 8, wherein the list of function pointers is a filter list.

### Claim 11 (depends on 10)

The system of claim 10, wherein the filter list is derived from a system call filter.

### Claim 12 (depends on 8)

The system of claim 8, wherein the search trampoline is implemented as an instance trampoline.

### Claim 13 (depends on 8)

The system of claim 8, wherein
the operating system kernel, upon receiving a modification to the list of function pointers, updates an address associated with the modification in the direct call instruction in the registration trampoline corresponding to the modification.

### Claim 14

A non-transitory computer-readable medium comprising instructions executable in a computer system, wherein the instructions when executed in the computer system cause the computer system to carry out a method of redirecting an indirect call in a callback list associated with a list of functions that are registered, to a direct call in a registration trampoline, the method comprising:
upon registering the list of functions, determining a list of function pointers, each of which corresponds to an address in an associated callback;
for each function pointer in the list of function pointers, adding a direct call instruction to the registration trampoline corresponding to the associated callback of the function pointer; and
upon invoking the associated callback of one of the function pointers in the list of function pointers, invoking the corresponding direct call instruction in the registration trampoline.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein determining the list of function pointers includes unrolling a loop to expose the address in the associated callback.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the list of functions is registered by an operating kernel.

### Claim 17 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the list of function pointers is a filter list.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the filter list is derived from a system call filter.

### Claim 19 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the registration trampoline is implemented as an instance trampoline.

### Claim 20 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the method further comprises:
upon receiving a modification to the list of function pointers, updating an address associated with the modification in the direct call instruction in the registration trampoline corresponding to the modification.
