Data structurecore
Shadow stack
Also called return address stack protection.
A protected second stack that keeps a copy of each return address and is compared with the normal stack on return.
- Time
- Θ(1) worst
- Space
- Θ(h) extra
- Where
- h = the largest number of pending calls; n = the number of calls and returns in a run
- Model
- Word RAM
- Properties
- not concurrentnot externalnot persistent
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Martin Abadi, Mihai Budiu, Ulfar Erlingsson, Jay Ligatti, 2005
A shadow stack is a second stack, kept in memory that the program's normal stores cannot change, that holds a copy of every return address. At each call the return address goes on both the normal stack and the shadow stack. At each return the address read from the normal stack is compared with the top of the shadow stack, and a mismatch stops the program. If the shadow stack is truly protected, every return goes back to the call site that made the matching call, which is the most precise policy for returns there is. A buffer overflow that changes a saved return address, as in stack smashing, is then caught at the return, whatever the bytes of the overflow are. The shadow stack protects only returns, the backward edges of the control flow; control-flow integrity checks the forward edges, and control-flow bending shows why a strong CFI needs both. This page gives the structure on an abstract trace of calls and returns, with labels in place of addresses.
In plain words
When a function calls another, it leaves a note on the stack that says where to come back to. A bug that writes past the end of a local array can change that note. Then the function "returns" to a place that the program never meant to go.
A shadow stack keeps a second copy of each note, in a place that the bug cannot reach. When a function returns, the program reads the note on the normal stack and compares it with the copy. If they agree, the return goes ahead. If they differ, something changed the note, and the program stops.
The copy follows the same last-in, first-out rule as the calls themselves: the most recent call is the first to return. So a plain stack of copies is all that is needed.
The abstract type
A shadow stack is a stack of return addresses with a check built into the pop. It has these operations:
- PUSH, run at each call, saves the return address .
- CHECK-RETURN, run at each return, pops the top entry and compares it with the value that the return is about to use. It returns if they are equal, and raises a fault if not.
- RESTORE, run at a non-local exit such as
longjmpor the unwinding of an exception, drops the entries above depth .
A capacity bound makes PUSH fault when the shadow stack is full. The structure has no operation that writes an entry other than the top one, and that is the point: the program has no way to change a saved address.
Representation
The state is an array of entries and an index , the number of saved addresses. Both live in a region that ordinary stores of the program cannot write.
Invariant (I). Let the intended stack be the list of return addresses of the pending calls, oldest first, that the calls, returns and non-local exits of the run define. Then and for each .
The normal stack of the program also holds these return addresses, inside its activation records, but a memory error can change them there. The invariant says that the shadow stack holds the values that the normal stack would hold if no memory error had happened.
Operations
CREATE(c)- 1
S ← an array of c entries in protected memory; t ← 0 PUSH(S, a) ▷ at each call; a is the return address- 2
if t = c then fault "shadow stack full" - 3
S[t] ← a - 4
t ← t + 1 CHECK-RETURN(S, r) ▷ at each return; r is read from the normal stack- 5
if t = 0 then fault "shadow stack empty" - 6
t ← t - 1 - 7
if S[t] ≠ r then fault "return address mismatch" - 8
return r RESTORE(S, d) ▷ at a non-local exit to a frame saved at depth d- 9
if d > t then fault "bad restore" - 10
t ← d
Push. Lines L2 to L4 append the return address. The call itself pushes the same value on the normal stack, so after the call both stacks agree on the top entry.
Check on return. Line L6 pops the saved copy and line L7 compares it with the value that the return instruction read from the normal stack. The comparison is on the value only, so a write that puts back the same value is not a fault, and a write that changes the value is caught however it was made: a linear overflow, a write through a stray pointer, or a format string error.
Restore. A setjmp saves the depth beside its normal state, and the matching longjmp calls RESTORE with that depth. Line L9 rejects a depth above the current one, which would make old entries valid again.
Each operation runs a fixed number of steps, so it costs .
Example
Take a run where main calls f with return label r1, f calls g with label r2, g returns, f calls h with label r3, and then a memory error in h overwrites the saved return address of h with the label x. Steps are numbered from 1; the code numbers them from 0.
| step | event | normal stack | shadow stack | result |
|---|---|---|---|---|
| 1 | call, return label r1 | r1 | r1 | |
| 2 | call, return label r2 | r1 r2 | r1 r2 | |
| 3 | return | r1 | r1 | reads r2, top copy r2, returns to r2 |
| 4 | call, return label r3 | r1 r3 | r1 r3 | |
| 5 | memory error writes x at the top entry | r1 x | r1 r3 | the shadow stack is not touched |
| 6 | return | r1 | r1 | reads x, top copy r3, fault "return address mismatch" |
The run stops at step 6, before control reaches x. Without the write at step 5, step 6 returns to r3 and the last return goes to r1.
A non-local exit: main calls f with label r1, f runs setjmp at depth 1, then calls g with r2, and g calls k with r3. A longjmp back to f cuts both stacks to depth 1, and the next return of f reads r1 from both. Without RESTORE, the shadow stack would still hold r1 r2 r3, and that return would compare r1 with r3 and fault by mistake.
Correctness
The invariant (I) holds after each event of the run, under three assumptions: only lines L1 to L10 change and ; the instrumentation runs at every call, return and non-local exit; and the capacity is large enough. A memory error changes the normal stack but not the shadow stack, so it leaves (I) intact. By (I), line L7 compares the value that the return read with the return address of the matching call. So CHECK-RETURN faults exactly when the return would go somewhere other than the call site that made the matching call, and it never faults on a run where no saved return address was changed. The full proof, by induction over the events, is in the correctness proof.
Proof: A protected shadow stack accepts exactly the returns to the matching call sitefull
The model. A run of the protected program is a finite sequence of events . Each event is one of: CALL, which saves the return address ; RET, which reads a value from the normal stack and returns to it; WRITE, which changes an entry of the normal stack; and RESTORE, a non-local exit to a frame saved at depth . The instrumentation runs PUSH at each CALL, CHECK-RETURN at each RET with the value that the RET read, and RESTORE at each RESTORE.
Assumptions. (A1) Only lines L1 to L10 write the array and the index ; no WRITE event changes them. (A2) The instrumentation runs at every call, every return and every non-local exit of the run, and nowhere else. (A3) The capacity is at least the largest number of pending calls in the run, and every RESTORE has at most the current number of pending calls. These are the assumptions that a real shadow stack must make true, by hardware protection of its pages, by the compiler, and by the runtime library.
The intended stack. Define a sequence of return addresses after the first events, from the CALL, RET and RESTORE events alone: is empty; CALL appends ; RET removes the last entry; RESTORE keeps the first entries; WRITE leaves as it is. For calls and returns that nest, the last entry of at a RET event is the return address of the CALL event that matches , the latest CALL before that has not yet been matched by a RET or cut off by a RESTORE. This is the same matching as for balanced parentheses.
Invariant (I). After the first events, if no fault was raised, then and for .
Proof of (I), by induction on .
Base, . Line L1 sets , and is empty. There is no index to check.
Step. Assume (I) after events, with no fault. Look at the event .
- WRITE. By (A1) neither nor changes, and , so (I) still holds. This is the one place where the protection of the shadow stack is used.
- CALL. By (A3) and the hypothesis, capacity, so line L2 does not fault. Line L3 writes and line L4 sets . The entries of the old do not change. So holds followed by , which is , and the new is .
- RET, with value . Suppose that no fault is raised. Then by line L5, line L6 sets , and no entry of is written. So for the new are the first entries of , which is .
- RESTORE. By (A3), , so line L9 does not fault, and line L10 sets . No entry is written, so are the first entries of , which is .
In each case (I) holds after events.
Theorem. Under (A1), (A2) and (A3), at a RET event that reads the value from the normal stack, CHECK-RETURN raises a fault if and only if differs from the return address of the matching call, the last entry of . If it raises no fault, it returns , so the return goes to the matching call site. CHECK-RETURN never faults with "empty" on a run whose returns all have a matching call.
Proof. By (I) after events, and is the last entry of . A RET with a matching call has , so line L5 does not fault. Line L6 sets to , so line L7 compares with the old , the last entry of . It faults exactly when the two differ. If they agree, line L8 returns , which equals the return address of the matching call.
Corollary (no false alarm, no missed overwrite). If no WRITE event changes a saved return address before it is used, the normal stack and the intended stack agree at each RET, so no fault is raised. If WRITE events leave a different value in the saved return address of a pending call when its matching RET reads it, that RET faults. If an earlier RESTORE cut the frame off, the changed value is never used as a return target. In both cases, no RET of the run goes to an address other than the return address of its matching call.
What the theorem does not say. It is a statement about returns only. It says nothing about indirect calls and jumps (the forward edges), and nothing about data that a WRITE changes other than saved return addresses. If (A1) fails, for example when the shadow stack is only hidden at a secret address and the attacker can find it, the invariant can break, and so can the theorem.
Termination and cost. Each operation runs a fixed number of lines, with no loop, so each one ends after steps in the word RAM model. A run of events takes steps in total.
Complexity
| operation | time | memory accesses |
|---|---|---|
| create | , or to clear the array | none |
| push | 1 write to the shadow region | |
| check on return | 1 read of the shadow region | |
| restore | none | |
| space | entries, at least |
Here is the largest number of pending calls in a run, and a run of calls and returns costs extra steps. The model is the word RAM, with one return address per word.
These are counts in the model. The real cost of a software shadow stack comes from the extra memory traffic on every call and return, and it is a measurement. Dang, Maniatis and Wagner (2015) measured roughly 10 percent for a traditional shadow stack with its own stack pointer on x86, and about 3.5 percent for a parallel shadow stack placed at a fixed offset from the normal stack. Abadi et al. measured an average of 21 percent on their SPEC benchmarks for CFI together with a protected shadow call stack (TISSEC 2009 version). With hardware support, as in Intel CET, the push and the compare are part of the call and return instructions.
Variants
- Compact and parallel layouts. A compact shadow stack has its own stack pointer, which must itself be protected, for example in a reserved register; Clang's ShadowCallStack on AArch64 keeps it in register x18. A parallel shadow stack sits at a fixed offset from the normal stack and needs no second pointer, at the cost of as much memory as the normal stack. Burow, Zhang and Payer (2019) compare the layouts.
- Protection of the region. The guarantee rests on the region being unwritable by the program. Hardware gives the strongest form: Intel CET marks shadow stack pages with a special page type that ordinary stores cannot write, and raises a control protection fault on a mismatch. Software can use segmentation, software fault isolation or memory protection keys. Hiding the region at a random address is the weakest form, because any leak of the address breaks it.
- The policy on a mismatch. Stop the program (the usual choice), or return to the saved copy instead of the value on the normal stack. The second keeps the program running but hides the bug.
- Unwinding by search. Some designs, instead of RESTORE, pop entries on a mismatch until one matches the target, to support
longjmpand exceptions without changes to the library. This is weaker: it accepts a return to any pending call site, not only the top one. - Return address encryption. Arm pointer authentication signs the return address with a key and the stack pointer, and checks the signature on return. It is not a shadow stack: a signed value can be reused at another point where the stack pointer has the same value.
When to use it
Use a shadow stack when returns must go back exactly where they came from, with no secret that can leak and no false alarms on correct code. It is the natural complement of forward-edge control-flow integrity: Carlini et al. (2015) found that fully precise static CFI without a shadow stack still allowed strong attacks in five of six programs, and that adding a shadow stack stopped arbitrary code execution in three of the six. A stack canary is cheaper in software and needs no extra memory, but it detects only overflows that pass through the canary, and only while the canary value stays secret. A shadow stack does not stop attacks that change data and leave returns alone; see data-oriented programming and code-pointer integrity.
Pitfalls
- An unprotected region. If the program can write or , an attacker who can change a return address can change its copy too, and line L7 passes. The protection of the region is the whole guarantee.
- Missing RESTORE on non-local exits. Code that leaves frames without returning, such as
longjmp, exception unwinding, coroutines and user-level thread switches, must call RESTORE (or switch to another shadow stack). Without it, line L7 raises false alarms on correct programs, and the usual reaction is to turn the defense off. - Instrumentation gaps. A library compiled without the instrumentation pushes nothing at its calls and checks nothing at its returns. Mixed code must be handled at the boundary, or the check in line L7 compares the wrong entries.
- Tail calls and unusual returns. A tail call replaces a return by a jump, and some code uses a return instruction to jump to a computed address. Both change the pairing of calls and returns that invariant (I) needs.
- Treating it as full CFI. The shadow stack says nothing about indirect calls and jumps, or about non-control data.
Implementations
The Python class follows the main block on an abstract trace. A return address is a label such as "r1", and a modeled memory error writes a label into the normal stack, which is a Python list; the shadow stack is a separate object that the write cannot reach. The tests check the class against a list on random operations, and check the trace runner against the call and return matching computed by a backward scan, on random traces with writes and non-local exits.
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/shadow-stack/. The authors are listed in prov/5QQA10.jsonl.
"""Shadow stack on an abstract call and return trace.
The model has no real memory and no real addresses. A return address is any
hashable label, such as the string "r1". The normal stack of the program is a
Python list that a modeled memory error may overwrite. The shadow stack is a
separate object that only the operations below change, which models a shadow
stack in memory that ordinary stores of the program cannot write.
"""
from collections.abc import Hashable, Sequence
class ShadowStackFault(Exception):
"""Raised when a check fails. kind is "full", "empty", "mismatch" or "restore"."""
def __init__(self, kind: str) -> None:
super().__init__(kind)
self.kind = kind
class ShadowStack:
"""A bounded stack of return addresses with a check on each return.
Each operation takes O(1) time in the word RAM model. The space is
capacity entries. Precondition: push is called at every call and
check_return at every return of the protected program, in order.
"""
def __init__(self, capacity: int = 1024) -> None:
if capacity < 1:
raise ValueError("capacity must be positive")
self._s: list[Hashable] = [None] * capacity # @line L1
self._t = 0 # @line L1
self._cap = capacity
def push(self, a: Hashable) -> None:
"""Save the return address a of a call."""
if self._t == self._cap: # @line L2
raise ShadowStackFault("full")
self._s[self._t] = a # @line L3
self._t += 1 # @line L4
def check_return(self, r: Hashable) -> Hashable:
"""Compare r, read from the normal stack, with the saved copy; return r if they agree."""
if self._t == 0: # @line L5
raise ShadowStackFault("empty")
self._t -= 1 # @line L6
if self._s[self._t] != r: # @line L7
raise ShadowStackFault("mismatch")
return r # @line L8
def restore(self, d: int) -> None:
"""Drop the entries above depth d, for a non-local exit to a frame saved at depth d."""
if d < 0 or d > self._t: # @line L9
raise ShadowStackFault("restore")
self._t = d # @line L10
def depth(self) -> int:
"""The number of saved return addresses."""
return self._t
def entries(self) -> list[Hashable]:
"""The saved return addresses, oldest first."""
return self._s[: self._t]
def check_invariant(self) -> None:
"""The top index stays inside the array."""
assert 0 <= self._t <= self._cap
Event = tuple
def run_trace(
trace: Sequence[Event], capacity: int = 1024
) -> tuple[list[Hashable], int | None, str | None]:
"""Run an abstract program trace with a shadow stack and stop at the first fault.
Events:
("call", a) push a on the normal stack and on the shadow stack
("ret",) pop r from the normal stack, check it, and return to r
("write", k, v) a modeled memory error sets the normal stack entry k
places below the top to v; the shadow stack is not touched
("setjmp", j) save the current depth under the name j
("longjmp", j) cut both stacks back to the depth saved under j
Returns (targets, fault_index, fault_kind): the return targets taken before
the run stopped, the index of the event that faulted (or None), and the kind
of the fault (or None). Cost: O(1) per event, O(capacity) space.
Precondition: the trace never returns from an empty normal stack, writes
only existing entries, and jumps only to a saved name whose depth is not
above the current depth.
"""
normal: list[Hashable] = []
shadow = ShadowStack(capacity)
saved: dict[Hashable, int] = {}
targets: list[Hashable] = []
for i, ev in enumerate(trace):
op = ev[0]
try:
if op == "call":
normal.append(ev[1])
shadow.push(ev[1])
elif op == "ret":
if not normal:
raise ValueError("return from an empty normal stack")
r = normal.pop()
targets.append(shadow.check_return(r))
elif op == "write":
k, v = ev[1], ev[2]
if not 0 <= k < len(normal):
raise ValueError("write outside the normal stack")
normal[len(normal) - 1 - k] = v
elif op == "setjmp":
saved[ev[1]] = len(normal)
elif op == "longjmp":
d = saved[ev[1]]
if d > len(normal):
raise ValueError("jump to a frame that has returned")
del normal[d:]
shadow.restore(d)
else:
raise ValueError(f"unknown event {op!r}")
except ShadowStackFault as f:
return targets, i, f.kind
return targets, None, None
test_shadow_stack.py 216 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/shadow-stack/. The authors are listed in prov/5QQA10.jsonl.
import random
import pytest
from shadow_stack import ShadowStack, ShadowStackFault, run_trace
def test_example_of_the_page() -> None:
trace = [
("call", "r1"),
("call", "r2"),
("ret",),
("call", "r3"),
("write", 0, "x"),
("ret",),
("ret",),
]
assert run_trace(trace) == (["r2"], 5, "mismatch")
def test_example_without_the_write() -> None:
trace = [("call", "r1"), ("call", "r2"), ("ret",), ("call", "r3"), ("ret",), ("ret",)]
assert run_trace(trace) == (["r2", "r3", "r1"], None, None)
def test_longjmp_example() -> None:
trace = [
("call", "r1"),
("setjmp", "j"),
("call", "r2"),
("call", "r3"),
("longjmp", "j"),
("ret",),
]
assert run_trace(trace) == (["r1"], None, None)
def test_write_of_the_same_value_is_not_a_fault() -> None:
trace = [("call", "r1"), ("write", 0, "r1"), ("ret",)]
assert run_trace(trace) == (["r1"], None, None)
def test_write_to_a_deeper_frame_is_caught_later() -> None:
trace = [("call", "r1"), ("call", "r2"), ("write", 1, "x"), ("ret",), ("ret",)]
assert run_trace(trace) == (["r2"], 4, "mismatch")
def test_faults_of_the_operations() -> None:
s = ShadowStack(2)
with pytest.raises(ShadowStackFault) as e:
s.check_return("r1")
assert e.value.kind == "empty"
s.push("a")
s.push("b")
with pytest.raises(ShadowStackFault) as e:
s.push("c")
assert e.value.kind == "full"
with pytest.raises(ShadowStackFault) as e:
s.restore(3)
assert e.value.kind == "restore"
with pytest.raises(ShadowStackFault) as e:
s.check_return("a")
assert e.value.kind == "mismatch"
assert s.depth() == 1
assert run_trace([("call", "a"), ("call", "b")], capacity=1) == ([], 1, "full")
with pytest.raises(ValueError):
ShadowStack(0)
def test_random_operations_against_a_list() -> None:
rng = random.Random(5150)
for _ in range(600):
cap = rng.randint(1, 6)
s = ShadowStack(cap)
model: list[int] = []
for _ in range(rng.randint(0, 30)):
op = rng.random()
if op < 0.4:
a = rng.randint(0, 3)
if len(model) == cap:
with pytest.raises(ShadowStackFault):
s.push(a)
else:
s.push(a)
model.append(a)
elif op < 0.8:
r = rng.randint(0, 3)
if not model:
with pytest.raises(ShadowStackFault):
s.check_return(r)
else:
top = model.pop()
if top == r:
assert s.check_return(r) == r
else:
with pytest.raises(ShadowStackFault):
s.check_return(r)
else:
d = rng.randint(0, cap + 1)
if d > len(model):
with pytest.raises(ShadowStackFault):
s.restore(d)
else:
s.restore(d)
del model[d:]
s.check_invariant()
assert s.depth() == len(model)
assert s.entries() == model
def random_trace(rng: random.Random, jumps: bool) -> list[tuple]:
"""A trace that satisfies the precondition of run_trace."""
trace: list[tuple] = []
depth = 0
saved: dict[str, int] = {}
for _ in range(rng.randint(0, 25)):
op = rng.random()
if op < 0.4 or depth == 0:
trace.append(("call", "r" + str(rng.randint(0, 4))))
depth += 1
elif op < 0.75:
trace.append(("ret",))
depth -= 1
elif op < 0.9:
k = rng.randrange(depth)
trace.append(("write", k, rng.choice(["r0", "r1", "x", "y"])))
elif jumps:
if saved and rng.random() < 0.5:
name = rng.choice(sorted(saved))
if saved[name] <= depth:
trace.append(("longjmp", name))
depth = saved[name]
else:
name = "j" + str(rng.randint(0, 2))
trace.append(("setjmp", name))
saved[name] = depth
return trace
def observed_and_intended(trace: list[tuple]) -> list[tuple[int, str, str]]:
"""For each return: its index, the value read from the normal stack, and the
return address of its matching call, found by a backward scan."""
normal: list[str] = []
out = []
for j, ev in enumerate(trace):
if ev[0] == "call":
normal.append(ev[1])
elif ev[0] == "write":
normal[len(normal) - 1 - ev[1]] = ev[2]
elif ev[0] == "ret":
seen = normal.pop()
count = 0
for i in range(j - 1, -1, -1):
if trace[i][0] == "ret":
count += 1
elif trace[i][0] == "call":
if count == 0:
out.append((j, seen, trace[i][1]))
break
count -= 1
return out
def test_random_traces_against_call_matching() -> None:
rng = random.Random(1972)
for _ in range(800):
trace = random_trace(rng, jumps=False)
rets = observed_and_intended(trace)
bad = [j for (j, seen, want) in rets if seen != want]
targets, idx, kind = run_trace(trace)
if bad:
assert (idx, kind) == (bad[0], "mismatch")
else:
assert (idx, kind) == (None, None)
assert targets == [want for (j, seen, want) in rets if idx is None or j < idx]
def test_random_traces_with_jumps_against_a_model() -> None:
rng = random.Random(2019)
for _ in range(800):
trace = random_trace(rng, jumps=True)
pending: list[str] = []
normal: list[str] = []
saved: dict[str, int] = {}
expect: tuple[list[str], int | None, str | None] = ([], None, None)
taken: list[str] = []
for i, ev in enumerate(trace):
if ev[0] == "call":
pending.append(ev[1])
normal.append(ev[1])
elif ev[0] == "write":
normal[len(normal) - 1 - ev[1]] = ev[2]
elif ev[0] == "setjmp":
saved[ev[1]] = len(pending)
elif ev[0] == "longjmp":
del pending[saved[ev[1]]:]
del normal[saved[ev[1]]:]
else:
want, seen = pending.pop(), normal.pop()
if want != seen:
expect = (taken, i, "mismatch")
break
taken.append(want)
else:
expect = (taken, None, None)
assert run_trace(trace) == expect
def test_no_false_alarm_without_writes() -> None:
rng = random.Random(7)
for _ in range(500):
trace = [ev for ev in random_trace(rng, jumps=True) if ev[0] != "write"]
assert run_trace(trace)[1] is None
History
Software return address stacks appeared around 2000, for example in StackShield and in the return address repository of Chiueh and Hsu (ICDCS 2001). Abadi, Budiu, Erlingsson and Ligatti built a protected shadow call stack on top of control-flow integrity in 2005, and used CFI to make the region unwritable. Dang, Maniatis and Wagner (2015) measured why software shadow stacks were rarely deployed, and proposed the parallel layout. Intel published the Control-flow Enforcement Technology specification, with a hardware shadow stack and indirect branch tracking, and processors with it shipped from 2020. Burow, Zhang and Payer (2019) surveyed the design space and released implementations of the known schemes in LLVM.
References
- Nathan Burow, Xinping Zhang and Mathias Payer, SoK, shining light on shadow stacks, 2019 IEEE Symposium on Security and Privacy, pages 985-999, the design space of shadow stacks (compact and parallel layouts, protection of the shadow region, the comparison policy) and their evaluation of performance, compatibility and security
- Martin Abadi, Mihai Budiu, Ulfar Erlingsson and Jay Ligatti, Control-flow integrity, principles, implementations, and applications, ACM Transactions on Information and System Security 13(1), article 4, 2009, the section on a protected shadow call stack built on CFI, and its measured cost on SPEC benchmarks
- Thurston H. Y. Dang, Petros Maniatis and David Wagner, The performance cost of shadow stacks and stack canaries, ASIA CCS 2015, pages 555-566, the traditional and the parallel shadow stack, and their measured overheads
- Nicholas Carlini, Antonio Barresi, Mathias Payer, David Wagner and Thomas R. Gross, Control-flow bending, on the effectiveness of control-flow integrity, 24th USENIX Security Symposium, 2015, pages 161-176, the results with and without a shadow stack on six programs
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1, the chapter on Control-flow Enforcement Technology (shadow stack pages, the shadow stack pointer and the control protection fault)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5QQA10 Edit this page History Report an error Markdown