WO2013101059A1 - Supervisor mode execution protection - Google Patents

Supervisor mode execution protection Download PDF

Info

Publication number
WO2013101059A1
WO2013101059A1 PCT/US2011/067838 US2011067838W WO2013101059A1 WO 2013101059 A1 WO2013101059 A1 WO 2013101059A1 US 2011067838 W US2011067838 W US 2011067838W WO 2013101059 A1 WO2013101059 A1 WO 2013101059A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
instruction
memory
user
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/US2011/067838
Other languages
French (fr)
Inventor
Adriaan Van De Ven
Baiju V. Patel
Asit K. MALLICK
Gilbert Neiger
James S. COKE
Martin G. Dixon
Jason W. BRANDT
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intel Corp
Original Assignee
Intel Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intel Corp filed Critical Intel Corp
Priority to PCT/US2011/067838 priority Critical patent/WO2013101059A1/en
Priority to CN201180076153.9A priority patent/CN104025041B/en
Priority to US13/997,857 priority patent/US9323533B2/en
Priority to CN201810366069.4A priority patent/CN108959110B/en
Priority to TW101149780A priority patent/TWI608353B/en
Publication of WO2013101059A1 publication Critical patent/WO2013101059A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification
    • G06F9/30189Instruction operation extension or modification according to execution mode, e.g. mode flag
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/0292User address space allocation, e.g. contiguous or non contiguous base addressing using tables or multilevel address translation means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1009Address translation using page tables, e.g. page table structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • G06F12/1458Protection against unauthorised use of memory or access to memory by checking the subject access rights
    • G06F12/1491Protection against unauthorised use of memory or access to memory by checking the subject access rights in a hierarchical protection system, e.g. privilege levels, memory rings
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3004Arrangements for executing specific machine instructions to perform operations on memory
    • G06F9/30043LOAD or STORE instructions; Clear instruction

