# US 2017/0293574 A1 · System and Method for Providing Kernel Intrusion Prevention and Notification

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

- Number: US 2017/0293574 A1
- Document ID: US20170293574A1
- Status: Published application
- Kind: A1
- Application number: 15/634,992
- Filed: 2017-06-27
- Published: 2017-10-12
- Earliest claimed: 2014-12-19
- Assignees: Dell Products L.P.
- Applicants: Dell Products, LP
- Inventors: Stuart Allen Berke; Mi Wang; Vivek Dharmadhikari
- Web page: https://patentgrep.com/patent/US20170293574A1

## CPC

- G06F 12/1441: {for a range}
- G06F 12/0828: {with concurrent directory accessing, i.e. handling multiple concurrent coherency transactions}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 2212/1016: Performance improvement
- G06F 2212/1052: Security improvement
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory protection module includes comparison logic that has a write-once window CSR that stores a memory address range, and window protection logic. The comparison logic receives a memory write transaction, determines a memory address of the memory write transaction, and provides an indication as to whether or not the memory address is included in the memory address range. The window protection logic receives the memory transaction receives the indication from the comparison logic, allows the memory write transaction to proceed in response to the indication indicating that the memory address is not included in the memory address range, and drops the memory write transaction in response to the indication indicating that the memory address is included in the memory address range.

## Claims

### Claim 1

A memory protection module, comprising:
comparison logic coupled to a memory interface and including a window control status register (CSR), wherein:
the window CSR is configured as a rewritable register; and
the window CSR stores a memory address range; and
window protection logic coupled to the memory interface;
wherein the comparison logic:
receives a memory write transaction from the memory interface;
determines a memory address of the memory write transaction;
provides a first indication as to whether or not the memory address is included in the memory address range;
clears the window CSR in response to a reset of the memory protection module;
receives the memory address range in response to the reset;
stores the memory address range in the window CSR in response to receiving the memory address range;
receives a lock window CSR transaction; and
locks the window CSR in response to receiving the lock window CSR transaction; and
wherein the window protection logic:
receives the memory transaction from the memory interface;
receives the first indication from the comparison logic;
allows the memory write transaction to proceed in response to the first indication indicating that the memory address is not included in the memory address range; and
drops the memory write transaction in response to the first indication indicating that the memory address is included in the memory address range.

### Claim 2 (depends on 1)

The memory protection module of claim 1, wherein the window protection logic further provides a third indication that the memory write transaction has been dropped.

### Claim 3 (depends on 2)

The memory protection module of claim 2, wherein the third indication comprises one of a processor interrupt and a machine check exception.

### Claim 4 (depends on 1)

The memory protection module of claim 1, wherein the memory address range corresponds to an address range of a memory that stores operating system kernel code.

### Claim 5 (depends on 1)

The memory protection module of claim 1, wherein the comparison logic further:
receives a third memory write transaction to re-write the window CSR; and
provides a third indication that the memory protection module received an attempt to re-write the first window CSR.

### Claim 6 (depends on 1)

The memory protection module of claim 1, wherein the comparison logic further comprises a plurality of window CSRs, the plurality of window CSRs comprising the window CSR.

### Claim 7 (depends on 1)

The memory protection module of claim 1, wherein the window protection logic:
receives a third memory transaction from a direct memory access (DMA) device;
receives a third indication from the DMA device, the third indication being as to whether or not a third memory address of the third memory transaction is included in the memory address range;
allows the third memory write transaction to proceed in response to the third indication indicating that the third memory address is not included in the memory address range; and
drops the third memory write transaction in response to the third indication indicating that the third memory address is included in the memory address range.

### Claim 8

