# US 2025/0315518 A1 · Consistent Speculation of Pointer Authentication

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

- Number: US 2025/0315518 A1
- Document ID: US20250315518A1
- Status: Published application
- Kind: A1
- Application number: 19/241,224
- Filed: 2025-06-17
- Published: 2025-10-09
- Earliest claimed: 2023-09-18
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: John D Pape; Deepankar Duggal; Christopher M Tsay; Andrew H Lin; Corey C Stappenbeck
- Web page: https://patentgrep.com/patent/US20250315518A1

## CPC

- G06F 21/54: by adding security routines or objects to programs
- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/3842: {Speculative instruction execution}
- G06F 21/556: {involving covert channels, i.e. data leakage between processes (inhibiting the analysis of circuitry or operation with measures against power attack G06F21/755)}
- G06F 21/75: by inhibiting the analysis of circuitry or operation
- G06F 2207/7219: Countermeasures against side channel or fault attacks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an embodiment, a processor includes hardware circuitry which may be used to authenticate instruction operands. The processor may execute instructions that perform operand authentication both speculatively and non-speculatively. During speculative execution of such instructions, the processor may execute authentication such that no differences in observable state of the processor, relative to authentication result, are detectable via a side channel. During speculative execution, a result of authentication may be deferred until speculative execution of the instruction, and additional instructions, may be completed. Upon resolution of a condition that indicates acceptance of the speculative execution, a speculative execution result may cause a processor exception and stalling of execution at the instruction to be performed.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A processor, comprising:
an execution circuit configured to:
speculatively execute an instruction stream responsive to an unresolved condition, wherein to speculatively execute the instruction stream the execution circuit is configured to:
defer reporting of an exception condition occurring during execution of an instruction of the instruction stream to generate an observable state unaffected by the exception condition, wherein to generate the observable state the execution circuit is configured to complete execution of at least one instruction of the instruction stream subsequent to the occurring of the exception condition; and
report the exception condition responsive to resolution of the condition.

### Claim 22 (depends on 21)

The processor as recited in claim 21, wherein the execution circuit is further configured to execute, responsive to resolution of the unresolved condition, the instruction stream, wherein to execute the instruction stream the execution circuit is further configured to:
suspend processor execution at the instruction; and
generate a processor exception.

### Claim 23 (depends on 21)

The processor as recited in claim 21, wherein the observable state comprises a cumulative state of processor circuitry detectable by an instrumented side channel of the processor, and wherein the observable state is independent of the exception condition based on an absence of detectable differences in respective cumulative states of processor circuitry being observable by the instrumented side channel of the processor for different generated results of execution of the instruction.

### Claim 24 (depends on 21)

The processor as recited in claim 21, wherein the exception condition comprises an authentication failure, wherein the deferred reporting of the exception condition is a one of a plurality of exception conditions of the speculative execution of the instruction stream, and wherein, subsequent to resolution of the condition, a processor exception is generated according to an oldest exception condition of the plurality of exception conditions.

### Claim 25 (depends on 21)

The processor as recited in claim 21, wherein the instruction is a load instruction comprising authentication of an instruction operand, wherein the instruction operand is a signed memory pointer comprising a memory address and a signature stored in a single memory word of the processor, and wherein to speculatively execute the instruction the processor is configured to:
generate an unsigned memory pointer comprising the memory address of the signed memory pointer; and
load a value without authentication of the instruction operand according to the unsigned memory pointer.

### Claim 26 (depends on 21)

The processor as recited in claim 21, wherein the instruction is a branch instruction comprising authentication of an instruction operand, wherein the instruction operand is a signed memory pointer comprising a memory address and a signature stored in a single memory word of the processor, and wherein to execute the instruction the processor is configured to:
generate an unsigned memory pointer comprising the memory address of the signed memory pointer; and
transfer control of execution to the memory address of the unsigned memory pointer.

### Claim 27 (depends on 21)

The processor as recited in claim 21, wherein the instruction comprises authentication of an instruction operand, wherein the instruction operand comprises a memory address and a memory tag, and wherein the exception condition comprises a comparison failure of the memory tag with an associated memory tag of a memory region.

### Claim 28

A method, comprising:
speculatively executing, by an execution circuit of a processor, an instruction stream responsive to an unresolved condition, the speculatively executing comprising:
deferring reporting of an exception condition occurring during execution of an instruction of the instruction stream to generate an observable state unaffected by the exception condition, wherein to generate the observable state the execution circuit is configured to complete execution of at least one instruction of the instruction stream subsequent to the occurring of the exception condition; and
reporting the exception condition responsive to resolution of the condition.

