# US 11,119,789 B2 · Kernel space measurement

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

- Number: US 11,119,789 B2
- Document ID: US11119789B2
- Status: Granted
- Kind: B2
- Application number: 15/962,366
- Filed: 2018-04-25
- Published: 2019-10-31
- Granted: 2021-09-14
- Earliest claimed: 2018-04-25
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Geoffrey Ndu; Nigel Edwards
- Web page: https://patentgrep.com/patent/US11119789B2

## CPC

- G06F 9/4406: {Loading of operating system}
- G06F 9/30098: {Register arrangements}
- G06F 21/575: {Secure boot}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method comprising: generating, with a device, a nonce; writing, with the device, the nonce to a memory location accessible to a kernel; initializing the kernel; in response to an end of initialization, measuring a specified kernel space to produce a first result; writing the first result to a register of a second device; writing a location and size of the specified kernel space to a buffer; measuring the buffer; writing a result of buffer measurement to a second register of the second device; requesting a quote from the second device, the quote to include the nonce, the contents of the register, and the contents of the second register; and passing the quote to the device.

## Claims

### Claim 1

A method comprising:
generating, with a first device, a nonce;
writing, with the first device, the nonce to a memory location accessible to a kernel;
initializing the kernel;
in response to an end of the initialization of the kernel, measuring a specified kernel space to produce a first result;
writing the first result to a first register of a second device;
writing a location and a size of the specified kernel space to a buffer;
measuring the buffer including the location and the size of the specified kernel space to produce a buffer measurement result comprising a hash value;
writing the buffer measurement result to a second register of the second device;
requesting a quote from the second device;
passing, to the first device, the quote including the nonce, the first result from the first register, and the buffer measurement result from the second register;
verifying, by the first device, the buffer measurement result including the hash value;
in response to the verifying, measuring, by the first device, the specified kernel space to produce a second result; and
determining, by the first device, that a potential compromise of the kernel has occurred in response to the second result not matching the first result.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
sending, with the kernel to an agent operating in the first device, an indicator to indicate that the kernel is ready to be measured;
verifying, with the agent, a signature of the quote, the nonce, and the buffer measurement result;
measuring, with the agent, the specified kernel space to produce a further result; and
verifying, with the agent, that the further result matches the first result.

### Claim 3 (depends on 2)

The method of claim 2, wherein the specified kernel space is a kernel space of an inner kernel of a split kernel operating system.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
confirming, with the agent, that a processor of a system that the kernel is installed on is operating in a non-root mode; and
confirming, with the agent, that an exit to a root mode is a valid memory address that is within range of the kernel space of the inner kernel.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
in response to the processor operating in the non-root mode and the exit to the root mode not being within the range of the kernel space of the inner kernel, initiating, with the agent, a remedial action.

### Claim 6 (depends on 2)

The method of claim 2, wherein the agent continually measures and verifies the specified kernel space.

### Claim 7 (depends on 2)

The method of claim 2, further comprising:
response to the further result not matching the first result, initiating, with the agent, a remedial action; and
in response to the nonce, the signature, or the buffer measurement result not being verified, initiating, with the agent, a remedial action.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
determining, with the agent, that the initialization of the kernel took an amount of time greater than a threshold, the amount of time being based on a reception of a starting time of the initialization of the kernel in the indicator.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
in response to determining that the initialization of the kernel took the amount of time greater than the threshold, initiating, with the agent, a remedial action.

### Claim 10 (depends on 1)

The method of claim 1, wherein the second device is a trusted platform module (TPM).

### Claim 11 (depends on 1)

The method of claim 1, wherein the first device is a baseboard controller manager (BMC).

### Claim 12 (depends on 1)

The method of claim 1, wherein the a hash value is produced by a hash function applied to a content of the buffer including the location and the size of the specified kernel space.

### Claim 13

A system comprising:
a Root of Trust (RoT) device;
a baseboard management controller (BMC); and
a kernel of an operating system (OS), the kernel to measure a specified kernel space at an end of OS initialization to produce a kernel space measurement, extend a register of the RoT device with the kernel space measurement, pass an address and a size of the specified kernel space to a buffer, request a quote from the RoT device, and send the quote to the BMC, wherein the request for the quote includes a nonce generated by the BMC,
the RoT device to, in response to the request for the quote, generate the quote, wherein the quote includes the nonce and a content including the kernel space measurement of the register, and
the BMC to:
generate the nonce and write the nonce to a memory accessible by the kernel,
in response to reception of a ready signal from the kernel, obtain the address and the size of the specified kernel space from the buffer,
measure a content of the buffer including the address and the size of the specified kernel space to produce a buffer measurement comprising a hash value,
verify the buffer measurement, and
in response to verifying the buffer measurement, measure the specified kernel space and compare a result of the measurement of the specified kernel space by the BMC to the kernel space measurement in the quote.

### Claim 14 (depends on 13)

The system of claim 13, wherein the reception of the ready signal is indicated by reception of the quote.

### Claim 15 (depends on 13)

The system of claim 13, wherein the specified kernel space is a range of memory addresses given by a driver included in the kernel.

### Claim 16 (depends on 15)

The system of claim 15, wherein the driver included in the kernel is to measure the specified kernel space at the end of OS initialization.

### Claim 17 (depends on 13)

The system of claim 13, wherein the BMC is to verify the nonce included in the quote, and wherein the measurement of the specified kernel space by the BMC is further responsive to verifying the nonce included in the quote.

### Claim 18

A non-transitory machine-readable storage medium encoded with instructions executable by a system to:
in response to an end of a boot of an operating system (OS), measure a specified kernel space;
store a first result of the measurement to a first register of a first device;
store a plurality of addresses of the specified kernel space to a buffer;
measure the buffer containing the plurality of addresses of the specified kernel space to generate a second result;
store the second result of the measurement of the buffer to a second register of the first device;
request a quote from the first device;
send, to a baseboard management controller (BMC), the quote comprising a nonce generated by the BMC, the second result, and a content of the first register including the first result; and
send a ready to measure indicator to the BMC to cause the BMC to measure a content of the buffer to produce a buffer measurement comprising a hash value, verify the buffer measurement, and in response to verifying the buffer measurement, measure the specified kernel space and compare a result of the measurement of the specified kernel space by the BMC to the first result.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium of claim 18, wherein the BMC includes an agent to:
in response to the ready to measure indicator, measure the specified kernel space;
verify the nonce and the second result from the quote;
compare a third result of the measurement of the specified kernel space by the agent to the first result in the quote;
in response to failing to verify the nonce, initiate a remedial action; and
in response to the third result not matching the first result, initiate a remedial action.