Definitions

  • the present disclosure pertains to the field of information processing, and, more specifically, to the field of information processing system security.
  • Memory based attacks are a significant threat to the security of information processing systems. Some such attacks involve storing malicious code, such as a virus or a worm, or malicious data in the memory of a computer system, then exploiting bugs and/or buffer overflows while running legitimate programs to transfer control to the malicious code or use the malicious data.
  • a commonly used attack known as a privilege escalation attack, involves storing attack code in application memory, then exploiting a vulnerability in kernel code to jump to the attack code.
  • Figure 1 illustrates a system and a processor in which an embodiment of the present invention may be present and/or operate.
  • Figure 2 illustrates a method for supervisor mode execution protection according to an embodiment of the present invention.
  • Embodiments of the present invention provide for using an attribute assigned to memory pages to provide supervisor mode execution protection.
  • Techniques according to embodiments of the present invention may be implemented within any approach to memory management, including page-based memory management data structures, nested page-based memory management data structures used by virtualization technologies, and parallel access data structures.
  • Figure 1 illustrates system 100, an information processing system in which an embodiment of the present invention may be present and/or operate.
  • System 100 may represent any type of information processing system, such as a server, a desktop computer, a portable computer, a set- top box, a hand-held device, or an embedded control system.
  • System 100 includes processor 110, memory 120, and memory controller 130.
  • Systems embodying the present invention may include any other components or other elements, including any number of additional processors and/or memories. Any or all of the components or other elements in any system embodiment may be connected, coupled, or otherwise in communication with each other through any number of buses, point-to-point, or other wired or wireless connections.
  • Processor 110 may represent any type of processor, including a general purpose
  • Processor 110 may include any number of execution cores and/or support any number of execution threads, and therefore may represent any number of physical or logical processors, and/or may represent a multi-processor component or unit.
  • Processor 110 supports execution of software at different privilege levels, according to any known approach. For example, processor 110 may recognize four privilege levels, which may be labeled zero to four, where the higher number means less privilege.
  • the four privilege levels may be pictured as rings of protection, with privilege level zero, in the center, is intended for executing operating system ("OS") kernel level code, levels one and two are intended for executing OS services code, and level four, the outermost ring, is intended for executing application code.
  • OS operating system
  • Memory 120 may represent any static or dynamic random access memory, semiconductor- based read only or flash memory, magnetic or optical disk memory, any other type of medium readable by processor 110 and/or other elements of system 100, or any combination of such mediums.
  • Memory controller 130 may represent a controller for controlling access to memory 120 and maintaining its contents. In an embodiment, memory controller 130 may be integrated onto the same integrated circuit as processor 110.
  • memory 120 may include user memory 122, which may be locations and/or regions referred to as application or user memory, which is intended to store instructions and data for used by application software. These locations and/or regions may be labeled as application memory according to any known technique. In an embodiment, each such location may include a bit or field which may store a certain value to indicate that it is user memory.
  • an entry at a higher level in a paging or other memory hierarchy may include a bit or field which may store a certain value to indicate that all lower level pages or other regions to which it may refer are user memory.
  • pages may be designated as user memory in a page directory entry and/or a translation lookaside buffer ("TLB") entry using a user/supervisor flag bit.
  • TLB translation lookaside buffer
  • registers, tables, or other data structures may be used to designate a range or ranges of memory 120 designated as user memory.
  • Processor 110 may include instruction hardware 111, execution hardware 112, paging unit 113, processing storage 114, interface 115, and control logic 116, plus any other desired units or elements.
  • Instruction hardware 111 may represent any circuitry, structure, or other hardware, such as an instruction decoder, for fetching, receiving, decoding, and/or scheduling instructions. Any instruction format may be used within the scope of the present invention; for example, an instruction may include an opcode and one or more operands, where the opcode may be decoded into one or more micro-instructions or micro-operations for execution by execution hardware 112.
  • one of the instructions types may be an identification instruction, to which processor 110 is designed to respond with information to identify processor 110 or anything about processor 110.
  • the identification instruction may be the CPUID instruction in the instruction set architecture of the Intel® Core® Processor Family.
  • processor 110 may return information that includes an indication that processor 110 supports supervisor mode execution protection according to an embodiment of the present invention.
  • Execution hardware 112 may include any circuitry, structure, or other hardware, such as an arithmetic unit, logic unit, floating point unit, shifter, etc., for processing data and executing instructions, micro-instructions, and/or micro-operations.
  • Paging unit 113 may represent any circuitry, structure, or other hardware, such as a TLB for translating addresses with which processor 110 accesses memory 120. Paging unit 113 may perform address translations, for example the translation of a logical or linear address to a physical address, according to any known memory management technique. To perform address translations, paging unit 113 refers to one or more data structures stored in processor 110, memory 120, any other storage location in system 100 not shown in Figure 1, and/or any combination of these components and locations. The data structures may include page directories and page tables according to the architecture of the Core® Processor Family, as modified according to embodiments of the present invention, and/or a table stored in a TLB.
  • paging unit 113 receives a linear address provided by an instruction to be executed and/or of data to be fetched by processor 110.
  • Paging unit 113 uses portions of the linear address as indices into hierarchical tables, including page tables.
  • the page tables contain entries, each including a field for a base address of a page in memory 120. Any page size (e.g., 4 kilobytes) may be used within the scope of the present invention. Therefore, the linear address used by a program to access memory 120 may be translated to a physical address used by processor 110 to access memory 120.
  • Processing storage 114 may represent any type of storage usable for any purpose within processor 110, for example, it may include any number of data registers, instruction registers, status registers, other programmable or hard-coded registers or register files, or any other storage structures.
  • processing storage 114 may include a control register according to the architecture of the Core® Processor Family (e.g., CR4), which may include a programmable bit location or another size field to be used to enable supervisor mode execution protection according to embodiments of the present invention.
  • operating system software or other system software may perform a write to CR4 to set (e.g., write to a value of T) a supervisor mode execution protection enable bit in CR4 to enable the feature.
  • software executing instructions at a more privileged privilege level may be referred to as running in supervisor mode and software executing at a less privileged privilege level (e.g., ring 4) may be referred to as running in user mode.
  • Interface unit 115 may represent any circuitry, structure, or other hardware, such as a bus unit or any other unit, port, or interface, to allow processor 110 to communicate with memory 120 through any type of bus, point to point, or other connection, directly or through any other component, such as a chipset or memory controller.
  • Control logic 116 may represent microcode, programmable logic, hard-coded logic, or any other type of logic to control the operation of the units and other elements of processor 110 and the transfer of data within processor 110. Control logic 116 may cause processor 110 to perform or participate in the performance of method embodiments of the present invention, such as the method embodiments described below, for example, by causing processor 110 to execute instructions received by instruction hardware 111 and micro-instructions or micro-operations derived from instructions received by instruction hardware 111. According to embodiments of the present invention, processor 100 may execute instructions from user memory when operating in user mode, but processor 100 cannot execute instructions from user memory when operating in supervisor mode. This feature may be implemented with control logic that causes a fault when instruction unit 111 attempts to fetch an instruction from user memory when processor 100 is executing code in supervisor mode.
  • Figure 2 illustrates an embodiment of the present invention in a method, method 200, for supervisor mode execution protection.
  • the description of Figure 2 may refer to elements of Figure 1, but method 200 and other method embodiments of the present invention are not intended to be limited by these references.
  • OS software running on processor 110 may execute a CPUTD instruction to determine that processor 110 supports a supervisor mode execution protection feature according to an embodiment of the present invention.
  • the OS software may execute a write to CR4 to enable the supervisor mode execution protection feature.
  • the OS software may transfer control to an application program.
  • the application program may begin execution in user mode.
  • the application may attempt to fetch an instruction from user memory.
  • the application is allowed to fetch the instruction from user memory.
  • the instruction is executed.
  • control is transferred from the application program to the OS software.
  • the OS software continues running in supervisor mode.
  • the OS software attempts to fetch an instruction from user memory.
  • the attempt to fetch an instruction from user memory while in supervisor mode causes a fault, so the instruction cannot be fetched or executed.
  • method 200 may be performed in a different order than that shown in Figure 2, with illustrated boxes omitted, with additional boxes added, or with a combination of reordered, omitted, or additional boxes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Storage Device Security (AREA)

