# US 2017/0286672 A1 · System, Apparatus And Method For Filtering Memory Access Logging In A Processor

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

- Number: US 2017/0286672 A1
- Document ID: US20170286672A1
- Status: Published application
- Kind: A1
- Application number: 15/088,318
- Filed: 2016-04-01
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Salmin Sultana; David M. Durham; Michael Lemay; Karanvir S. Grewal; Ravi L. Sahita
- Web page: https://patentgrep.com/patent/US20170286672A1

## CPC

- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 16/245: Query processing
- G06F 21/55: Detecting local intrusion or implementing counter-measures
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45591: {Monitoring or debugging support}
- G06F 2212/1052: Security improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F 2212/65: Details of virtual memory and virtual address translation
- G06F 2212/657: Virtual address space management
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, a processor comprises: a first storage including a plurality of entries to store an address of a portion of a memory in which information has been modified; a second storage to store an identifier of a process for which information is to be stored into the first storage; and a first logic to identify a modification to a first portion of the memory and store a first address of the first portion of the memory in a first entry of the first storage, responsive to a determination that a current identifier of a current process corresponds to the identifier stored in the second storage. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
a first storage including a plurality of entries to store an address of a portion of a memory in which information has been modified;
a second storage to store an identifier of a process for which information is to be stored into the first storage; and
a first logic to identify a modification to a first portion of the memory and store a first address of the first portion of the memory in a first entry of the first storage, responsive to a determination that a current identifier of a current process corresponds to the identifier stored in the second storage.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the first logic is to not store the first address in the first entry of the first storage, responsive to a determination that the current identifier of the current process does not correspond to the identifier stored in the second storage.

### Claim 3 (depends on 1)

The processor of claim 1, wherein the first logic is to store the first address further responsive to a determination that a write access to the first portion of the memory set a dirty indicator of a page table entry associated with the first portion of the memory.

### Claim 4 (depends on 1)

The processor of claim 1, wherein the first logic is to store one or more metadata into one or more metadata fields of the first entry of the first storage.

### Claim 5 (depends on 4)

The processor of claim 4, wherein the one or more metadata fields comprise an execute field to indicate whether code of the first portion of the memory has been executed and a read field to indicate whether information of the first portion of the memory has been read.

### Claim 6 (depends on 1)

The processor of claim 1, further comprising a second logic to store the plurality of entries of the first storage to a persistent storage, responsive to a determination that an index of the first storage is a predetermined value.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the processor is to access the persistent storage to identify a potential security violation, based at least in part on analysis of the plurality of entries stored to the persistent storage from the first storage.

### Claim 8 (depends on 7)

The processor of claim 7, wherein the processor is to compare an access pattern of the current process based on the plurality of entries to stored pattern information associated with the current process to identify the potential security violation.

### Claim 9 (depends on 6)

The processor of claim 6, wherein the processor is to determine an access pattern of the current process based at least in part on the plurality of entries stored in the first storage, and identify whether the access pattern matches at least one stored access pattern of a pattern database.

### Claim 10 (depends on 9)

The processor of claim 9, wherein the processor is to optimize one or more operating parameters responsive to a determination that the access pattern of the current process matches the at least one stored access pattern of the pattern database.

### Claim 11

At least one computer readable storage medium comprising instructions that when executed enable a system to:
responsive to a first access to a page of a memory, determine whether a first indicator of a page table entry associated with the page has been set and whether a process value stored in a filter storage matches a current process value; and
responsive to a determination that the first indicator has been set and that the process value matches the current process value, write an address of the page to a first entry of a first storage to indicate that the first access to the page occurred.

### Claim 12 (depends on 11)

The at least one computer readable medium of claim 11, further comprising instructions that when executed enable the system to determine whether an index value of the first storage is a predetermined value and, responsive to a determination that the index value is the predetermined value, write a plurality of entries of the first storage to a backing store, the backing store comprising a non-volatile storage.

### Claim 13 (depends on 12)

The at least one computer readable medium of claim 12, further comprising instructions that when executed enable the system to cause a virtual machine exit to a hypervisor, to perform the write to the backing store.

### Claim 14 (depends on 11)

The at least one computer readable medium of claim 11, further comprising instructions that when executed enable the system to update an index value of the first storage after the write to the first entry.

### Claim 15 (depends on 11)

The at least one computer readable medium of claim 11, further comprising instructions that when executed enable the system to determine that a filter enable indicator is set, prior to the determination of whether the process value matches the current process value.

### Claim 16 (depends on 11)

The at least one computer readable medium of claim 11, further comprising instructions that when executed enable the system to:
responsive to a read access to read execution code from a second page of the memory, determine whether an execute indicator of a page table entry associated with the second page has been set and whether the process value stored in the filter storage matches the current process value; and
responsive to a determination that the execute indicator has been set and that the process value matches the current process value, write an address of the second page to a second entry of the first storage to indicate that the read access to the second page occurred.

### Claim 17 (depends on 11)

The at least one computer readable medium of claim 11, further comprising instructions that when executed enable the system to disable an update to a page table entry responsive to a write access when the process value stored in the filter storage does not match the current process value.

### Claim 18

A system comprising:
a processor including a first register to store a process value for a process for which page modification logging is to be enabled, and a page modification logger to write an entry into a page modification log when a modification access to a page of a memory is performed in an active process, responsive to a determination that an identifier of the active process corresponds to the process value stored in the first register; and
the memory coupled to the processor, wherein the memory is to store at least a portion of the page modification log.

### Claim 19 (depends on 18)

The system of claim 18, further comprising a persistent storage, wherein the processor further comprises a logic to store a plurality of entries of the page modification log to the persistent storage, responsive to a determination that an index of the page modification log is a predetermined value.

### Claim 20 (depends on 18)

The system of claim 18, wherein the processor comprises a security logic to determine an access pattern of the active process based on a plurality of entries of the page modification log and compare the access pattern to stored pattern information associated with the active process to identify a potential security violation.