### Claim 29 (depends on 28)

The method of claim 28, further comprising executing, responsive to resolution of the unresolved condition, the instruction stream, comprising:
suspending processor execution at the instruction; and
generating a processor exception.

### Claim 30 (depends on 28)

The method of claim 28, wherein the observable state comprises a cumulative state of processor circuitry detectable by an instrumented side channel of the processor, and wherein the observable state is independent of the exception condition based on an absence of detectable differences in respective cumulative states of processor circuitry being observable by the instrumented side channel of the processor for different generated results of execution of the instruction.

### Claim 31 (depends on 28)

The method of claim 28, wherein the exception condition comprises an authentication failure, wherein the deferred reporting of the exception condition is a one of a plurality of exception conditions of the speculative execution of the instruction stream, and wherein, subsequent to resolution of the condition, a processor exception is generated according to an oldest exception condition of the plurality of exception conditions.

### Claim 32 (depends on 28)

The method of claim 28, wherein the instruction is a load instruction comprising authentication of an instruction operand, wherein the instruction operand is a signed memory pointer comprising a memory address and a signature stored in a single memory word of the processor, and wherein speculatively executing the instruction comprises:
generating an unsigned memory pointer comprising the memory address of the signed memory pointer; and
loading a value without authentication of the instruction operand according to the unsigned memory pointer.

### Claim 33 (depends on 28)

The method of claim 28, wherein the instruction is a branch instruction comprising authentication of an instruction operand, wherein the instruction operand is a signed memory pointer comprising a memory address and a signature stored in a single memory word of the processor, and wherein executing the instruction comprises:
generating an unsigned memory pointer comprising the memory address of the signed memory pointer; and
transferring control of execution to the memory address of the unsigned memory pointer.

### Claim 34 (depends on 28)

The method of claim 28, wherein the instruction comprises authentication of an instruction operand, wherein the instruction operand comprises a memory address and a memory tag, and wherein the exception condition comprises a comparison failure of the memory tag with an associated memory tag of a memory region.

### Claim 35

A system, comprising:
a memory configured to store a plurality of instructions; and
a processor comprising an execution circuit configured to:
speculatively execute an instruction stream responsive to an unresolved condition, wherein to speculatively execute the instruction stream the execution circuit is configured to:
defer reporting of an exception condition occurring during execution of an instruction of the instruction stream to generate an observable state unaffected by the exception condition, wherein to generate the observable state the execution circuit is configured to complete execution of at least one instruction of the instruction stream subsequent to the occurring of the exception condition; and
responsive to resolution of the condition, report the exception condition.

### Claim 36 (depends on 35)

The system as recited in claim 35, wherein the execution circuit is further configured to execute, responsive to resolution of the unresolved condition, the instruction stream, wherein to execute the instruction stream the execution circuit is further configured to:
suspend processor execution at the instruction; and
generate a processor exception.

### Claim 37 (depends on 35)

The system as recited in claim 35, wherein the observable state comprises a cumulative state of processor circuitry detectable by an instrumented side channel of the processor, and wherein the observable state is independent of the exception condition based on an absence of detectable differences in respective cumulative states of processor circuitry being observable by the instrumented side channel of the processor for different generated results of execution of the instruction.

### Claim 38 (depends on 35)

The system as recited in claim 35, wherein the exception condition comprises an authentication failure, wherein the deferred reporting of the exception condition is a one of a plurality of exception conditions of the speculative execution of the instruction stream, and wherein, subsequent to resolution of the condition, a processor exception is generated according to an oldest exception condition of the plurality of exception conditions.

### Claim 39 (depends on 35)

The system as recited in claim 35, wherein the instruction is a load instruction comprising authentication of an instruction operand, wherein the instruction operand is a signed memory pointer comprising a memory address and a signature stored in a single memory word of the processor, and wherein to speculatively execute the instruction the processor is configured to:
generate an unsigned memory pointer comprising the memory address of the signed memory pointer; and
load a value without authentication of the instruction operand according to the unsigned memory pointer.

### Claim 40 (depends on 35)

The system as recited in claim 35, wherein the instruction comprises authentication of an instruction operand, wherein the instruction operand comprises a memory address and a memory tag, and wherein the exception condition comprises a comparison failure of the memory tag with an associated memory tag of a memory region.