Description

SUPERVISOR MODE EXECUTION PROTECTION
BACKGROUND
1. Field
The present disclosure pertains to the field of information processing, and, more specifically, to the field of information processing system security.
2. Description of Related Art
Memory based attacks are a significant threat to the security of information processing systems. Some such attacks involve storing malicious code, such as a virus or a worm, or malicious data in the memory of a computer system, then exploiting bugs and/or buffer overflows while running legitimate programs to transfer control to the malicious code or use the malicious data. A commonly used attack, known as a privilege escalation attack, involves storing attack code in application memory, then exploiting a vulnerability in kernel code to jump to the attack code.
Brief Description of the Figures
The present invention is illustrated by way of example and not limitation in the
accompanying figures.
Figure 1 illustrates a system and a processor in which an embodiment of the present invention may be present and/or operate.
Figure 2 illustrates a method for supervisor mode execution protection according to an embodiment of the present invention.
Detailed Description
The following description describes embodiments of techniques for supervisor mode execution protection. In the following description, specific details such as processor and system configurations may be set forth in order to provide a more thorough understanding of the present invention. It will be appreciated, however, by one skilled in the art that the invention may be practiced without such specific details. Additionally, some well known structures, circuits, and the like have not been shown in detail, to avoid unnecessarily obscuring the present invention.
Embodiments of the present invention provide for using an attribute assigned to memory pages to provide supervisor mode execution protection. Techniques according to embodiments of the present invention may be implemented within any approach to memory management, including page-based memory management data structures, nested page-based memory management data structures used by virtualization technologies, and parallel access data structures.
Figure 1 illustrates system 100, an information processing system in which an embodiment of the present invention may be present and/or operate. System 100 may represent any type of information processing system, such as a server, a desktop computer, a portable computer, a set- top box, a hand-held device, or an embedded control system. System 100 includes processor 110, memory 120, and memory controller 130. Systems embodying the present invention may include any other components or other elements, including any number of additional processors and/or memories. Any or all of the components or other elements in any system embodiment may be connected, coupled, or otherwise in communication with each other through any number of buses, point-to-point, or other wired or wireless connections.
Processor 110 may represent any type of processor, including a general purpose
microprocessor, such as a processor in the Core® Processor Family, or other processor family from Intel Corporation, or another processor from another company, or any other processor for processing information according to an embodiment of the present invention. Processor 110 may include any number of execution cores and/or support any number of execution threads, and therefore may represent any number of physical or logical processors, and/or may represent a multi-processor component or unit.
Processor 110 supports execution of software at different privilege levels, according to any known approach. For example, processor 110 may recognize four privilege levels, which may be labeled zero to four, where the higher number means less privilege. The four privilege levels may be pictured as rings of protection, with privilege level zero, in the center, is intended for executing operating system ("OS") kernel level code, levels one and two are intended for executing OS services code, and level four, the outermost ring, is intended for executing application code.
Memory 120 may represent any static or dynamic random access memory, semiconductor- based read only or flash memory, magnetic or optical disk memory, any other type of medium readable by processor 110 and/or other elements of system 100, or any combination of such mediums. Memory controller 130 may represent a controller for controlling access to memory 120 and maintaining its contents. In an embodiment, memory controller 130 may be integrated onto the same integrated circuit as processor 110. According to embodiments of the present invention, memory 120 may include user memory 122, which may be locations and/or regions referred to as application or user memory, which is intended to store instructions and data for used by application software. These locations and/or regions may be labeled as application memory according to any known technique. In an embodiment, each such location may include a bit or field which may store a certain value to indicate that it is user memory. In an embodiment, an entry at a higher level in a paging or other memory hierarchy may include a bit or field which may store a certain value to indicate that all lower level pages or other regions to which it may refer are user memory. For example, pages may be designated as user memory in a page directory entry and/or a translation lookaside buffer ("TLB") entry using a user/supervisor flag bit. In an embodiment, registers, tables, or other data structures may be used to designate a range or ranges of memory 120 designated as user memory.
Processor 110 may include instruction hardware 111, execution hardware 112, paging unit 113, processing storage 114, interface 115, and control logic 116, plus any other desired units or elements.
Instruction hardware 111 may represent any circuitry, structure, or other hardware, such as an instruction decoder, for fetching, receiving, decoding, and/or scheduling instructions. Any instruction format may be used within the scope of the present invention; for example, an instruction may include an opcode and one or more operands, where the opcode may be decoded into one or more micro-instructions or micro-operations for execution by execution hardware 112. In an embodiment, one of the instructions types may be an identification instruction, to which processor 110 is designed to respond with information to identify processor 110 or anything about processor 110. For example, the identification instruction may be the CPUID instruction in the instruction set architecture of the Intel® Core® Processor Family. In response to this instruction, processor 110 may return information that includes an indication that processor 110 supports supervisor mode execution protection according to an embodiment of the present invention.
Execution hardware 112 may include any circuitry, structure, or other hardware, such as an arithmetic unit, logic unit, floating point unit, shifter, etc., for processing data and executing instructions, micro-instructions, and/or micro-operations.
Paging unit 113 may represent any circuitry, structure, or other hardware, such as a TLB for translating addresses with which processor 110 accesses memory 120. Paging unit 113 may perform address translations, for example the translation of a logical or linear address to a physical address, according to any known memory management technique. To perform address translations, paging unit 113 refers to one or more data structures stored in processor 110, memory 120, any other storage location in system 100 not shown in Figure 1, and/or any combination of these components and locations. The data structures may include page directories and page tables according to the architecture of the Core® Processor Family, as modified according to embodiments of the present invention, and/or a table stored in a TLB.
In one embodiment, paging unit 113 receives a linear address provided by an instruction to be executed and/or of data to be fetched by processor 110. Paging unit 113 uses portions of the linear address as indices into hierarchical tables, including page tables. The page tables contain entries, each including a field for a base address of a page in memory 120. Any page size (e.g., 4 kilobytes) may be used within the scope of the present invention. Therefore, the linear address used by a program to access memory 120 may be translated to a physical address used by processor 110 to access memory 120.
Processing storage 114 may represent any type of storage usable for any purpose within processor 110, for example, it may include any number of data registers, instruction registers, status registers, other programmable or hard-coded registers or register files, or any other storage structures. In an embodiment, processing storage 114 may include a control register according to the architecture of the Core® Processor Family (e.g., CR4), which may include a programmable bit location or another size field to be used to enable supervisor mode execution protection according to embodiments of the present invention. For example, operating system software or other system software may perform a write to CR4 to set (e.g., write to a value of T) a supervisor mode execution protection enable bit in CR4 to enable the feature. In one embodiment, software executing instructions at a more privileged privilege level (e.g., rings 0, 1, or 2) may be referred to as running in supervisor mode and software executing at a less privileged privilege level (e.g., ring 4) may be referred to as running in user mode.
Interface unit 115 may represent any circuitry, structure, or other hardware, such as a bus unit or any other unit, port, or interface, to allow processor 110 to communicate with memory 120 through any type of bus, point to point, or other connection, directly or through any other component, such as a chipset or memory controller.
Control logic 116 may represent microcode, programmable logic, hard-coded logic, or any other type of logic to control the operation of the units and other elements of processor 110 and the transfer of data within processor 110. Control logic 116 may cause processor 110 to perform or participate in the performance of method embodiments of the present invention, such as the method embodiments described below, for example, by causing processor 110 to execute instructions received by instruction hardware 111 and micro-instructions or micro-operations derived from instructions received by instruction hardware 111. According to embodiments of the present invention, processor 100 may execute instructions from user memory when operating in user mode, but processor 100 cannot execute instructions from user memory when operating in supervisor mode. This feature may be implemented with control logic that causes a fault when instruction unit 111 attempts to fetch an instruction from user memory when processor 100 is executing code in supervisor mode.
Figure 2 illustrates an embodiment of the present invention in a method, method 200, for supervisor mode execution protection. The description of Figure 2 may refer to elements of Figure 1, but method 200 and other method embodiments of the present invention are not intended to be limited by these references.
In block 210, OS software running on processor 110 may execute a CPUTD instruction to determine that processor 110 supports a supervisor mode execution protection feature according to an embodiment of the present invention. In box 212, the OS software may execute a write to CR4 to enable the supervisor mode execution protection feature.
In box 220, the OS software may transfer control to an application program. In box 222, the application program may begin execution in user mode. In box 224, the application may attempt to fetch an instruction from user memory. In box 226, the application is allowed to fetch the instruction from user memory. In box 228, the instruction is executed.
In box 230, control is transferred from the application program to the OS software. In box 232, the OS software continues running in supervisor mode. In box 234, the OS software attempts to fetch an instruction from user memory. In box 236, the attempt to fetch an instruction from user memory while in supervisor mode causes a fault, so the instruction cannot be fetched or executed.
Within the scope of the present invention, method 200 may be performed in a different order than that shown in Figure 2, with illustrated boxes omitted, with additional boxes added, or with a combination of reordered, omitted, or additional boxes.
Thus, techniques for supervisor mode execution protection are disclosed. While certain embodiments have been described, and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that this invention not be limited to the specific constructions and arrangements shown and described, since various other modifications may occur to those ordinarily skilled in the art upon studying this disclosure. In an area of technology such as this, where growth is fast and further advancements are not easily foreseen, the disclosed embodiments may be readily modifiable in arrangement and detail as facilitated by enabling technological advancements without departing from the principles of the present disclosure or the scope of the accompanying claims.

