The Reptar CPU Vulnerability
A bug in how some Intel processors handle redundant REX prefixes on FSRM-optimised rep movsb instructions can cause unpredictable execution, including wrong instruction pointers and machine check exceptions. An attacker could potentially cause a denial of service or corrupt system state, though privilege escalation is not confirmed.
bughunters.google.com
Published on bughunters.google.com
Note: This blog post was originally published on Tavis Ormandy's personal blog in November 2023.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This is a CPU bug, not a web bug, but the reasoning is the same kind of reasoning we use everywhere: a feature that is supposed to be transparent turns out to have an edge case, and the edge case has security consequences.
The feature at the centre of it is rep movsb, the idiomatic way of moving memory around on x86. You set the source, destination, direction and count, and the processor handles the details:
lea rdi, [rel dst]
lea rsi, [rel src]
std
mov rcx, 32
rep movsb
The instruction is movsb; rep is a prefix that changes how the instruction works, in this case indicating that the operation should be repeated multiple times. There are many other prefixes, and they do not all apply to every instruction.
x86 instruction decoding is generally quite relaxed. A prefix that does not make sense, or that conflicts with other prefixes, is usually just ignored. Compilers exploit this to pad a single instruction to a desirable alignment boundary. The same code as above, with useless or redundant prefixes added, still does the same thing:
rep lea rdi, [rel dst]
cs lea rsi, [rel src]
gs gs gs std
repnz mov rcx, 32
rep rep rep rep movsb
The most interesting prefixes are rex, vex and evex, all of which change how subsequent instructions are decoded.
The REX prefix
i386 had only 8 general purpose registers, so 3 bits were enough to name one (2^3 is 8), and instruction encoding reserved just enough bits to specify any of them.
Simple 2-byte instructions that use modr/m might be encoded like this, for example mov eax, ebx. This is an 8-bit opcode, 2 bit addressing mode (labeled m), and 3 bits each for the source (s) and destination (d).
x86-64 added 8 more general purpose registers, giving sixteen possibilities, which is 2^4, so another bit is needed. The rex prefix supplies spare bits that the next instruction can borrow. It is written like this:
rex.rxb
rex is a single-byte prefix. The first four bits are mandatory and the remaining four, called b, x, r and w, are optional. rex.rb means only the r and b bits are set.
The rex prefix can lend the next instruction extra bits to use for operands, so now we can encode all 16 possible general purpose registers!
Encoding rules and the question that started it
Since rex increases the space available for encoding operands, and since useless or redundant prefixes are usually ignored, what should this instruction do?
rex.rxb rep movsb
movsb has no operands, they are all implicit, so any rex bits are meaningless. The expected answer is that the processor silently ignores the rex prefix, and on most machines that is exactly what happens. The exception is machines that support a new feature called fast short repeat move. A bug with redundant rex prefixes interacting with that feature turned out to introduce a serious vulnerability.
Fast short repeat move
Moving strings efficiently is hard because all the buffers have to be aligned before the widest possible stores can be used. Doing that in software is possible, but doing it in microcode lets the processor transparently make existing code faster. The setup is expensive, but once it is done you get vastly improved throughput. This is enhanced repeat move/store, ERMS, and with ERMS support a simple rep movsb can sometimes perform comparably with hand-tuned vector move operations.
The problem with ERMS is that the initial setup is so expensive that it is not worth it for very short strings. FSRM handles the case of moving 128 bytes or less and makes that faster too. The author notes that he is not aware of documentation explaining exactly how FSRM works, but you can check whether a processor supports it in the flags line of /proc/cpuinfo:
flags : fpu vme de pse tsc msr pae mce cx8 [...] fsrm
Processors with the feature include Ice Lake, Rocket Lake, Tiger Lake, Raptor Lake, Alder Lake and Sapphire Rapids. That list may not be comprehensive; Intel advisory INTEL-SA-00950 has the complete list.
Setup
The work came out of an ongoing effort to verify the safety of CPUs. The validation technique used is called Oracle Serialisation: generate two forms of the same randomly generated program and verify that their final state is identical. The report points to a previous writeup for more detail on the technique.
No accounts, roles or special privileges are involved. The reproduction runs on the affected hardware, and the report states that the behaviour was verified even inside an unprivileged guest VM.
Finding it
In August, the validation pipeline produced an interesting assertion. It had found a case where adding redundant rex.r prefixes to an FSRM optimised rep movs operation seemed to cause unpredictable results.
Testing showed very strange behaviour: branches to unexpected locations, unconditional branches being ignored, and the processor no longer accurately recording the instruction pointer in xsave or call instructions. Debuggers reported impossible states.
That already looked like it could indicate a serious problem, and within a few days of experimenting the team found that when multiple cores triggered the same bug, the processor would begin to report machine check exceptions and halt. Because this worked inside an unprivileged guest VM, it had serious implications for cloud providers, and it was reported to Intel as soon as it was confirmed to be a security issue.
Exploitation
Step 1: obtain the reproduction tool
The research is published in the security research repository, and the icebreak tool reproduces the vulnerability:
$ ./icebreak -h
usage: ./icebreak [OPTIONS]
-c N,M Run repro threads on core N and M.
-d N Sleep N usecs between repro attempts.
-H N Spawn a hammer thread on core N.
-c selects the pair of cores to run reproduction threads on, -d sets a delay between attempts, and -H spawns a hammer thread on a given core.
Step 2: run it on a core pair
The testcase enters what should be an infinite loop, so unaffected systems produce no output at all. On affected systems a . is printed on each successful reproduction:
$ ./icebreak -c 0,4
starting repro on cores 0 and 4
.........................................................................
.........................................................................
.........................................................................
.........................................................................
.........................................................................
Step 3: choose the cores to get the behaviour you want
If the cores are SMT (Symmetric Multithreading) siblings, you may observe random branches. If they are SMP (Symmetric Multiprocessing) siblings from the same package, you may observe machine checks. If you do not specify two different cores, you might need a hammer thread to trigger a reproduction.
Root cause
How microcode works in modern systems is a closely guarded secret, so the root cause can only be theorised from observations.
The CPU is split into a frontend, which fetches and decodes instructions and generates μops for the backend, and a backend, which executes instructions out of order and uses a unit called the ROB, the reorder buffer, to store and organise results.
The experiments show that certain executions of rep rex.r movsb associate a different instruction pointer with the instruction, so subsequent executions execute code at the "wrong" instruction pointer. rep movsb is handled by the microcode sequencer (MS), which in some cases needs to store the program instruction pointer, for example to be able to restart execution when interrupts occur, or to calculate it. The theory is that either the MS or the reorder buffer set the wrong value for the IP associated with rep rex.r movsb, as a result of the instruction execution being interrupted by something else.
The machine can eventually recover from this state, perhaps with incorrect intermediate results, but becoming internally consistent again. If multiple SMT or SMP cores are made to enter the state simultaneously, enough microarchitectural state corruption occurs to force a machine check.
Impact
The team can corrupt system state badly enough to cause machine check errors, and has observed threads interfering with the execution of processes scheduled on SMT siblings. The authors state plainly that they do not know whether the corruption can be controlled precisely enough to achieve privilege escalation; the author suspects it is possible but has no way to debug μop execution.
Because the behaviour was verified inside an unprivileged guest VM, the report says this has serious security implications for cloud providers.
Fix
Intel published updated microcode for all affected processors, and operating system or BIOS vendors may already have an update available.
If updating is not possible, fast strings can be disabled via the IA32_MISC_ENABLE model specific register. This causes a significant performance penalty and should not be used unless absolutely necessary.
Variants to test
- Other redundant prefixes on FSRM-optimised string operations. The bug involves
rex.ronrep movsb; try other redundant or conflicting prefixes onrep movsandrep stosand compare the final state of two forms of the same program. A positive result is an assertion failure in the oracle, or a debugger reporting an impossible state. - Other microcode-sequencer instructions with redundant prefixes. The theory points at the MS storing or calculating the instruction pointer; look for instructions handled by the MS where a redundant prefix is nominally ignored. A positive result is a branch to an unexpected location or an ignored unconditional branch.
- Instruction pointer recording after the operation. Check
xsaveandcallresults after the suspect instruction. A positive result is an instruction pointer that does not match the instruction actually executing. - Multi-core triggering. Run the same test on SMT siblings and on SMP siblings from the same package. A positive result is random branches on SMT siblings and machine checks on SMP siblings.
- Unprivileged guest context. Repeat the reproduction inside a VM without privileges. A positive result is the same behaviour as on bare metal, which is what makes the bug relevant to cloud providers.
What happened, in plain words
This is a story about a bug inside a computer chip, not inside a website. But the way the researchers found it is the same kind of detective work used everywhere in security: a feature that is supposed to work invisibly, without you ever noticing it, turns out to have a strange edge case, and that edge case has real security consequences.
The feature at the centre of the story is a way for a processor to copy a block of memory from one place to another very quickly. On most machines, a slightly odd way of writing that copy instruction is simply ignored, and nothing happens. On some newer machines, the odd way of writing it can push the processor into a glitch state where the normal rules do not apply. The researchers could make the processor jump to unexpected places, ignore instructions it should follow, and eventually crash hard. They could do this even from inside a virtual machine that is supposed to be isolated, which matters a lot for cloud providers who rent out slices of the same physical hardware to many customers.
Below, we walk through the whole thing from zero: what the instructions are, why the odd prefixes exist, how the researchers noticed the problem, how they reproduced it, what they think is going on inside the chip, and what you can do about it.
Context
What a CPU is, and why instructions matter
A CPU, or central processing unit, is the chip that actually runs your programs. It does this by reading a long list of tiny commands called instructions and carrying them out one after another. Each instruction is a very small operation: add two numbers, load a value from memory, jump to a different part of the program, and so on. A program is just a very long sequence of these.
Different families of CPUs speak different instruction languages. The one in this story is x86, the language used by most desktop and laptop processors from Intel and AMD. When people write programs in a language like Python or JavaScript, those programs eventually get translated down into x86 instructions before the chip can run them.
The rep movsb instruction
The feature at the centre of it is rep movsb, the idiomatic way of moving memory around on x86. Think of it like a photocopier with a stack of pages: you tell it where the original stack is, where the copy should go, which direction to work in, and how many pages to copy, and then it does the rest without you having to feed it page by page.
You set the source, destination, direction and count, and the processor handles the details:
lea rdi, [rel dst]
lea rsi, [rel src]
std
mov rcx, 32
rep movsb
Line by line, in plain words:
lea rdi, [rel dst]puts the memory address of the destination (dst) into a register calledrdi. A register is a tiny storage slot inside the CPU, much faster than ordinary memory.rdiis the register the processor looks at to know where to write the copy.lea rsi, [rel src]does the same for the source address (src), putting it intorsi. That is where the processor reads from.stdsets the direction flag, which tells the processor to work backwards through memory (from high addresses to low). Without it, the copy would go forwards.mov rcx, 32puts the number 32 intorcx.rcxis the counter: it says how many bytes to copy.rep movsbis the actual copy.movsbmeans "move one byte from source to destination". Therepin front of it is a prefix, a small tag attached to the instruction that changes how it behaves. Here it means "repeat this operation", so the processor copies 32 bytes in total, one at a time, updating the addresses as it goes.
The instruction is movsb; rep is a prefix that changes how the instruction works, in this case indicating that the operation should be repeated multiple times. There are many other prefixes, and they do not all apply to every instruction.
Prefixes, and why the CPU is relaxed about them
A prefix is a small extra tag placed in front of an instruction. Some prefixes change what the instruction does, some change which registers it uses, and some are simply ignored. x86 instruction decoding is generally quite relaxed. A prefix that does not make sense, or that conflicts with other prefixes, is usually just ignored. Compilers exploit this to pad a single instruction to a desirable alignment boundary. In other words, a compiler might add a few harmless bytes in front of an instruction so that the instruction starts at a nice round address in memory, which can make the program run a little faster.
The same code as above, with useless or redundant prefixes added, still does the same thing:
rep lea rdi, [rel dst]
cs lea rsi, [rel src]
gs gs gs std
repnz mov rcx, 32
rep rep rep rep movsb
Line by line:
rep lea rdi, [rel dst]is the sameleaas before, but with arepprefix stuck on the front.leais not a repeatable instruction, so therephere is meaningless and the processor ignores it.cs lea rsi, [rel src]is the sameleafor the source, with acsprefix.csis a segment prefix, a tag that in older code selected a memory segment. On modern 64-bit code it has no useful effect here, so it is ignored.gs gs gs stdis the direction-flag instruction with threegsprefixes stacked up. Again, they are redundant and ignored.repnz mov rcx, 32is the counter setup with arepnzprefix, which means "repeat while not zero". On a plainmovit does nothing, so it is ignored.rep rep rep rep movsbis the copy with fourrepprefixes in a row. Onerepis enough; the extra three are redundant and ignored.
The point of this example is to show that the processor is very forgiving. It sees a pile of tags it does not need and quietly skips over them. That forgiveness is exactly what makes the bug in this story surprising.
The most interesting prefixes are rex, vex and evex, all of which change how subsequent instructions are decoded. We will look at rex next, because that is the one involved in the bug.
The REX prefix
To understand rex, you first need to know what a register is in a bit more detail. A register is a small fixed-size storage slot inside the CPU. Programs keep their working values there because registers are far faster than main memory. The original 32-bit x86 chips, known as i386, had only 8 general purpose registers, so 3 bits were enough to name one (2^3 is 8), and instruction encoding reserved just enough bits to specify any of them.
Simple 2-byte instructions that use modr/m might be encoded like this, for example mov eax, ebx. This is an 8-bit opcode, 2 bit addressing mode (labeled m), and 3 bits each for the source (s) and destination (d).
The image shows how a small instruction is laid out as a pattern of bits. An opcode is the part that says which operation it is (here, a move). The addressing mode says how to find the operands. The source and destination fields each get 3 bits, which is exactly enough to name one of the 8 registers.
x86-64 added 8 more general purpose registers, giving sixteen possibilities, which is 2^4, so another bit is needed. The rex prefix supplies spare bits that the next instruction can borrow. It is written like this:
rex.rxb
rex is a single-byte prefix. The first four bits are mandatory and the remaining four, called b, x, r and w, are optional. rex.rb means only the r and b bits are set. Think of it as a little lending library: the rex prefix carries a few spare bits, and the instruction that follows can borrow them to name a register that would otherwise not fit in its own encoding.
The rex prefix can lend the next instruction extra bits to use for operands, so now we can encode all 16 possible general purpose registers!
The image shows the same instruction layout as before, but with the borrowed rex bits added on, so the source and destination fields can now reach all sixteen registers.
Encoding rules and the question that started it
Since rex increases the space available for encoding operands, and since useless or redundant prefixes are usually ignored, what should this instruction do?
rex.rxb rep movsb
Line by line:
rex.rxbis arexprefix with ther,xandbbits set. Those bits are meant to extend the register numbers used by the next instruction.rep movsbis the repeated byte copy from before.
movsb has no operands, they are all implicit, so any rex bits are meaningless. The source, destination and count are fixed registers, not chosen by the instruction. The expected answer is that the processor silently ignores the rex prefix, and on most machines that is exactly what happens. The exception is machines that support a new feature called fast short repeat move. A bug with redundant rex prefixes interacting with that feature turned out to introduce a serious vulnerability.
Fast short repeat move
To understand why this feature exists, it helps to know a little about how memory copying works inside a chip. Moving strings efficiently is hard because all the buffers have to be aligned before the widest possible stores can be used. Alignment means starting at an address that is a multiple of some size, so the processor can move several bytes at once instead of one at a time. Doing that in software is possible, but doing it in microcode lets the processor transparently make existing code faster. Microcode is a tiny built-in program inside the CPU that implements complex instructions step by step. The setup is expensive, but once it is done you get vastly improved throughput. This is enhanced repeat move/store, ERMS, and with ERMS support a simple rep movsb can sometimes perform comparably with hand-tuned vector move operations.
The problem with ERMS is that the initial setup is so expensive that it is not worth it for very short strings. FSRM handles the case of moving 128 bytes or less and makes that faster too. The author notes that he is not aware of documentation explaining exactly how FSRM works, but you can check whether a processor supports it in the flags line of /proc/cpuinfo:
flags : fpu vme de pse tsc msr pae mce cx8 [...] fsrm
/proc/cpuinfo is a file on Linux systems that describes the processor. The flags line lists the features the chip supports, each as a short code. The [...] in the middle stands for a long list of other flags that are not relevant here. The one that matters is fsrm at the end: if you see it, the chip supports fast short repeat move.
Processors with the feature include Ice Lake, Rocket Lake, Tiger Lake, Raptor Lake, Alder Lake and Sapphire Rapids. Those are code names for generations of Intel processors. That list may not be comprehensive; Intel advisory INTEL-SA-00950 has the complete list.
Setup
How the researchers were looking for bugs
The work came out of an ongoing effort to verify the safety of CPUs. The validation technique used is called Oracle Serialisation: generate two forms of the same randomly generated program and verify that their final state is identical. Think of it like giving two students the same maths problem written in two different ways: if they both follow the rules correctly, they should end up with the same answer. If the answers differ, something is wrong, either in the problem or in the way it was solved. Here, the two forms are two versions of the same program, and the "answer" is the final state of the machine. The report points to a previous writeup for more detail on the technique.
No accounts, roles or special privileges are involved. The reproduction runs on the affected hardware, and the report states that the behaviour was verified even inside an unprivileged guest VM. A virtual machine, or VM, is a computer simulated in software on top of a real one. A guest is the simulated machine, and the host is the real one underneath. Cloud providers use VMs to rent out slices of the same physical server to many customers at once. An unprivileged guest is one with no special rights over the host, which is exactly the situation a normal cloud customer is in.
Finding it
In August, the validation pipeline produced an interesting assertion. An assertion is a check in a program that says "this must be true"; if it is not true, the program stops and reports a failure. The pipeline had found a case where adding redundant rex.r prefixes to an FSRM optimised rep movs operation seemed to cause unpredictable results.
Testing showed very strange behaviour: branches to unexpected locations, unconditional branches being ignored, and the processor no longer accurately recording the instruction pointer in xsave or call instructions. Debuggers reported impossible states. A few of those terms need unpacking:
- A branch is an instruction that tells the processor to continue running from a different place in the program. An unconditional branch is one that should always be taken, with no question asked.
- The instruction pointer is a register that holds the address of the instruction currently being executed. It is how the processor knows where it is in the program.
xsaveis an instruction that saves the processor's state to memory, including the instruction pointer, so it can be restored later.callis an instruction that jumps to a function and remembers where to come back to.- A debugger is a tool that lets you pause a program and inspect its state. If a debugger reports an impossible state, the machine itself is in a state that should not be reachable.
That already looked like it could indicate a serious problem, and within a few days of experimenting the team found that when multiple cores triggered the same bug, the processor would begin to report machine check exceptions and halt. A core is one processing unit inside a CPU; modern chips have several, so they can run several things at once. A machine check exception is the processor's way of saying "I have detected an internal hardware error I cannot recover from". Halting means the machine stops.
Because this worked inside an unprivileged guest VM, it had serious implications for cloud providers, and it was reported to Intel as soon as it was confirmed to be a security issue.
Exploitation
Step 1: obtain the reproduction tool
The research is published in the security research repository, and the icebreak tool reproduces the vulnerability:
$ ./icebreak -h
usage: ./icebreak [OPTIONS]
-c N,M Run repro threads on core N and M.
-d N Sleep N usecs between repro attempts.
-H N Spawn a hammer thread on core N.
Line by line:
$ ./icebreak -hruns the tool with the-hoption, which asks it to print its help text. The$is just the shell prompt, not part of the command.usage: ./icebreak [OPTIONS]is the tool telling you how it expects to be called.-c N,Mruns reproduction threads on core N and core M. A thread is one stream of instructions running inside a program; a program can have several at once. Here, each thread is trying to trigger the bug on a chosen core.-d Nsleeps for N microseconds between reproduction attempts. A microsecond is one millionth of a second. This option lets you slow the attempts down.-H Nspawns a hammer thread on core N. A hammer thread is a thread that keeps the core busy, which can help provoke the bug when you are not using two different cores.
Step 2: run it on a core pair
The testcase enters what should be an infinite loop, so unaffected systems produce no output at all. On affected systems a . is printed on each successful reproduction:
$ ./icebreak -c 0,4
starting repro on cores 0 and 4
.........................................................................
.........................................................................
.........................................................................
.........................................................................
.........................................................................
Line by line:
$ ./icebreak -c 0,4runs the tool with-c 0,4, meaning it should run reproduction threads on core 0 and core 4.starting repro on cores 0 and 4is the tool confirming which cores it is using.- Each row of dots is a series of successful reproductions. One dot per success. On a healthy machine you would see nothing at all, because the testcase is supposed to loop forever without printing anything.
Step 3: choose the cores to get the behaviour you want
If the cores are SMT (Symmetric Multithreading) siblings, you may observe random branches. SMT is a technique where one physical core pretends to be two logical cores, so it can work on two threads at once. The two logical cores are called siblings. If they are SMP (Symmetric Multiprocessing) siblings from the same package, you may observe machine checks. SMP here means two separate physical cores on the same chip package. If you do not specify two different cores, you might need a hammer thread to trigger a reproduction.
Root cause
How microcode works in modern systems is a closely guarded secret, so the root cause can only be theorised from observations.
The CPU is split into a frontend, which fetches and decodes instructions and generates μops for the backend, and a backend, which executes instructions out of order and uses a unit called the ROB, the reorder buffer, to store and organise results. A μop, pronounced "micro-op", is a small internal operation the CPU actually executes; one x86 instruction can turn into several μops. Out of order means the backend does not have to run instructions in the order they appear, as long as the final result looks the same. The reorder buffer is what keeps track of that, so results can be put back in the right order.
The experiments show that certain executions of rep rex.r movsb associate a different instruction pointer with the instruction, so subsequent executions execute code at the "wrong" instruction pointer. rep movsb is handled by the microcode sequencer (MS), which in some cases needs to store the program instruction pointer, for example to be able to restart execution when interrupts occur, or to calculate it. The theory is that either the MS or the reorder buffer set the wrong value for the IP associated with rep rex.r movsb, as a result of the instruction execution being interrupted by something else.
The machine can eventually recover from this state, perhaps with incorrect intermediate results, but becoming internally consistent again. If multiple SMT or SMP cores are made to enter the state simultaneously, enough microarchitectural state corruption occurs to force a machine check.
Impact
The team can corrupt system state badly enough to cause machine check errors, and has observed threads interfering with the execution of processes scheduled on SMT siblings. The authors state plainly that they do not know whether the corruption can be controlled precisely enough to achieve privilege escalation; the author suspects it is possible but has no way to debug μop execution. Privilege escalation means going from a low-privilege position, such as a normal user or a guest VM, to a high-privilege one, such as the host or an administrator.
Because the behaviour was verified inside an unprivileged guest VM, the report says this has serious security implications for cloud providers. CVSS is a standard scoring system for rating how serious a vulnerability is.
Fix
Intel published updated microcode for all affected processors, and operating system or BIOS vendors may already have an update available. BIOS is the firmware that starts your computer before the operating system loads, and it often carries the CPU's microcode updates.
If updating is not possible, fast strings can be disabled via the IA32_MISC_ENABLE model specific register. A model specific register, or MSR, is a special register that controls chip-wide settings. This causes a significant performance penalty and should not be used unless absolutely necessary.
Variants to test
- Other redundant prefixes on FSRM-optimised string operations. The bug involves
rex.ronrep movsb; try other redundant or conflicting prefixes onrep movsandrep stosand compare the final state of two forms of the same program. A positive result is an assertion failure in the oracle, or a debugger reporting an impossible state.rep stosis the sibling ofrep movsthat fills memory with a repeated value instead of copying it. - Other microcode-sequencer instructions with redundant prefixes. The theory points at the MS storing or calculating the instruction pointer; look for instructions handled by the MS where a redundant prefix is nominally ignored. A positive result is a branch to an unexpected location or an ignored unconditional branch.
- Instruction pointer recording after the operation. Check
xsaveandcallresults after the suspect instruction. A positive result is an instruction pointer that does not match the instruction actually executing. - Multi-core triggering. Run the same test on SMT siblings and on SMP siblings from the same package. A positive result is random branches on SMT siblings and machine checks on SMP siblings.
- Unprivileged guest context. Repeat the reproduction inside a VM without privileges. A positive result is the same behaviour as on bare metal, which is what makes the bug relevant to cloud providers.
Glossary
- Assertion: a check in a program that says "this must be true"; if it is not, the program stops and reports a failure.
- Backend: the part of the CPU that executes instructions out of order and organises the results.
- BIOS: the firmware that starts a computer before the operating system loads.
- Branch: an instruction that tells the processor to continue running from a different place in the program.
- Core: one processing unit inside a CPU; modern chips have several.
- CPU: central processing unit, the chip that runs programs by executing instructions.
- CVSS: a standard scoring system for rating how serious a vulnerability is.
- Debugger: a tool that lets you pause a program and inspect its state.
- ERMS: enhanced repeat move/store, a feature that speeds up memory copies by doing alignment work in microcode.
- FSRM: fast short repeat move, a feature that speeds up very short memory copies of 128 bytes or less.
- Frontend: the part of the CPU that fetches and decodes instructions and generates μops.
- Guest: the simulated machine inside a virtual machine.
- Host: the real machine underneath a virtual machine.
- Instruction: a single tiny command a CPU can execute.
- Instruction pointer: a register holding the address of the instruction currently being executed.
- Machine check exception: the processor's way of saying it has detected an internal hardware error it cannot recover from.
- Microcode: a tiny built-in program inside the CPU that implements complex instructions step by step.
- Microcode sequencer (MS): the part of the CPU that runs microcode for complex instructions.
- Microsecond: one millionth of a second.
- Model specific register (MSR): a special register that controls chip-wide settings.
- μop: a small internal operation the CPU actually executes; one x86 instruction can turn into several.
- Opcode: the part of an instruction that says which operation it is.
- Oracle Serialisation: a validation technique that generates two forms of the same program and checks their final state is identical.
- Out of order: running instructions in a different order from how they appear, as long as the final result looks the same.
- Prefix: a small extra tag placed in front of an instruction that changes how it behaves.
- Privilege escalation: going from a low-privilege position to a high-privilege one.
- Register: a small fixed-size storage slot inside the CPU.
- REX: a single-byte prefix that lends extra bits to the next instruction so it can name more registers.
- Reorder buffer (ROB): a unit that stores and organises results so out-of-order execution still produces the right answer.
- SMP: symmetric multiprocessing, two separate physical cores on the same chip package.
- SMT: symmetric multithreading, one physical core pretending to be two logical cores.
- Thread: one stream of instructions running inside a program.
- Virtual machine (VM): a computer simulated in software on top of a real one.
- x86: the instruction language used by most desktop and laptop processors from Intel and AMD.
- x86-64: the 64-bit version of x86, which added more registers and wider addresses.
xsave: an instruction that saves the processor's state, including the instruction pointer, to memory.