A method, comprising:
receiving, by comparison logic of a memory protection module, a memory write transaction from a memory interface, wherein the comparison logic is coupled to the memory interface and includes a window control status register (CSR) that is configured as a rewritable register and that stores a memory address range;
determining, by the protection logic, a memory address of the memory write transaction;
providing, by the protection logic, a first indication as to whether the memory address is included in the memory address range;
clearing, by the protection logic, the window CSR in response to a reset of the memory protection module;
receiving, by the protection logic, the memory address range in response to the reset;
storing, by the protection logic, the memory address range in the window CSR in response to receiving the memory address range;
receiving, by the protection logic, a lock window CSR transaction;
locking, by the protection logic, the window CSR in response to receiving the lock window CSR transaction;
receiving, by protection logic of the memory protection module, the memory transaction from the memory interface, wherein the protection logic is coupled to the memory interface;
receiving, by the protection logic, the first indication from the comparison logic;
allowing, by the protection logic, the memory write transaction to proceed in response to the first indication indicating that the memory address is not included in the memory address range; and
dropping, by the protection logic, the memory write transaction in response to the first indication indicating that the memory address is included in the memory address range.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
providing, by the window protection logic, a third indication that the memory write transaction has been dropped.

### Claim 10 (depends on 9)

The method of claim 9, wherein the third indication comprises one of a processor interrupt and a machine check exception.

### Claim 11 (depends on 8)

The method of claim 8, wherein the memory address range corresponds to an address range of a memory that stores operating system kernel code.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
receiving, by the comparison logic, a third memory write transaction to re-write the window CSR; and
providing, by the comparison logic, a third indication that the first memory protection module received an attempt to re-write the window CSR.

### Claim 13 (depends on 8)

The method of claim 8, wherein the first comparison logic further comprises a plurality of window CSRs, the plurality of window CSRs comprising the window CSR.

### Claim 14 (depends on 8)

The method of claim 8, wherein the window protection logic:
receiving, by the window protection logic, a third memory transaction from a direct memory access (DMA) device;
receiving, by the window protection logic, a third indication from the DMA device, the third indication being as to whether or not a third memory address of the third memory transaction is included in the memory address range;
allowing, by the window protection logic, the third memory write transaction to proceed in response to the third indication indicating that the third memory address is not included in the memory address range; and
dropping, by the window protection logic, the third memory write transaction in response to the third indication indicating that the third memory address is included in the memory address range.

### Claim 15

A memory protection module, comprising:
comparison logic coupled to a memory; and
window protection logic coupled to the memory interface;
wherein the comparison logic:
receives a memory write transaction from the memory interface;
determines a memory address of the memory write transaction;
provides a first indication as to whether or not the memory address is included in the memory address range;
clears the window CSR in response to a reset of the memory protection module;
receives the memory address range in response to the reset;
stores the memory address range in the window CSR in response to receiving the memory address range;
receives a lock window CSR transaction; and
locks the window CSR in response to receiving the lock window CSR transaction; and
wherein the window protection logic:
receives the memory transaction from the memory interface;
receives the first indication from the comparison logic;
allows the memory write transaction to proceed in response to the first indication indicating that the memory address is not included in the memory address range; and
drops the memory write transaction in response to the first indication indicating that the memory address is included in the memory address range.

### Claim 16 (depends on 15)

The memory protection module of claim 15, wherein the first window protection logic further provides a third indication that the memory write transaction has been dropped.

### Claim 17 (depends on 16)

The memory protection module of claim 16, wherein the third indication comprises one of a processor interrupt and a machine check exception.

### Claim 18 (depends on 15)

The memory protection module of claim 15, wherein the memory address range corresponds to an address range of a memory that stores operating system kernel code.

### Claim 19 (depends on 15)

The memory protection module of claim 15, wherein the window protection logic:
receives a third memory transaction from a direct memory access (DMA) device;
receives a third indication from the DMA device, the third indication being as to whether or not a third memory address of the third memory transaction is included in the memory address range;
allows the third memory write transaction to proceed in response to the third indication indicating that the third memory address is not included in the memory address range; and
drops the third memory write transaction in response to the third indication indicating that the third memory address is included in the memory address range.