Claims

Claim What is claimed is:
1. A processor comprising:
an interface to access a memory, wherein a region in the memory is user memory;
execution hardware to execute an instruction; and
control logic to prevent the execution hardware from executing the instruction when the instruction is stored in user memory and the processor is in supervisor mode.
2. The processor of claim 1, further comprising instruction hardware to fetch the instruction, wherein the control logic is to prevent the execution hardware from executing the instruction by preventing the instruction hardware from fetching the instruction from user memory when the processor is in supervisor mode.
3. The processor of claim 1, wherein the processor is in supervisor mode when executing software in a privilege level higher than a lowest privilege level.
4. The processor of claim 1, further comprising a paging unit, wherein the paging unit is to translate a linear address to a physical address using a page table hierarchy, and the region may be designated as user memory by a flag at any level in the page table hierarchy.
5. The processor of claim 1, wherein the execution unit is also to execute a processor identification instruction by returning an indication that the processor includes control logic to prevent the processor from executing from user memory when the processor is in supervisor mode.
6. The processor of claim 1, further comprising processing storage including a
programmable storage location to enable the control logic to prevent the processor from executing from user memory when the processor is in supervisor mode.
7. A method comprising:
attempting, by software running on a processor in supervisor mode, to execute an instruction; and
preventing the processor from executing the instruction when the instruction is stored in user memory.
8. The method of claim 7, wherein attempting includes attempting to fetch the instruction from memory, and preventing includes preventing fetching the instruction from user memory.
9. The method of claim 7, wherein preventing includes causing a fault.
10. The method of claim 7, further comprising executing a processor identification instruction to determine that the processor supports preventing execution from user memory when in supervisor mode.
11. The method of claim 7, further comprising writing to a control register to enable prevention of execution from user mode when the processor is in supervisor mode.
12. The method of claim 7, further comprising attempting, by the processor running in user mode, to execute the instruction.
13. The method of claim 12, further comprising allowing the processor running in user mode to execute the instruction.
14. The method of claim 12, wherein attempting, by the processor running in user mode, to execute the instruction includes attempting, by the processor running in user mode, to fetch the instruction.
15. The method of claim 13, wherein allowing the processor running in user mode to execute the instruction includes allowing the processor running in user mode to fetch the instruction.
16. A system comprising:
a memory, including a region of user memory; and
a processor coupled to the memory, including
execution hardware to execute an instruction, and
control logic to prevent the execution hardware from executing the instruction when the instruction is stored in user memory and the processor is in supervisor mode.
17. The system of claim 16, wherein the processor also includes instruction hardware to fetch the instruction, wherein the control logic is to prevent the execution hardware from executing the instruction by preventing the instruction hardware from fetching the instruction from user memory when the processor is in supervisor mode.
18. The system of claim 16, wherein the processor is in supervisor mode when executing software in a privilege level higher than a lowest privilege level.
19. The system of claim 16, wherein the memory is accessible as a plurality of pages, and user memory includes a subset of the plurality of pages.
20. The system of claim 19, further comprising a paging unit, wherein the paging unit is to translate a linear address to a physical address using a page table hierarchy, and the region may be designated as user memory by a flag at any level in the page table hierarchy.
PCT/US2011/067838 2011-12-29 2011-12-29 Supervisor mode execution protection Ceased WO2013101059A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/US2011/067838 WO2013101059A1 (en) 2011-12-29 2011-12-29 Supervisor mode execution protection
CN201180076153.9A CN104025041B (en) 2011-12-29 2011-12-29 Admin Mode Execution Protection
US13/997,857 US9323533B2 (en) 2011-12-29 2011-12-29 Supervisor mode execution protection
CN201810366069.4A CN108959110B (en) 2011-12-29 2011-12-29 Processor for preventing administrator mode execution of user mode instructions and method thereof
TW101149780A TWI608353B (en) 2011-12-29 2012-12-25 Method and system for supervisor mode execution protection, and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/US2011/067838 WO2013101059A1 (en) 2011-12-29 2011-12-29 Supervisor mode execution protection

