# US 2012/0075314 A1 · Prevention of DOS Attack by a Rogue Graphics Application

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

- Number: US 2012/0075314 A1
- Document ID: US20120075314A1
- Status: Published application
- Kind: A1
- Application number: 12/893,985
- Filed: 2010-09-29
- Published: 2012-03-29
- Earliest claimed: 2010-09-29
- Assignees: Microsoft Corporation
- Inventors: Meher P. Malakapalli; B. Anil Kumar; Parag Chakraborty; Karthik Lakshminarayanan; Mahesh Lotlikar; Bradley Stephen Post
- Web page: https://patentgrep.com/patent/US20120075314A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/84: output devices, e.g. displays or monitors
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism is described for mitigating the effects of such a DoS attack by detecting a multiple TDR situation within a short duration, identifying the errant virtual machines, and suspending all rendering ability for that virtual machine or set of virtual machines. While the disclosed embodiments are described in the context of virtual machines, the principles may be extended to the general problem of DoS attacks due to TDRs and bugchecks on any physical machine that includes a GPU. For example, DoS attacks can be generated from web sites directly using GPU rendering.

## Claims

### Claim 1

A method for preventing a reset of a host virtual machine due to graphics accelerator timeouts, the method comprising:
mapping graphics commands to requesting virtual machines;
identifying virtual machines causing a graphics accelerator timeout;
determining that a count of graphics accelerator timeouts have exceeded a predetermined number within a predetermined time period; and
constraining one or more virtual machines causing graphics accelerator timeouts.

### Claim 2 (depends on 1)

The method of claim 1, wherein when the same virtual machine caused the count of the graphics accelerator timeouts, said constraining comprises not restarting the same virtual machine.

### Claim 3 (depends on 1)

The method of claim 1, wherein when different virtual machines caused the count of the graphics accelerator timeouts, said constraining comprises delaying restart of the different virtual machines for a predetermined delay.

### Claim 4 (depends on 1)

The method of claim 1, wherein when different virtual machines caused the count of the graphics accelerator timeouts, said constraining comprises terminating video rendering components of the different virtual machines.

### Claim 5 (depends on 4)

The method of claim 4, wherein said terminating comprises lazy deletion.

### Claim 6 (depends on 1)

The method of claim 1, wherein said identifying comprises flushing the graphics accelerator.

### Claim 7 (depends on 1)

The method of claim 1, wherein said predetermined number within a predetermined time period are determined as a function of a number of timeout and detection recovery events that cause a reset of the host virtual machine.

### Claim 8 (depends on 3)

The method of claim 3, wherein said graphics accelerator is a graphics processing unit (GPU).

### Claim 9

A computing system comprising:
a computing device comprising at least one processor;
a graphics accelerator;
a memory communicatively coupled to said processor when said system is operational; said memory having stored therein computer instructions that upon execution by the at least one processor cause:
mapping graphics commands to requesting processes;
identifying processes causing a graphics accelerator timeout;
determining that a count of graphics accelerator timeouts have exceeded a predetermined number within a predetermined time period; and
constraining one or more processes causing graphics accelerator timeouts.

### Claim 10 (depends on 9)

The system of claim 9, wherein when the same process caused the count of the graphics accelerator timeouts, said constraining comprises not restarting the same process.

### Claim 11 (depends on 9)

The system of claim 9, wherein when different processes caused the count of the graphics accelerator timeouts, said constraining comprises delaying restart of the different processes for a predetermined delay.

### Claim 12 (depends on 9)

The system of claim 9, wherein when different processes caused the count of the graphics accelerator timeouts, said constraining comprises terminating video rendering components of the different processes.

### Claim 13 (depends on 12)

The system of claim 12, wherein said terminating comprises lazy deletion.

### Claim 14 (depends on 9)

The system of claim 9, wherein said identifying comprises flushing the graphics accelerator.

### Claim 15 (depends on 9)

The system of claim 9, wherein said graphics accelerator is a graphics processing unit (GPU).

### Claim 16

A computer readable storage medium storing thereon computer executable instructions for preventing a reset of a host virtual machine due to GPU TDRs, said instructions for:
mapping graphics commands to requesting graphics processes;
identifying virtual machines causing a GPU TDR based on said mapping;
determining that a count of GPU TDRs have exceeded a predetermined number within a predetermined time period; and
constraining one or more virtual machines causing GPU TDRs.

### Claim 17 (depends on 16)

The computer readable storage medium of claim 16, wherein when the same virtual machine caused the count of the GPU TDRs, said constraining comprises not restarting the same virtual machine.

### Claim 18 (depends on 16)

The computer readable storage medium of claim 16, wherein when different virtual machines caused the count of the GPU TDRs, said constraining comprises delaying restart of the different virtual machines for a predetermined delay.

### Claim 19 (depends on 16)

The computer readable storage medium of claim 16, wherein when different virtual machines caused the count of the GPU TDRs, said constraining comprises terminating video rendering components of the different virtual machines.

### Claim 20 (depends on 16)

The computer readable storage medium of claim 16, wherein said predetermined number within a predetermined time period are determined as a function of a number of TDRs that cause a system bugcheck of the host virtual machine.