Publications (1)

Publication Number Publication Date
WO2013101059A1 true WO2013101059A1 (en) 2013-07-04

Family

ID=48698296

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2011/067838 Ceased WO2013101059A1 (en) 2011-12-29 2011-12-29 Supervisor mode execution protection

Country Status (4)

Country Link
US (1) US9323533B2 (en)
CN (2) CN104025041B (en)
TW (1) TWI608353B (en)
WO (1) WO2013101059A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183391B2 (en) 2013-03-13 2015-11-10 Intel Corporation Managing device driver cross ring accesses
US9323533B2 (en) 2011-12-29 2016-04-26 Intel Corporation Supervisor mode execution protection

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9530000B2 (en) * 2013-06-14 2016-12-27 Microsoft Technology Licensing, Llc Secure privilege level execution and access protection
US10489309B2 (en) * 2014-10-21 2019-11-26 Intel Corporation Memory protection key architecture with independent user and supervisor domains
US11541280B2 (en) 2015-12-21 2023-01-03 Suunto Oy Apparatus and exercising device
US12339979B2 (en) * 2016-03-07 2025-06-24 Crowdstrike, Inc. Hypervisor-based interception of memory and register accesses
US12248560B2 (en) 2016-03-07 2025-03-11 Crowdstrike, Inc. Hypervisor-based redirection of system calls and interrupt-based task offloading
US10360353B2 (en) * 2017-02-08 2019-07-23 International Business Machines Corporation Execution control of computer software instructions
US10467407B2 (en) * 2017-03-30 2019-11-05 Check Point Advanced Threat Prevention Ltd. Method and system for detecting kernel corruption exploits
DE102020130834A1 (en) * 2020-11-23 2022-05-25 Audi Aktiengesellschaft Energy storage device for storing electrical energy, method for operating an energy storage device and motor vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087853A1 (en) * 2000-12-28 2002-07-04 Singh Ravi P. Security on hardware loops
US20040168047A1 (en) * 2003-02-24 2004-08-26 Matsushita Electric Industrial Co., Ltd. Processor and compiler for creating program for the processor
US20100169601A1 (en) * 2006-07-10 2010-07-01 Silverbrook Research Pty Ltd System for protecting supervisor mode data from user code

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4989453A (en) * 1972-12-05 1974-08-27
JP3023425B2 (en) * 1987-10-09 2000-03-21 株式会社日立製作所 Data processing device
US5623636A (en) * 1993-11-09 1997-04-22 Motorola Inc. Data processing system and method for providing memory access protection using transparent translation registers and default attribute bits
US6907600B2 (en) * 2000-12-27 2005-06-14 Intel Corporation Virtual translation lookaside buffer
US20030212897A1 (en) * 2001-08-18 2003-11-13 Russell Dickerson Method and system for maintaining secure semiconductor device areas
US7673345B2 (en) 2005-03-31 2010-03-02 Intel Corporation Providing extended memory protection
US7353443B2 (en) * 2005-06-24 2008-04-01 Intel Corporation Providing high availability in a PCI-Express link in the presence of lane faults
US7793067B2 (en) 2005-08-12 2010-09-07 Globalfoundries Inc. Translation data prefetch in an IOMMU
US7490191B2 (en) * 2006-09-22 2009-02-10 Intel Corporation Sharing information between guests in a virtual machine environment
US8380987B2 (en) * 2007-01-25 2013-02-19 Microsoft Corporation Protection agents and privilege modes
US8051263B2 (en) 2007-05-04 2011-11-01 Atmel Corporation Configurable memory protection
US20090204823A1 (en) * 2008-02-07 2009-08-13 Analog Devices, Inc. Method and apparatus for controlling system access during protected modes of operation
US8209509B2 (en) 2008-05-13 2012-06-26 Atmel Corporation Accessing memory in a system with memory protection
US8051467B2 (en) 2008-08-26 2011-11-01 Atmel Corporation Secure information processing
KR20100124052A (en) 2009-05-18 2010-11-26 삼성전자주식회사 Apparatus and method of providing platform independent secure domain
GB2474666B (en) 2009-10-21 2015-07-15 Advanced Risc Mach Ltd Hardware resource management within a data processing system
CN104025041B (en) 2011-12-29 2018-05-25 英特尔公司 Admin Mode Execution Protection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087853A1 (en) * 2000-12-28 2002-07-04 Singh Ravi P. Security on hardware loops
US20040168047A1 (en) * 2003-02-24 2004-08-26 Matsushita Electric Industrial Co., Ltd. Processor and compiler for creating program for the processor
US20100169601A1 (en) * 2006-07-10 2010-07-01 Silverbrook Research Pty Ltd System for protecting supervisor mode data from user code

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VARGHESE GEORGE ET AL., INTEL DEVELOPER FORUM 2011, 13 September 2011 (2011-09-13) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323533B2 (en) 2011-12-29 2016-04-26 Intel Corporation Supervisor mode execution protection
US9183391B2 (en) 2013-03-13 2015-11-10 Intel Corporation Managing device driver cross ring accesses

Also Published As

Publication number Publication date
CN108959110A (en) 2018-12-07
CN104025041B (en) 2018-05-25
CN104025041A (en) 2014-09-03
TWI608353B (en) 2017-12-11
US9323533B2 (en) 2016-04-26
TW201346559A (en) 2013-11-16
CN108959110B (en) 2023-05-30
US20150199198A1 (en) 2015-07-16

Similar Documents

Publication Publication Date Title
US9323533B2 (en) Supervisor mode execution protection
US9286245B2 (en) Hardware enforced memory access permissions
US9298639B2 (en) Controlling access to groups of memory pages in a virtualized environment
US10296366B2 (en) Virtualization exceptions
EP2889777B1 (en) Modifying memory permissions in a secure processing environment
WO2013095577A1 (en) Determining policy actions for the handling of data read/write extended page table violations
US11683310B2 (en) Protecting supervisor mode information
US20170220466A1 (en) Sharing a guest physical address space among virtualized contexts
JP5688165B2 (en) Program, computer processor, and method for reading and writing segment registers regardless of privilege level
US9971705B2 (en) Virtual memory address range register
US20150143071A1 (en) Memory event notification
EP2889757B1 (en) A load instruction for code conversion

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 13997857

Country of ref document: US

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11878853

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11878853

Country of ref document: EP

Kind code of ref document: A1