diff options
30 files changed, 3698 insertions, 96 deletions
diff --git a/design/README.md b/design/README.md index d50d8c1..60e6cea 100644 --- a/design/README.md +++ b/design/README.md @@ -66,7 +66,7 @@ this table. | 2 row | [`chain`](#chain) | a telescope: this, which points to that, which holds this | `room`, marks per hop; opens a `loupe` | | | [`reg`](#reg) | a register and its chain | `rip` (with `flags`) | | | [`slot`](#slot) | a word of the stack and its chain | pins; `free` | -| | [`insn`](#insn) | an instruction and its annotation | `current`, `ran`, `ahead`, `outside`, `waiting`, `pass` | +| | [`insn`](#insn) | an instruction and its annotation | `current`, `ran`, `ahead`, `outside`, `waiting`, `pass`; the annotation `tied` (the default) or `whole` | | | [`line`](#line) | a line of source | `current`, `trail`, `waiting`; wide numbers | | | [`bytes`](#bytes) | sixteen bytes of a dump and what they read as | field runs (`size`, `protected` among them), marks per byte; wide address | | | [`call`](#call) | one frame of the call chain | `row`, `span`; `newest` | @@ -84,6 +84,8 @@ this table. | | [`link`](#4-ties) | this register points at that | for a step; rests as a `pin`; a stub when that is out of view | | | [`projection`](#4-ties) | these bytes are that part of the drawing | for a step | | | [`echo`](#4-ties) | the same mark in two panels at once | for a step | +| | [`touch`](#4-ties) | this instruction reads or writes that word | for a walked step, while the row is current; `tied` only | +| | [`carry`](#4-ties) | this value went from that word to this register, or back | a scene's knob, off by default; for a walked step | | 5 frame | [`stage`](#5-the-frame) | the working frame: the band and the two columns | split `none`, `beside`, `subject`, `blocks` | | | [`segments`](#segments) | the process's address space to scale, each end enlarged, its bands' addresses at their edges | treatments A (default), B, C; the ink's source: a band framed when a word is inked; a dump's place | | | [`aligned`](#aligned) | the source and its instructions in one panel, each line level with its code | `interleaved`, `columns`; a split a scene chooses | @@ -91,10 +93,12 @@ this table. | | [`map`](#the-map-and-the-minimap) | the working frame unfolded, every panel whole: 3840 by 2160 | the key | | | [`minimap`](#the-map-and-the-minimap) | a pane's whole column of the map, small, in a strip at its right | its window, marks, `flash` | | | [`clock`](#clock-and-caption) | where in the recording | | +| | [`column`](#column-an-experiment) | an experiment: the panes a beat is about in one column, its narration in the other | the `shelf` of folded panes | +| | [`bubble`](#column-an-experiment) | a piece of narration placed in the frame, level with what it speaks of | `beside`, `below`, `above`, `on`; newest, older; its `stem` | | | [`caption`](#clock-and-caption) | the narrator | | | | [`veil`](#clock-and-caption) | page over what a beat does not touch, or a pace cannot show | | | | [`card`](#clock-and-caption) | a title, the legend: no program running | | -| 6 verb | [`fire` `arm` `strike` `cool` `read` `extend` `link` `project` `travel` `advance`](#6-verbs) | what one block does | | +| 6 verb | [`fire` `arm` `strike` `cool` `read` `extend` `link` `project` `touch` `carry` `travel` `follow` `advance`](#6-verbs) | what one block does | | | | [`open` `close`](#6-verbs) | what a loupe does | | | | [`descend` `cross` `ascend`](#6-verbs) | what a descent does: a call followed down, a system call, a return | | | | [`regroup` `ink` `enlarge` `column` `frame up` `decode` `align`](#6-verbs) | what building a view does (the introduction) | | @@ -430,10 +434,10 @@ A word of the stack, pwndbg's way and a little more. | --- | --- | --- | | 4, 10 | arcs | the [`arc`](#arc) lanes: a word holding the address of another slot in the window | | 16 | pins | the `row` pin's lane, to 112: every register whose value is this word's address | -| 172 | offset | from rsp, hex, `+18`, faint, ranged right in four characters (`-8` above rsp) | +| 172 | offset | hex, faint, ranged right in four characters, from the newest frame's base: the register its code addresses its words by (the call frame information's CFA register: rbp in a body that keeps a frame pointer, rsp at a function's entry, in its prologue before `mov rbp, rsp`, after its `pop rbp` or `leave`, and in a function that keeps none), so that `[rbp - 0x18]` and its word's `-18` are one number. The base's row is `+0`. Under [`whole`](#insn) pwndbg's: from rsp, `+18`, and `-8` above rsp | | 184 | address | stack ink, `lead`; then the chain, its first hop the word's content | | 88 | shadow | in a run built with AddressSanitizer: the shadow byte that stands for this word's eight bytes, a `byte` cell in the pin lane's end, before the address it stands for (a fake frame's words have no offset from rsp, and no pins). `00`, addressable: faint, no paper. `f1` `f2` `f3`, the stack's left, middle and right redzones: bright on the `freed` hatch, the poison's sign. `01` to `07`, the first k bytes addressable: bright, the hatch over the other 8 − k eighths of its cell. The panel's tag gives where the shadow is, `shadow at addr >> 3 + 7fff8000` | -| right | role | what the word is, where the recording knows it, ranged right where the chain's room ends: `saved rbp`, `saved rbx` (dim); a local's name (primary), and which part of the word when it is narrower (`n, high half`); at the process's start `argc`, `argv[0]`, `argv end`, `envp end`, `auxv` (dim) | +| right | role | what the word is, where the recording knows it, ranged right where the chain's room ends: `saved rbp`, `saved rbx` (dim); a local's name (primary), and which part of the word when it is narrower (`n, high half`, `f, low half`); at the process's start `argc`, `argv[0]`, `argv end`, `envp end`, `auxv` (dim). It is the name a `tied` annotation gives the word ([`insn`](#insn)) | | 14 from the right | span | the [`call`](#call) bracket, its name left of it | A return address needs no word: its chain is code, named (`10018b0 @@ -442,9 +446,11 @@ right: a span's name is never cut, a role is never cut, and the chain on the rows they sit on ends 12 before them, cut by its own rule (`sqlite3BtreeInsert` beside `7fffffffe980 → 7fffffffeb90 → …`). -`free`: a word above rsp, which the stack has not reached. Shown only -while the window is held still for the camera ([`visit`](#6-verbs)): its -address at 60%, its word in faint, no chain, no pin. A push fills it. +`free`: a word above rsp, which the stack has not reached: the window's +headroom, the words a pop or a return has just released, and every word over +rsp while the window is held still for the camera ([`visit`](#6-verbs)). Its +address at 60%, its word in faint, no chain, no role. A push fills it; rsp's +pin reaching it makes it the frame's. ### insn @@ -458,7 +464,7 @@ An instruction, pwndbg's way: what it is, and what its operands are now. | 134 | line | the source line this run of instructions came from, ranged right in three characters, faint; on the first row of each run only; gold and bold for the current line. Wide numbers (see [`line`](#line)) widen it, and every column right of it moves by the extra: mnemonic, operands and annotation, the row's room 12 characters less for six digits | | 180 | mnemonic | keyword, bold; `nop` and `endbr64` faint, with their operands: padding, which touches nothing | | 264 | operands | as the disassembler writes them, whole, less the size words (`qword ptr `): a [`width`](#width) after the bracket where no register says the size. A jump's or call's target is an `address` in code ink; a PLT stub's, named by the stub: `401070 open@plt` | -| 564 | annotation | from 564 (540 in a pane with a [minimap](#the-map-and-the-minimap), whose strip takes 48 of the row), or a character after operands that run past it; a chain, cut at its far end by the chain's rule | +| 564 | annotation | from 564 (540 in a pane with a [minimap](#the-map-and-the-minimap), whose strip takes 48 of the row), or a character after operands that run past it: what the instruction did, in the form the scene chose (below); a chain is cut at its far end by the chain's rule | **Wide addresses.** An address of more than seven digits (a library's twelve, `7ffff7d10fc5`) moves every column right of it by the extra, 12 a @@ -485,21 +491,64 @@ whole annotation do not fit, in this order: | `waiting` | a call whose callee's window is open under it, in a descent: the plaque's place ringed (a 2-unit primary frame 24 by 24, a primary head in it), as a waiting call node is; no wash. Its annotation is the call in C's form: `open("note", O_RDONLY)` | | `pass` | a stub's jump, gone through on the way down: a trail bar; the call lane runs on from it | +**The annotation's form** is a scene's knob, `annotation`, with two values. A scene that says nothing gets +`tied`; one asks for the other with `annotation = .whole`, for the scene or from a beat on. + +- **`tied`** (the default). Every fact is printed once, in the pane that holds it, and the row names it there. + A word of memory the instruction reads or writes is named, not spelled out: the annotation is the word's + name and the value that moved, one hop, and the word's own row holds its address and the rest of its chain. + The name is the word's role in the stack ([`slot`](#slot): a local `next`, `n` for the high half it lives + in, `saved rbp`, `argv[0]`) or a global's symbol (`head`), bold, in the ink of the region it lives in, as a + variable's [`pin`](#pin) is; the grammar is the chain's, the name standing where the address would: + `next → 405010`, `prev ◂ 0`, `saved rbp → 7fffffffed00`. A register the instruction sets is the small `reg` + cut after its first value, `rax 405010`: the chain is the registers pane's, where it is struck in the same + frame. With `tied` the stack counts its offsets from the frame's base, so the operand's displacement and + the word's offset are one number (`[rbp - 0x18]`, `-18`), and a walked step draws its + [`touch`](#4-ties) from the row to the word. The row is half as long (`next → 405010` for + `7fffffffecc8 → 405010 ◂ 7`), and the value it wrote is never the part cut off: beside a minimap the whole + chain of a stack store is cut to `7fffffffecc8 → …` (mock 44). +- **`whole`**: the annotation as pwndbg prints it, a chain from the address the instruction computes + (`7fffffffecc8 → 405010 ◂ 7`), and the stack's offsets from rsp. For a scene whose story is the address + itself (where a store lands in the ASan pair, a heap scene reading the allocator's words, the introduction + before the stack has a pane), and for a frame with no stack pane at all. + +Under `tied`, where the word has no name or no pane holds it, the row falls back, that row alone: + +| The word | Its annotation under `tied` | +| --- | --- | +| a slot in the stack's window, with a role | its name and the value: `next → 405010` | +| a slot in the window with no role (a spill, a temporary, the canary's copy) | its address and the value, one hop: `7fffffffecd0 ◂ 1`; the slot's offset says where it is | +| a slot outside the window | the window scrolls to it first, in memory's slot of the step before the row fires ([`scroll`](#6-verbs)), so it is never outside when it is touched; where the window cannot go (held still for a camera [`visit`](#6-verbs), another thread's stack) the whole chain, its name in place of the address | +| a word a dump or a loupe on screen shows (the band's view, a loupe) | its address and the value, one hop: `405038 → 405010`; the run's mark is the [`echo`](#4-ties); no touch, the view being far | +| a word no pane shows (a global, the heap with no view) | the whole chain, as `whole` draws it, its name in place of the address where it has one: `head → 405050 ◂ 9` | + +**The operand** is the encoding and stays as the disassembler writes it, less its size word: `[rbp - 0x18]`, +primary. The name is the annotation's and is never written into the brackets: IDA's `[rbp+next]` (way C of +[mock 48](mock/48-tied-ways.png)) reads well but hides the displacement the stack's offset column matches, and +asks the viewer to know that `next` is −0x18. + +**What stays in the row** under either form, because no pane holds it: a compare's two values and the flags +it leaves; a conditional's `taken` and the flags it reads; a call's arguments, its result, and the call in +C's form; `lea`'s sum; an indirect target and the slot it was read through; a `rep`'s count; a system call's +name, number and arguments; a return's destination. + **The annotation**, by what the instruction does: | It | Annotation | | --- | --- | -| reads memory | a chain from the address it computes: `28b41098 → 28b41070 ◂ 9`. Before the step, where it will look; in the step its first hop is `read`. The value is read at the access's width: a 4-byte load of `n` is `7fffffffecc4 ◂ 15`, not the word round it | -| writes memory | the same chain; the value after `holds` is `struck` | -| only sets a register | a small `reg`: `rax 28b41090 ◂ 4` | +| reads memory | `tied`: the word's name and the value read, `prev → 405050`; `whole`: a chain from the address it computes, `28b41098 → 28b41070 ◂ 9`. Before the step, where it will look; in the step the name (the chain's first hop) is `read`, an [`echo`](#4-ties) of the word's own frame. The value is read at the access's width: a 4-byte load of `n` is `n ◂ 15` (`7fffffffecc4 ◂ 15`), not the word round it | +| writes memory | the same; the value is `struck`, in the frame the word is | +| only sets a register | a small `reg`: `rax 28b41090` (`tied`), `rax 28b41090 ◂ 4` (`whole`) | +| moves rsp or rbp | the move in its own terms, first: the amount, `rsp -8`, `rsp -0x18 3 words`, `rsp +0x18`, `rbp = rsp`; then the word it writes or reads, by its role (the value is the pushed or popped register's, in the registers): `push rbp` is `rsp -8 · saved rbp`, `pop rbp` `rsp +8 · saved rbp`, `leave` `rsp +0x20 · saved rbp`, a `call` `reverse() · rsp -8`, a `ret` `→ 401272 main+50 · rsp +8`. The amount is struck with rsp's strike (an echo); the stack's answer is the [stack's own instructions](motion.md#the-stacks-own-instructions) | +| computes the address of a named word (`lea rsi, [rbp - 0x30]`) | `= &buf`, the name in its ink; the register's pin lands on the word's row (a [`link`](#4-ties) to a slot) | | compares or tests | the two values it compares, ` : ` between, faint: `3 : -4096`; then the flags it leaves, those the conditional after it reads (CF ZF SF OF when none follows): set on a chip as rip's are, clear in dim lower case: `3 : -4096 CF zf` | | jumps on a condition | `taken` in primary, or `not taken` in dim, then `· reads` and the flags it reads, as the compare drew them; taken, and its target is in the window: the line in the jump lane; outside it: `taken → 1001935 reverse+37`. While it is current, the chips on the row that set them are framed as read with it (an `echo`), and rip's | | computes an address (`lea`) | `=` and what it made: an address and its chain (`= 402004 "note"`), or a number. With room, the sum first, each register's value in its ink: `rbp 7fffffffed00 - 0x30 = 7fffffffecd0` | -| calls | the callee's name, bright; its arguments hang under it in the annotation column, a small `reg` a row (`rdi …`, `rsi …`), as many as the prototype has, three when there is none. The rows they cover are ahead and have nothing there. Through a PLT stub: the function the stub reaches, `open` (or `the resolver` while its GOT slot is still lazy). Once it has run: the call in C's form and its result, `open("note", O_RDONLY) = 3` | +| calls | the callee's name, bright; its arguments hang under it in the annotation column, a small `reg` a row (`rdi …`, `rsi …`), as many as the prototype has, three when there is none. The rows they cover are ahead and have nothing there. Through a PLT stub: the function the stub reaches, `open` (or `the resolver` while its GOT slot is still lazy). A direct call whose operand already names its callee (`4011a0 reverse`) says the call in C's form instead, `reverse()`, `push(9)`. Once it has run: the call in C's form and its result, `open("note", O_RDONLY) = 3`. The word it pushes is the stack's: the call's [`touch`](#4-ties) goes to it | | calls or jumps through memory or a register | where it goes: `→ 7ffff7d10ec0 open`; then, faint, where that was read: `· read from open@got, 403fd8`. Out of room, the slot goes first, then the target's digits; its name stays: `→ __pwrite64` | | reads a place the C library's layout names | the name, then the value: `fs:[0x28]` is `the stack's canary 191a6a1f012bed00` | | repeats (`rep stosq`, `rep movsb`) | the count and the step: `rcx 12 · 8 bytes each`, the destination's chain after. Stepped by instruction a `rep` stays current while rcx counts down, an iteration a step | -| returns | `→ 10018b0 main+80` | +| returns | `→ 10018b0 main+80`: the value of the word it reads, which is framed `read` on the stack with its touch | | makes a system call | its name and number, `openat nr 257`; its arguments hang under it by name, as a call's; in a [`descent`](#descent) the kernel's window opens under its window | Mocks 9 to 11 show the read, the register-setter, the taken jump and @@ -507,7 +556,9 @@ Mocks 9 to 11 show the read, the register-setter, the taken jump and than 24 characters with the annotation moved right of them; 14 an indirect call by name; 16 a call through the PLT, `waiting`, `pass`, a system call; 17 a compare and the conditionals reading it, a `lea`, a -named place. A `rep`, and the flags' echo, are not drawn. +named place; 44 and 45 a store and a load under `whole` and `tied`; 46 a +call's push and 47 a prologue under `tied`; 48 three ways of tying the row +to its word. A `rep`, and the flags' echo, are not drawn. ### line @@ -692,25 +743,49 @@ prologue's pushes), the locals' names and places (the debug info at the pc), and the first stack pointer (argc, argv, envp, auxv). **The window** is on the newest frame: the words from rsp to its return -address, `[rsp, rbp+16)`. It is a window onto the map's stack column, which -runs from 16 words above rsp to the stack's top. +address, `[rsp, rbp+16)`, and over rsp its **headroom**, two words drawn +`free`: the room a push, a call or a `sub rsp` will take, there before they +take it. In a leaf whose locals lie under rsp (the red zone, at -O0 without a +`sub rsp`) the window starts at the lowest of them instead, rsp's pin on a row +inside it, since those words are the frame's and its instructions touch them. +It is a window onto the map's stack column, which runs from 16 words above rsp +to the stack's top. -- Where the frame is no longer than the window, the window's top is rsp - and the caller's words fill the rest. +- Where the frame is no longer than the window, the window's top is the + headroom's and the caller's words fill the rest. - Where it is longer, the window scrolls down it by whole slots ([`scroll`](#6-verbs)) to keep the slot a step touches in its middle half (the fourth to ninth of twelve), and stays there until a step - touches a slot outside it. Its top never passes above rsp. -- A push or a call moves the top with rsp: the rows slide one slot (18 f, - as rows making room), at the memory level, before the new word is - armed. A window going farther than its height fades through instead - ([`scroll`](#6-verbs)). + touches a slot outside it. +- **When rsp or rbp moves, the rows hold and the pin travels** ([`travel`](#6-verbs)): + the move of a stack pointer is the event of its step, and is seen as a + move. rsp's pin climbs (a push, a call, a `sub rsp`) or falls (a pop, a + `ret`, an `add rsp`, a `leave`) row by row along the pin lane, the amount + on it as it goes (`rsp -18`, in write's vermilion); each row it reaches + is gained (it brightens from `free` to the frame's, and its role arrives) + or released (it goes quiet, `free`); a 3-unit vermilion bracket in the + outer arc lane spans the rows it crossed; the newest frame's span + stretches or shrinks with it; its register is struck as it lands. rbp's + pin flies the same way to where rsp is (`mov rbp, rsp`), the two meeting + on one row in pwndbg's order; rsp's to rbp's (`leave`). +- **Then the window follows** ([`follow`](#6-verbs)), never with the travel: + once the pin has landed, if fewer than two free words stand over rsp, or + the newest frame's return address has gone under the window's foot, the + rows glide by whole slots to give the headroom back (the pin riding its + row). Where the climb is longer than the room over the pin, the pin + travels to the top of the window and the rows slide under it for the rest, + one move on one curve. Where it is longer than the window (a `sub rsp` of + a page, an `alloca`), the pane [`unroll`s](#6-verbs) to its column and the + pin travels along it at the column's scale, the region gained marked on + it, and the pane rolls back in at the new place. - While the camera is on the stack the window holds still ([`visit`](#6-verbs)): pushes fill `free` slots in the middle of the frame, and rsp's pin climbs to them. -Tag: `twelve words from rsp`, or the range when scrolled (`rsp+20 to -rsp+78`), and `· the frames they belong to`. +Tag: `twelve words`, or the range when scrolled (`rsp+20 to rsp+78`); what +the offsets count from, `· offsets from rbp` (`tied`: the frame's base, which +changes with the frame, a crossfade of 12 f) or `· offsets from rsp`; and +`· the frames they belong to`. ### backtrace @@ -1260,7 +1335,9 @@ one pane a thing in another is. | `thread` | this line is these instructions, and the machine is here | the source's current line; every run of its instructions in the disassembly | standing; moves with the current mark | gold, 3 units: a `tie` bracket on the line, one on each run, a line in the left margin (x 54) between them. On the map, where source and disassembly are side by side, across their gutter (x 1008) | | `link` | this register now points at that; these bytes are there | the `reg` just struck; the row or node whose address it holds. In the introduction, a dump's rows and their place in [`segments`](#segments) | for the step that set it; a dump's place stands while both are on screen | 3 units, in the ink of the region pointed into, head on the target; ends in the target's `pin` and leaves it behind. From a dump, from a `tie` bracket on its rows | | `projection` | these bytes are that part of the drawing | a run a step read or wrote, in the dump; or the return address of a frame made or ended, on the stack; the part of the drawing made of them (a node's address, a cell, a call's node) | for that step | 2 units in the mark's colour (read, write): a `tie` bracket on the row, a line, a bracket at the part (over a node's address; under a call's node); and the mark itself on the run and on the part | -| `echo` | these are one event | the same mark at the same instant in two panels: the annotation's address and the dump's run | for that step | no line | +| `echo` | these are one event | the same mark at the same instant in two panels: the annotation's address (or, `tied`, its name) and the dump's run or the stack's word | for that step | no line | +| `touch` | this instruction reads or writes that word | the current `insn`; the stack word it reads or writes (a push's, a call's and a return's included), in the stack beside it. `tied` only | a walked step, from just after the fire until the advance | 2 units in the mark's colour (read, or write's vermilion): out of the disassembly's right rule level with the row, into the gutter's middle lane (x 956), up or down it to the word's height, and onto the stack's rule, a head 7 by 8 on the rule; the word's own mark is the end, so the line never crosses the pin lane's names | +| `carry` | this value went from that word into this register, or from this register into that word | the source and the destination of a load or a store (a stack word, a dump's run or a loupe's row; a register's row); a push's register and its word, a pop's word and its register, a call's return row and its word. A scene's knob, `carry`: `off` (the default), `arrow` | a walked step, from the source's read to the destination's strike | 2 units in **primary** (a value has no region), its head an **open chevron** 7 by 8 drawn in two strokes: never a `link`, which is 3 units in the region's ink with a filled head and a pin riding it, and says "points at", not "went to". From the source's panel rule level with its row, along the gutter's right lane (x 962), onto the destination's rule. No digits travel on it | | ink, digits | these are one thing | an address anywhere and its row, node or name; a call's arguments on its span, its backtrace row and its node | always | no line | `call` spans and `pin`s are ties too, the kind that need no line because @@ -1272,11 +1349,18 @@ made of them, which is what a projection says. A node and its frame are also tied by digits, standing, through the arguments on the span. **Budget.** One `thread`, always. For a step, one `link` and one -`projection`, or the stems of two [`loupe`s](#loupe) (a stem is a link). -Never more than three drawn lines in the frame; a second pointer or a -second run in the same step gets `echo` and pins. rsp never takes a link: -its pin is on the window's top row by construction. -[`establish`](#6-verbs) draws no lines. +`projection`, or the stems of two [`loupe`s](#loupe) (a stem is a link), and +a `touch` or a `carry` (with both knobs on, a load's touch draws back as its +carry leaves the word, so the two are one gesture, one line at a time: the row +reaches into memory and the value comes back; a store draws only its carry, +the row having named the word). Never more than three drawn lines in the frame; a second pointer or +a second run in the same step gets `echo` and pins. The touch is the first to +give way: where a step draws a link and a projection it is an echo (the word's +mark with the row's, at the same frame), its two ends being side by side and +the name and the digits saying already that they are one. rsp never takes a +link: its pin is on the window's top row by construction. +[`establish`](#6-verbs) draws no lines. In the [`column`](#column-an-experiment) +a bubble's stem stands only in the rest before a step, never with its ties. **Off the window.** A link whose target is outside its panel's window (a slot past the stack's last row) comes down its lane to the panel's @@ -1293,6 +1377,8 @@ projection): | the left margin, x 54 | the thread | | the gutter's left lane, x 950 | what climbs into the band from the state column: a link from a register to a pin under a node; a projection from a frame's return address to its call node | | the gutter's right lane, x 962 | what keeps to its own height or goes down: a projection from the band's view to the drawing; a link from a register down to a slot | +| the gutter's right lane, x 962, between the stack and the registers | a carry: up from a word to a register, or down from a register to a word, both in the state column; its legs into the panels are level with the rows | +| the gutter's middle lane, x 956 | a touch, from a row of the disassembly to a word of the stack, within the height the two share (under the registers, so it never meets a link climbing into the band); where a link down to a slot holds the right lane over the same rows, the touch gives way to its echo rather than cross it | | a lens's bottom lane, 8 above its edge | what arrives from below: a link to the pin under its node; a projection to a call node | | a lens's top lane, 4 under its tag | a projection from the view, to the bracket over its node's address | | a panel's pin lane | a link's last leg to a `row` pin, or its stub | @@ -1301,7 +1387,7 @@ projection): Ties that climb from the state column take the left lane and arrive from below; the view's projections keep to the band in the right lane and -arrive from above. A link down to a slot takes the right lane under the +arrive from above; a touch keeps to the context's height in the middle. A link down to a slot takes the right lane under the band and ends above the frame's return address, where a calls projection leaves for the left lane: so the ties of one step cannot cross. A tie may cross a panel's rule; it never crosses a letter, a digit @@ -1310,9 +1396,29 @@ under a node that has just been made there is only room for its own children. The map draws the thread and no other tie: a link or a projection is a step's, and steps are told in the working frame. +**The carry, a knob.** A scene says `carry = .arrow` to draw the value's way +between memory and the registers; it is `off` unless a scene asks. Off by +default because at -O0 nearly every step is a load or a store, and with the +`touch`, the names, the offsets' digits and the strikes the move is already +said: the carry is for a scene whose subject is where values go (the calling +convention, the arguments of a call made, a value read back after a +`syscall`), or a beat that names it. Register to register (`mov rax, rdi`) +nothing is drawn: both rows are in one panel, and the strike says it. A +narrower access (a 4-byte load of a word's high half) draws the same arrow; +the source's read frame covers the bytes read, as the `width` cells of the +operand say. A source or destination out of its window: the window scrolls +first (the stack, a dump), or the arrow ends in a stub on the panel's rule +with a count, as a link's does; a folded register (`quiet`) takes it on its +cell. A second value, `carry = .value`, sends the value's digits along the +arrow on a chip of `raised`, landing as the destination's strike: for the +introduction's one walked load, where the viewer first learns that a +register can hold what memory holds; never in a scene's ordinary steps +([mock 56](mock/56-carry.png)). + **Order.** A tie arrives before the thing it points to reacts: see -[`link` and `project`](#6-verbs). Mock 9 shows the standing ties; 10 and -11 all four; 12 the projection to a call; 21 a loupe's stem. +[`link`, `project` and `touch`](#6-verbs). Mock 9 shows the standing ties; 10 and +11 all four; 12 the projection to a call; 21 a loupe's stem; 44 to 47 the +touch, 48 the touch against an echo alone and against a name in the operand. ## 5. The frame @@ -1429,7 +1535,9 @@ map. about. - **Every tie runs one of those ways.** In the context down or right (the thread, a link to a slot, a loupe's stem, the call lane and the - crossing); into the band up, then left (a link to a pin, a projection). + crossing, a touch: across the gutter, its leg in it going to its word's + height whichever way that is, since the two columns are one level, the + machine); into the band up, then left (a link to a pin, a projection). None runs against them. **What sits together.** Things that act on each other are neighbours, @@ -1439,6 +1547,7 @@ each pair in one place: | --- | --- | | a line and its instructions | the source over the disassembly; the thread between | | an instruction and what it changes | the change in its own row's annotation; the register across the gutter | +| an instruction and the stack word it reads or writes | across the gutter at about one height (layout A puts the disassembly and the stack level); the word's role is the annotation's name, its offset the operand's displacement; a walked step's touch between them | | a pointer and its target | the target's pin; in one panel the `arc`; a `loupe` hung under the pointer | | a call and its callee | the callee's window under the call row ([`descent`](#descent)) | | a system call's arguments and the kernel's side | the arguments under the `syscall` row, the kernel's window under them | @@ -1771,6 +1880,140 @@ caption's and the clock's. band), x2 (896 by 420: sixteen rows), x4 (448 by 210: one chain). It is for reading, and always comes back. +### column (an experiment) + +A second way to compose a scene, beside the working frame, to be tried on one +scene and judged against it (the trial: [`open` followed down in the +column](motion.md#a-scene-in-the-column-open-followed-down); mocks 49 to 55). +It is not the language's default. The working frame shows the whole context +and a caption under it; the column shows, beat by beat, the panes the beat is +about and says what they do beside them, where they do it. It is an author's +instrument: the scene says for every beat which panes stand, where each bubble +sits and what it is tied to; the defaults below only spare typing, and never +decide against what the scene wrote. + +**The frame.** Two columns of 880, the working frame's own: the panes on the +left (x 64), where the program column is in the working frame, so that a scene +going between the two keeps its source and disassembly where they were; the +text on the right (x 976), as an assembler's comment and the row's annotation +sit right of the code they speak of. The gutter between keeps its lanes. + +| Part | Where | | +| --- | --- | --- | +| `shelf` | the panes' column, y 48, 24 high | every pane the beat leaves out, folded to its tag, side by side in the frame's order (the drawing, its view, source, disassembly, registers, stack, backtrace). A tag's note says what the pane holds of the beat (`registers rax 3 rcx r11`, `stack main+45 pushed`), and a value struck in a folded pane is struck on its tag, in the frame its row would be: an `echo` of a row not drawn. Nothing is hidden: everything is on the shelf, and folded is acme's own way to keep a window | +| panes | from 84 to 1032, 12 apart, each its block as specified (880 wide, rows of 24) | the beat's panes in the frame's order, the program over what it acts on: source, disassembly (or a descent), registers, stack; the drawing over them all when a lens is in the beat | +| the floor | 888 to 1032 | under a player's controls when it is paused, as the caption band is. Panes run into it, but only with rows that continue a window (the stack's deeper words, the disassembly's later rows, a register panel's folded rows): a row a beat narrates or a step changes, and rip's, stand above 888 | +| bubbles | the text column, 48 to 888 | below | +| `clock` | under the text column, y 900, its count at 1856 | as [`clock`](#clock-and-caption), 880 long | + +**Which panes stand.** The author's list, per beat, each with its rows or +`rest`. The default, when a beat names none: the pane of its cause (the +disassembly, or the descent; the source over it, three lines round the +current one, when the beat changes line) and the pane where its effect lands +(the registers for a register, the stack for a stack word or a call's push, +the drawing when the idea changes); the cause's pane gets the rows its window +needs (a descent all its windows, the disassembly 11), the effect's the rest. +A beat about the idea shows its drawing as large as the column lets it, or +across both columns with its text above, below or on it (placements, below). + +**Panes between beats.** What persists slides; nothing appears or vanishes in +one frame. In the rest between two beats, in this order: the last bubble +dims; the panes that leave fold (their rows fade, 12 f, then the panel +closes to its tag as the tag travels to its place on the shelf, 24 f, +`glide`); the panes that stay glide to their new boxes (24 f); the panes that +come unfold (the tag travels from the shelf to its box as the panel opens, +24 f, then the rows fade in, 12 f); then an older bubble in the way glides out +of it (24 f) and the next arrives. Never a fold and an unfold in one place at +once: what leaves has left. About 70 f for the panes, 96 f more than a +caption's change in all, and only in a rest (motion.md has the frames). + +**`bubble`.** A piece of narration: one to three lines of at most 40 +characters, Go 40 on 54 as the caption is, code in mono 35; 16 of padding, +812 wide at most. The newest is on `raised` paper, primary: the one being +said. An older one loses its paper and dims to `dim` (18 f, as the next +arrives), and stays as the account the viewer can glance back at. Three stand +at most; a fourth's arrival makes the oldest leave first (12 f, `exit`). +All leave at a chapter's end. + +- **Where it sits**: its first line level with the thing it speaks of (the + row's centre on the line's), so that the eye crosses on one line. The + author may name another level; the default is the row of the beat's first + step. Where the newest needs a place an older one holds, the older one + glides out of its way (24 f, before the newest arrives): above it, or below + where there is no room above. An older bubble rides with its row while the + row moves (a window closing round its call row) and stays where it was once + the row has gone. +- **What the position says.** Level with its row, a bubble is where the story + is: down the column as a call goes down, the kernel's lowest; back up as it + returns, the account then lying below it; a loop's turns at one height, + each turn's bubble pushing the last up, stacked as bars are. +- **Its stem**: a 2-unit line in `dim` from the bubble's first line across + the gutter onto the pane's right rule level with the row, a head 7 by 8 on + the rule (the row's own end is the pane's minimap). It draws as the bubble + arrives (12 f) and back as the step fires (12 f): the bubble points while it + is read, and the step's own ties have the gutter while it plays. A bubble + about a folded pane points at its tag on the shelf. The author may give a + bubble no stem; its level is then the tie. +- **The caption's rules, restated**: it arrives (18 f, rising 8) in a rest, + 60 f before the step it describes fires (120 f for a scene's first); it is + the newest at least 90 f + 3.6 f a character and at most 720 f; nothing + arrives, moves or dims under a moving thing; it names only what is on + screen at the pace it plays. + +**Placements.** Where a beat's text is, chosen per beat (or per scene): + +| Placement | Where | For | +| --- | --- | --- | +| `beside` | the text column; the panes in one column | a subject made of rows, or tall: the disassembly, a descent, the stack, the source and its instructions. The experiment's main form | +| `below` | the caption band under the working frame (the present frame, every pane as it is) | a beat that needs the program and the state side by side: the scene's opening, which establishes everything; a `continue`; a step whose effects land in both columns at once | +| `above` | a band of 120 over a wide subject at the stage's top, the subject under it | a wide drawing whose story runs down it (a calls tree growing, a graph in `layers`): the text leads the eye in at the top | +| `on` | in the subject's own free space | a wide drawing with room inside it (a ring's interior, the corners round the rings, the gaps of the map's columns); tied by a stem to the part it speaks of | + +The choice follows the subject's shape (rows: `beside`; wide: `above`, `below` +or `on`), where its free space is, and the way the story moves (text leads: +above when it runs down, below when the result arrives at the foot). A bubble +`on` a drawing keeps 16 clear of every element, every edge's path and every +path a mark will travel while it stands (the renderer knows the beat's +steps); its stem crosses nothing, going round the drawing's outside where it +must (mock 55); where no such place holds it, the beat is `above`. A bubble +never travels between placements: the last leaves (12 f), the frame changes +(a [`relayout`](#6-verbs), 48 f), the next arrives (18 f). A scene that +otherwise uses the column may stand the working frame as it is, both columns +of panes, with its text below or above, for the beats that need both; the +change is that relayout, between beats. + +**Ties and paces in the column.** The step's ties are the frame's: the +thread, a link, a projection, a touch. A touch from the disassembly to the +stack under it leaves the row's right rule, goes down the gutter's middle lane +and ends on the stack's right rule, its head pointing left (mock 49). At a +run the panes keep their places and only the newest bubble stands; at a +sprint the scene surfaces to the map as ever, and a bubble set `on` the map +is the sprint's caption. + +**Reaching the whole context.** "We don't want to hide info" holds by three +means: the shelf (every pane's tag, and each change in it struck there); a +beat the author spends on the whole (`below`, the working frame), which the +scene's opening is by default; and the map and `unroll`, as in the working +frame. + +**What it costs and gains**, measured on the trial (the working frame's +`beside` against the column at the same instant, mock 54): + +| | The working frame | The column | +| --- | --- | --- | +| the descent at the crossing | 17 rows (main 3, the stub 1, open 8, the kernel 2, heads 3) | 24 (main 5, open 13), and up to 27 with its floor above 888 | +| source | 8 lines | 3 (the line and its neighbours) | +| registers, stack, the log, its bytes | on screen, 14 rows, 11 words, 152, 152 | on the shelf, a tag each; rax 3 struck on its tag | +| narration | 2 lines of 64 under the stage, 1792 by 120 | up to three bubbles of three lines of 40 beside the rows, 880 by 840 | +| height for panes | 840 (48 to 888), shared by both columns' seven panes | 948 (84 to 1032), shared by the beat's two or three; 144 of it the floor | + +The caption band is not gained as narrated rows: it is under a paused +player's controls in either form, and the column keeps narrated rows above +888. What is gained is the right column (the state panes' 880 by 840) given +to the narration and the left one given to fewer panes: a descent half again +as tall, a stack of nineteen words beside a call, and text that says where it +speaks. + ## 6. Verbs Frames at 60 a second. `s` is the frame a strike lands. Curves: @@ -1787,16 +2030,19 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | `extend` | a chain whose first hop was struck | each later hop is followed again, 4 f apart, fading in over 6 f | | `link` | a `reg` just struck, and its target | s+6: the old pin fades (12 f) and the line draws from the register's row, head first, 24 f (36 f over 400 units), `standard`, the pin riding its head; the pin lands with the head and settles (12 f); held; at the advance the line draws back into the pin over 18 f. A target out of the window: the line ends in its stub, and the pin waits for the window | | `project` | a run read or struck, and its part of the drawing | on the run's mark: the bracket on the row (6 f), the line draws from the bytes to the drawing (18 f; 30 f over 600 units; `standard`); only when it arrives does the part react (its own `read`, or `arm` and `strike`; a new call's node fades in, 6 f); out with the advance, 18 f | -| `travel` | a value, a card or a pin going from one place to another | `glide`. A value or card: 30 f to 200 units, 36 f to 400, 48 f beyond. A pin goes along its lane, 18 f after the strike that moved it: in a drawing 30 f to the next node or cell, 36 f to one farther; in the stack's lane 24 f to the next row and 2 f a further row, 36 f at most. A pin that comes fades in over 12 f rising 8 units; one that goes fades out over 12 f; a name joining or leaving a pin cross-fades over 12 f. On a `link` the pin rides the line's head instead. 8 f at a run; at a sprint only at a phrase's end | +| `touch` | the current row and the stack word it reads or writes (`tied`) | right after the fire, before anything the word causes: the line draws from the row's end across the gutter to the word's row, head first, 12 f (18 f when its leg is longer than six rows), `standard`; only when the head has landed is the word armed (a write: 12 f, then struck) or framed (a read, 6 f); only after that does what follows from the word move (a register it fills, rsp's pin climbing onto a pushed word, a span, a role). Held to the advance; drawn back into the row with it, 12 f, or (with `carry` on, for a load) as the carry leaves the word. A store of the value the word already held: the head lands, the arm's frame comes and goes and nothing is struck. A word the window must scroll to: the scroll first, then the touch. At a run and a sprint none: the names stand, and the marks are the run's | +| `carry` | a value's way from its source to its destination (`carry = .arrow`) | the source framed `read` first (a register 6 f; a word by its touch); then the arrow draws from it to the destination, head first, 18 f (24 f past eight rows), `standard`; on its landing the destination is armed (12 f) and struck; the arrow draws back as the strike lands (18 f); only then what follows (a link from the register filled, a pin's travel). At a run and a sprint none | +| `follow` | the stack's window, after rsp's pin | only once the pin has landed and never with it: where the headroom over rsp is under two free words, or the newest frame's return address under the window's foot, the rows glide by whole slots, 24 f and 2 f a further slot, 36 f at most, `glide`, the pins riding their rows, the strip's window with them. A climb longer than the room over the pin is one move: the pin travels to the window's top, and the rows take the rest of the distance under it on the same curve. Farther than the window: `unroll`, the pin along the column, `roll` | +| `travel` | a value, a card or a pin going from one place to another | `glide`. A value or card: 30 f to 200 units, 36 f to 400, 48 f beyond. A pin goes along its lane, 18 f after the strike that moved it: in a drawing 30 f to the next node or cell, 36 f to one farther; in the stack's lane 24 f to the next row and 2 f a further row, 36 f at most. A pin that comes fades in over 12 f rising 8 units; one that goes fades out over 12 f; a name joining or leaving a pin cross-fades over 12 f. On a `link` the pin rides the line's head instead. 8 f at a run; at a sprint only at a phrase's end. **rsp's and rbp's pins** are the stack's event and are given time: 24 f to the next row and 6 f a further row, 48 f at most, `glide`; the amount on the pin from its first frame, counting as it crosses each row (`rsp -8`, `-10`, `-18`, in write's vermilion, bold), held to the advance and then crossfading to the bare name (12 f); each row it reaches gained (brightening from `free`, 12 f, from the frame the pin's head reaches it, its role fading in with it) or released (to `free`, 12 f); the bracket over the rows crossed drawing with it; the newest span's end riding it; the register struck as the pin lands, and the row's amount with it. rbp's flight to rsp's row: the same, the names meeting in pwndbg's order (rsp slides aside, 12 f, before rbp lands). At a run: 8 f and 2 f a row, 16 f at most, drawn over the veil (the pins, the bracket, the span and the rows' gain or release stand clear of it; the rest of the stack stays veiled), no amount; at a sprint, on the map, rsp is the edge of the stack column's newest frame, moving with each moment (4 f), the spans growing and shrinking with it | | `open` | a loupe, from a pointer | the pointer's hop framed `read` (6 f); the stem draws from it to the loupe's place, head first, 18 f (30 f over 600 units), `standard`; the loupe rises with the stem's head: it fades in over 12 f from 8 units lower, its shadow growing from nothing to its offset (18 f, `standard`); the target's bright frame lands 6 f after. From a pointer inside a loupe the same, over it, and a third closes the first as it starts. In the slot of the level that read the pointer, or on a beat the caption names | | `close` | a loupe | the deepest first: its stem draws back into its pointer (12 f) and the loupe sinks, fading out over 12 f as it falls 8 units and its shadow shrinks; with the advance of the step it opened in. A loupe the narration keeps across steps closes at each advance and opens again in the idea's slot of the next step that concerns it (36 f, as `open`): the steps between are not drawn under it. Open 120 f without a change is the most | | `dive` | from the map to the working frame | one continuous move in which the windows become the panels and each pane's column of the map becomes its minimap. 0 to 6: the windows' outlines go bright. 6 to 24: the rest of the map takes the veil (50%). 24 to 96, `glide`: each window goes from its place on the map to its panel's place, its scale on a logarithm from the map's (half, filling the frame) to the frame's (whole), so its rows grow from 10 units to 20 under the eye, the panels 6 f apart in the frame's reading order (drawing, view, source, registers, disassembly, stack), each drawn over those before; on the same move the rest of each window's column (the map's panel it is a window on) squeezes into its pane's strip: from its place at half size to the strip's rect, its width and its height each on its logarithm (to 36 of 880, and 4 of 24 a row), so the text thins to strokes as it lands, the window's outline riding on it to become the strip's window; the map's parts no pane takes (the backtrace, the key, the memory round pointers, a loupe's panel) fade where they are, 24 to 72. On the same move the registers' window (the panel whole on the map, every chain) folds as it lands: each quiet register's row glides into its cell, three to a row, its chain past the first hop fading over the move's first 24 f, so that the panel arrives at its height in the frame. 72 to 96: the drawing, whose sizes may differ between the two, crossfades from the map's to the frame's within its box. 84 to 96: each squeezed column crossfades into its strip's strokes; the frame's tags, rules and lanes fade in; the veil goes with the last of the map. 96 to 132: still (mock 20) | | `surface` | from the working frame to the map | the dive backwards, a little quicker: 0 to 12 the tags, rules and lanes fade out and each strip's strokes become its column's text; 12 to 84, `glide`, each pane shrinks into its window on the map as its strip unfolds into the column round it, the map's other parts fading in where they are; 84 to 96 the veil lifts; then the map is still 36 f before anything plays on it | | `flash` | a pane's minimap, at a mark its window does not show | a ring 8 across in the mark's colour, on the mark's row in the strip, draws out to 14 and is gone, 12 f, with the mark's own strike or read | | `unroll` | a pane, to its whole column, for a beat, without leaving the frame ("the whole function", "the whole stack") | the strip's column grows out of the strip over the pane and the panes under it (veiled, 18 f), to the stage's height or the column's, a row of the map's 4 units scaling up on the logarithm to as many as fit (sort's 79 rows of text in 840: 10 a row, shapes and inks; a 22-line file at 24, readable), `glide`, 36 f; the window's outline rides from the strip to its place in the column; the pane's own rows are that window, so nothing appears or vanishes: they are the column's rows round the outline. Held while the caption needs it (60 f at least). `roll` is the reverse, 36 f: the column shrinks back into the strip, the outline lands as the strip's window, the panes under it unveil. A far jump in the same column is `unroll`, the window travelling to its new place along the column (24 f, `glide`), and `roll` | -| `descend` | a call the narration follows down | 0 to 12 fire on the call row; rsp struck (24); the stack slides and the return address is struck (30 to 60), as for any call; then the caller's window closes round its call row, in two moves and never both at once: 66 to 78 the rows it gives up fade (those after its return row, and from its top as many as the callee needs), then 78 to 96 the rows it keeps glide up to their places (`glide`), where they move at all; 84 to 96 the call row's plaque becomes the ring; 96 to 114 the call lane draws down from the ring, head first, `standard`; 108 to 120 the callee's head fades in rising 8 as the lane reaches it; 114 to 138 its rows, top down, 2 f apart, 12 f each; 138 to 150 the advance: the plaque lands on the callee's first row, and the source line goes `waiting` (6 f) where the callee has none. Through a stub's `jmp`: the stub's other rows fade (12 f), then its `jmp` row, `pass`, glides to its place (18 f, `glide`), the lane runs on to the next head (18 f), the next window comes in the same way. A label that changes with it (the stack span's name, the source's tag) crossfades, 12 f | +| `descend` | a call the narration follows down | 0 to 12 fire on the call row; then the call's push, as for any call ([stack's own instructions](motion.md#the-stacks-own-instructions)): the touch to the free word over rsp (18 to 30), the return address armed and struck (30 to 42), rsp's pin climbing onto it and rsp struck as it lands (48 to 72), the window following (78 to 102); then the caller's window closes round its call row, in two moves and never both at once: 108 to 120 the rows it gives up fade (those after its return row, and from its top as many as the callee needs), then 120 to 138 the rows it keeps glide up to their places (`glide`), where they move at all; 126 to 138 the call row's plaque becomes the ring; 138 to 156 the call lane draws down from the ring, head first, `standard`; 150 to 162 the callee's head fades in rising 8 as the lane reaches it; 156 to 180 its rows, top down, 2 f apart, 12 f each; 180 to 192 the advance: the plaque lands on the callee's first row, and the source line goes `waiting` (6 f) where the callee has none. Through a stub's `jmp`: the stub's other rows fade (12 f), then its `jmp` row, `pass`, glides to its place (18 f, `glide`), the lane runs on to the next head (18 f), the next window comes in the same way. A label that changes with it (the stack span's name, the source's tag) crossfades, 12 f | | `cross` | a `syscall` row, in a descent | 0 to 12 fire; 18 to 36 the registers that carry the call framed as read, 6 f apart, the argument rows under the row with them (`echo`); 48 to 72 the crossing lane draws down, 3 units, vellum; 66 to 78 the kernel's window opens as it lands, the vellum filling down from the lane's head; 78 to 90 its head and the call fade in, 6 f apart; the work (bytes given or filled, motion.md's chart); `returns` struck; then the answer climbs the lane (24 f) and rax is struck as it lands, the clobbered registers 6 f apart after it, the log's new row fading in (secondary); hold 36; the advance: the kernel's window draws back up into the lane (12 f) and the lane into the plaque (12 f) as the plaque moves on | -| `ascend` | a `ret` out of a descent's window | 0 to 12 fire; 18 to 24 the return address framed as read on the stack; rsp struck (36); 48 to 72 the window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; 72 to 84 the lane draws back up into the ring; the caller's window opens in the reverse order of its closing: 84 to 102 the rows it kept glide back down (`glide`), then 102 to 114 the rows it gave up fade in; 114 to 126 the ring becomes a trail bar, the call row's annotation takes the result (6 f), and the plaque lands on the row after the call; the source line from `waiting` to `current` | +| `ascend` | a `ret` out of a descent's window | 0 to 12 fire; 18 to 30 the touch (read) to the return address, framed 30 to 36; 42 to 66 rsp's pin falls past it, the word released, the callee's span shrinking away, rsp struck as the pin lands (66); 72 to 96 the stack's window follows; then 96 to 120 the descent's window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; 120 to 132 the lane draws back up into the ring; the caller's window opens in the reverse order of its closing: 132 to 150 the rows it kept glide back down (`glide`), then 150 to 162 the rows it gave up fade in; 162 to 174 the ring becomes a trail bar, the call row's annotation takes the result (6 f), and the plaque lands on the row after the call; the source line from `waiting` to `current` | | `leave` | a block of a graph, along an edge | 0 to 12 fire on its last row (in the disassembly under the source; in the lens its pill's gold frame pulses with it); a conditional's compare row has its chips framed as read (18 to 24): the cause; 24 to 42 the edge it takes draws gold (3 units) from the source pill's frame to the target's, head first, `standard`; then the mark travels it: the gold plaque (22, its point the way it goes) leaves the pill along the edge, round an arc of the ring or along a way out, `glide`, 12 f and 2 f a 100 units, 12 f at least and 42 f at most (sort's steps round a ring, 58 to 72 units, 12 f; its inner loop's way out, 318, 18 f), the pill cooling to the trail as it goes; it lands on the target (the advance) and 6 f after, the target's count is armed and struck; with the landing the oldest of the three trail edges cools to `dim` (18 f). The first time an edge or a block is reached it is also a `reach`. At a walk, 1.5 s | | `turn` | a loop's back edge | `leave` round the ring's foot from the latch up into the header at 9 o'clock: an arc, the mark at its speed (sort's inner, 58 units, and outer, 50, 12 f each); the count at the ring's centre is armed as the mark leaves the latch and struck as it lands. The mark going round the ring, step by step and then this, is the picture of iteration; at a run the whole loop goes round in one sweep of 8 f a step | | `reach` | a block or an edge of a graph the run reaches for the first time | the edge draws gold under the mark, from `rule` (the `leave`'s own draw); as the mark lands, the pill fills from the page to `raised` (12 f), its offset brightening from faint to primary, and `×1` fades in (6 f) and is struck. Its counts begin here, never before | @@ -1810,7 +2056,7 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | `align` | the stacked program column to `aligned`, and back (`stack`); one form of `aligned` to the other | the band and the state column fade out (12 f); the panel widens to both columns (24 f, `glide`); the source's lines glide to their heads and the instructions glide in under them (36 f, rows making room), each instruction from its row in the disassembly to its row under its line; the heads' paper and rules fade in last (12 f). `stack` is the reverse. `interleaved` to `columns`: the addresses and instructions glide right into the instruction column (24 f, `glide`), then every row glides to its height in the new form, each line level with its run's first row (24 f, `glide`); the rules move with their groups; the lines with no code fade into the room made for them (12 f). Back, the same in reverse, the no-code lines first | | `arc` | a pointer to a row of its panel | written: with the arm (s−12) the old arc goes dashed; from s+6 it fades (12 f) while the new one draws from the pointer's row along its lane to the target, head first, 12 f, `standard`, at full ink; with the cool at the advance it quiets to standing (24 f). Read: to full ink with the read (6 f), back with the advance. Overwritten with a target off the panel or NULL: it fades from s+6 (12 f). A lane change glides 12 f. Scrolled: it rides its rows, fading as its target leaves. At a run 8 f, at a sprint none | | `advance` | the current marks | last. The thread, the plaques and rip move together: 12 f to an adjacent row, 24 f up to eight rows, `standard`; farther, out and in over 6 f. A taken jump's line draws in the jump lane with it | -| `cascade` | a step | `fire` (12); then its effects a level at a time, 18 f apart: CPU (`reg`s, the pc's annotation), memory (`slot`s, `bytes`), the idea (the drawing, by `project`); each armed, then struck; hold 36 f after the last strike and 12 f a further value, 84 at most; `advance`; rest 24 f. A level with nothing on screen to change gives up its slot | +| `cascade` | a step | `fire` (12); then its effects a level at a time, 18 f apart: CPU (`reg`s, the pc's annotation), memory (`slot`s, `bytes`; under `tied` the touch first), the idea (the drawing, by `project`); each armed, then struck; hold 36 f after the last strike and 12 f a further value, 84 at most; `advance`; rest 24 f. A level with nothing on screen to change gives up its slot. A read is a cause, not an effect, and goes before what it fills: a load's word is reached and framed in the first slot (18), the register it fills struck in the next (36). Under `tied` the order is the instruction's own, cause to effect, and nothing downstream is armed or marked while what is upstream of it has not shown: the row fires; the touch leaves it; the word reacts on its landing; then what follows from the word (a register filled, rsp's pin onto a pushed word, the span, a role); then the window follows. A step that moves rsp or rbp and touches no word (`sub rsp`, `mov rbp, rsp`) has the pin's travel as its effect, the register struck as the pin lands | | `continue` | a stop far from the last: a breakpoint, not a step. Where the windows' new places are farther than their own heights (another function, another file), it is told on the map: `surface`, the jump there, `dive` | `fire` on the line it leaves from; then the levels as in a `cascade`, but CPU is a wave: every register that changed is struck 2 f after the one above it, in pwndbg's order, the fill in over 6 f, no arm and no pulse (a dozen pulses at once are a flash, and a dozen arms a crowd); memory: the stack's window scrolls or fades to its new place, and the [backtrace](#backtrace)'s frames leave, slide and arrive; the idea; hold 36 f after the last strike; `advance`, the source and disassembly fading through if far; rest. Its marks are only on what was on screen to change | | `run` | steps that need not be read | over a graph, the mark goes from block to block in 8 f, round the rings, each edge taken flashes to gold and cools in 8 f, counts change in place; at a sprint (on the map) the gold moves only when the block changes, 4 f at most each, the trail's three edges following and the loops' counts ticking at their centres, and the picture settles at the phrase's end. Elsewhere: 18 f a step; no fire, arm or pulse; the mark, cards, nodes and pins ease in 8 f; no strikes, no held corners and no arcs drawing: a value changes in place under an 8 f crossfade, unmarked, and what the run changed is shown settled when it ends (its arcs fade in, 8 f, standing; no corners); no ties but the thread. A caption never names what a run veils. Registers, stack and disassembly are veiled from the first shortened step to the last; the source, the band and the clock are not. 24 steps at most. A run longer than a phrase may `surface` and play on the map | | `sprint` | steps to be got through | 4 f a step. The drawing grows and the clock sweeps; the source and the band's view are veiled as well; the mark and the pins move only at a phrase's end. Each change of pace ramps at 0.6 of the step before. A sprint plays on the map: `surface` before it, `dive` after it, at the stop it reaches; the windows glide with the pc, the marks flash and fade | @@ -1827,9 +2073,10 @@ value written is struck; a window going far fades through. The instruments' POP finds any one-frame change after stillness. A step is as long as its content: 0.8 s when only the line moves, 1.5 s -for one register, 2.0 s for a register and memory, 3.0 s for a call and 3.1 s -for a return across three levels, 2.7 s for a swap; 2.9 s to follow a -call down, 3.6 s for a crossing (4.9 s when it moves bytes), 2.5 s back up. +for one register, 2.0 s for a register and memory, 3.7 s for a call and 3.6 s +for a return across three levels, 2.7 s for a swap; 3.6 s to follow a +call down (its push walked in cause order), 3.6 s for a crossing (4.9 s when +it moves bytes), 3.3 s back up. ## Composition @@ -1914,8 +2161,10 @@ from `sort-clang.dis` (sort as the scene builds it, clang -O0), `mock/heap.py` draws the heap scene's storyboard (18) from a recording of `mock/heap.c`; `mock/intro.py` draws the introduction and its blocks (29 to 37) from the same list recording and its mappings; -`mock/gen.py` draws 1 to 8. Each working frame -has a `-480.png` beside it; the map has its 1080p (`19-map-1080.png`). +`mock/gen.py` draws 1 to 8; `mock/touch.py` draws the disassembly tied to the +stack (44 to 48) and the carry (56) from a fresh recording of `reverse` and its call; `mock/column.py` +the column experiment (49 to 55) from a fresh recording of `hello`. Each working +frame has a `-480.png` beside it; the map has its 1080p (`19-map-1080.png`). ```sh cd design/mock @@ -1935,6 +2184,8 @@ python3 -B map.py && for n in 09-context 10-context-step 11-context-lens 21-loup resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done # 20-dive.png it composes itself resvg -w 1920 19-map.svg 19-map-1080.png python3 -B gen.py # 1 to 8, then resvg the same way +python3 -B touch.py # 44 to 48 and 56 (it runs resvg and composes its sheets itself) +python3 -B column.py # 49 to 55 (the same) ``` | Mock | Is | Blocks it shows | @@ -1942,6 +2193,19 @@ python3 -B gen.py # 1 to 8, then resvg the same way | [40](mock/40-frame-beside.png) | 9 in the reworked frame: `beside`, at rest | the registers `quiet`: rax rcx rdi rbp rsp as rows with their chains, the eleven others three to a row under a rule, rip last; fifteen stack slots and the three frames they belong to; the source's eight lines over seventeen instructions; each pane's minimap | | [41](mock/41-frame-subject.png) | 11 in the reworked frame: `subject`, mid-step | the band as before (296, a view of seven); eight lines over eleven instructions; ten rows of registers, rdi struck and its link climbing the gutter from its new row; thirteen stack slots | | [42](mock/42-frame-layouts.png) | the frame three ways, at a third of their size: A (recommended), B, C, each as 41's moment and as 25's | A folds the quiet registers; B keeps all seventeen and gives the source's rows to the disassembly (the stack stays six); C sets the registers in two columns (chains cut to a hop); under each tile its rows | +| [44](mock/44-tied-store.png) | `next = cur->next` stored (`mov [rbp - 0x18], rax`, the loop's second turn), mid-step, in layout A as `subject`: `whole` over `tied` | `whole`: each row's chain from its address, the store's own cut to `7fffffffecc8 → …` beside the minimap, so its strike is off the row; offsets from rsp. `tied`: `cur → 405030`, `405038 → 405010` (the heap word the view holds), `next → 405010` struck with the stack's word; offsets from rbp, `-18` the operand's `0x18`; the `touch` from the row up the gutter's middle lane to `next`'s word | +| [45](mock/45-tied-load.png) | the next step, `mov rcx, [rbp - 8]`: `prev` read into rcx | `prev` framed `read` with its word (echo) and the touch in read's colour; rcx struck and its link climbing to its pin under 9's node (the touch, the link and the thread: the three lines) | +| [46](mock/46-tied-call.png) | `call reverse`, five instants of the step, numbered in their order | 1 the fire alone, the row saying `reverse() · rsp -8`, two free words over rsp; 2 the touch to the free word rsp − 8, nothing else moved; 3 the word armed and struck, `main+50`, rsp not moved; 4 rsp's pin climbing onto it (its path a few frames apart), `-8` on it, the bracket, reverse's span arriving, rsp struck as it lands; 5 the window following by a row | +| [47](mock/47-tied-prologue.png) | reverse's prologue, six instants numbered in their order | `push rbp`: 1 the touch to the free word, 2 the word written (rbp's own value: the arm's frame, no strike), 3 rsp's pin onto it, `saved rbp` arriving; `mov rbp, rsp`: 4 rbp's pin flown from main's saved rbp to rsp's row, the two meeting, the base to rbp; `sub rsp, 0x18`: 5 the climb at its first row, `-8`, 6 landed at `-18`, three words gained, the rows slid under the pin for the last of it | +| [48](mock/48-tied-ways.png) | the sheet: three ways to say the row and its word are one thing, on 44's instant | A, names and the echo alone, pwndbg's offsets; B (recommended, `tied`), names, offsets from the frame's base and the touch; C, the name in the operand as IDA writes it, the row saying only what moved | +| [56](mock/56-carry.png) | `carry = .arrow` with `tied`, six instants numbered in their order: the load `mov rcx, [rbp - 8]`, then the store `mov [rbp - 0x18], rax` | the load: 1 the touch and `prev` read, rcx untouched; 2 the touch withdrawn as the carry climbs the gutter's right lane to rcx, its open chevron landing, rcx armed; 3 rcx struck, the carry gone, rcx's link to its pin. The store: 4 rax framed read, memory unmoved; 5 the carry down to `next`'s word, armed on its landing; 6 struck | +| [49](mock/49-column-call.png) | the column: `open`'s call (`hello`, moments 37 to 38), mid-step | the `shelf` (the log, its bytes, the registers with rsp struck on their tag); source 3, main's window, a stack of nineteen words; the touch down the gutter onto the stack's right rule; the newest bubble on its paper, level with the call row, the older one dimmed above it | +| [50](mock/50-column-stub.png) | the stub's `jmp` (38), the rest before its step | the descent in the column with the stack kept under it, the return address held on its top; the bubble's stem across the gutter to the jmp row | +| [51](mock/51-column-args.png) | libc's `open`, its last three walked (61 to 64), mid-step of `mov eax, 0x101` | the registers unfolded under the descent, rip's row above 888; the bubble level with the first of the three | +| [52](mock/52-column-cross.png) | the crossing (64 to 65), mid-step | the descent 24 rows, the kernel's window at its floor; rax 3 struck on the registers' tag; the newest bubble at the kernel's height, the lowest | +| [53](mock/53-column-back.png) | back up and stored (74 to 76) | main's window whole, the call ran with its result; `f ◂ 3` struck and its touch; the newest bubble climbed back to the call row, the crossing's below it | +| [54](mock/54-column-present.png) | the crossing in the present frame (`beside`) over the column | what each shows of one instant: 17 rows of descent against 24, the state panes against their tags, the caption against the bubbles | +| [55](mock/55-column-graph.png) | a wide subject: sort's rings (25's stop) across the stage, twice their size, the program and state on the shelf | a bubble `on` the drawing, in the free corner over the outer ring, its stem round the drawing's top onto `+56` | | [9](mock/09-context.png) | `beside`, at rest, in the frame before this round's rework (40 is it reworked): `targets/list` stopped at the load in `reverse` (`mock/list-dbg.txt`, moment 2) | every panel; the band as two panels; `address` with `lead`; `chain` cut by `more`; `reg`, rip with flags; `slot` with offsets and roles, `pin` row; `call` spans; `insn` current, ahead, outside under a rule and its name; `line`; `bytes` by fields with number, pointer, loose; an `arc` standing in the view; `nodes` with pins under, two names on one; `thread`; marks current, held; each pane's minimap (source, disassembly, stack, the view), its window, the current row; the registers and the drawing without | | [10](mock/10-context-step.png) | the same, mid-step: the load done (moment 3) | `struck` on rdi; `read` on the annotation, the run and the node's half (`echo`); `link` ending in rdi's pin; `projection`; the read pointer's `arc` at full ink; the minimaps: the pc gold and the read cyan on the disassembly's, the read row on the view's; the annotation at 540, whole | | [11](mock/11-context-lens.png) | `subject`, mid-step, in the frame before the rework (41 is it reworked) | the band at 296 and 200, the drawing a size up, a dump of seven, nine instructions, six slots; the minimaps at the subject's window sizes, the disassembly's and the stack's scrolled round their windows | @@ -2020,7 +2284,16 @@ the band. of `segments` at their own sizes (the sheet has them as frames); `align` between `interleaved` and `columns`; `columns` with a pc in a long run, away from its line's row. -- A local's name as a slot's role (the recording has none at these pcs). +- A local's name as a slot's role in the working frame's -O2 recording (none at those pcs; 44 to 53 have them). +- Under `tied`: `pop`, `ret`, `leave`, `enter` and `add rsp` (motion.md's charts only); a touch to a word the + window scrolls to first; the leaf's window over its red zone; a touch giving way to its echo in a step that + draws a link and a projection; `= &buf`; the offsets' base going back to rsp at `pop rbp`; the pins' travel at + a run over the veil and at a sprint on the map; a climb longer than the window (`unroll`); the follow's + one move under a climbing pin (47's sixth instant shows where it ends, not the move); a carry to a folded + register or off a window (a stub); `carry = .value`. +- The column: a fold and an unfold between beats (charts only); a beat `above`; a loop's bubbles stacking; + the scene's opening `below` and its relayout into the column; the column at a run; the floor holding a + window's continuation under a narrated pane (49 and 53 have the stack's there). - `pin` with a count; `rwx`. - Every verb: the mocks are stills. `establish`, `link` and `project` have no chart from a render yet. @@ -2198,6 +2471,63 @@ is not checked here. The tokens are under [Token changes](#token-changes). window resizing with its pane in a `relayout`; every strip change 6 f after the primary onset it follows. +14. **The disassembly tied to the stack** ([`insn`](#insn), [`slot`](#slot), + [`touch`](#4-ties)), the scene's knob `annotation` (`.tied`, the default; + `.whole`, today's rows), settable per beat. Under `tied`: an access's + annotation as the touched word's name (its slot's role, a global's + symbol) and its value, one hop, the name bold in its region's ink; a + register-setter cut after its first value; the fallbacks of the + annotation's table (an unnamed slot by its address, a word a dump holds + by its address, a word no pane holds whole); a direct call as + `reverse()`; `= &buf` for a `lea` of a named word; pushes and pops named + by the word's role. The stack's offset column from the frame's base, the + CFA's register at the newest frame's pc (rbp in a body; rsp at entry, in + a prologue before `mov rbp, rsp`, after `pop rbp` or `leave`, in a + function without a frame pointer), crossfading (12 f) when the base + changes, the tag saying which; the window over a leaf's red-zone locals. + The `touch`: 2 units in the mark's colour, out of the disassembly's + right rule at the row, the gutter's middle lane (x 956), onto the stack's + rule at the word; drawn in memory's slot before the word reacts (12 f, + 18 past six rows), back with the advance; the first line to give way to + its echo. A load's read before the register it fills. A store of an + unchanged value: the arm's frame without a strike. The order of every + step cause to effect (the row, its touch, the word, then what follows + from it), nothing downstream armed early. **The stack pointers' moves** + ([stack](#stack), [`travel`](#6-verbs), [`follow`](#6-verbs)): the + window's headroom of two `free` words over rsp; the rows holding while + rsp's or rbp's pin travels (24 f, 6 f a further row, 48 at most), its + amount counting on it, the rows it crosses gained or released, the + vermilion bracket over them, the span riding it, the register struck as + it lands; the window following only after, or under the pin in one move + for a climb longer than the room, or by `unroll` past the window; the + instruction's own annotation saying the move (`rsp -0x18 3 words`, + `rbp = rsp`, `rsp +8 · saved rbp`); at a run the pins over the veil. + +16. **The carry** ([`carry`](#4-ties)), a scene's knob `carry` (`.off`, + the default; `.arrow`; `.value` for the introduction's one walked load): + 2 units in primary, an open chevron, the gutter's right lane, from the + source's read to the destination's strike; with `tied`, a load's touch + withdrawing as its carry leaves the word, a store drawing its carry and + no touch; nothing for a move between registers; a stub to a folded or + off-window end. + +15. **The column, an experiment** ([column](#column-an-experiment); the trial's + storyboard in [motion.md](motion.md#a-scene-in-the-column-open-followed-down)), + built for the trial scene beside its present form, not in place of it: + the stage as two columns of 880 (panes at 64, text at 976); the `shelf` + of folded tags at y 48 with each tag's note and its strikes; the beat's + panes from 84, narrated rows and rip above 888; the clock under the text + column; the `bubble` (Go 40 on 54, three lines of 40 at most, the newest + on raised paper, older ones dim, three at most) placed level with what it + speaks of, older ones gliding out of its way and riding with their rows; + its stem in the rest only; the placements `beside`, `below`, `above` and + `on`, a relayout between them; the fold and unfold of panes between beats + in the order the section gives; the touch in the column down the gutter + onto the stack's right rule. And a scene API in which the author says, per + beat, the panes (with rows or `rest`), the bubble's text, its placement, + its level and its stem, every one optional and defaulted as the section + says (motion.md has a beat written that way). + **What the recordings must hold**, with the tracer's options: - For the map, as before: `--stack 1024`, `--disasm 69`, `--around 256`; @@ -2221,6 +2551,15 @@ is not checked here. The tokens are under [Token changes](#token-changes). - `ztrace record --by insn --from main` began in the loader with the ReleaseFast build used here (`hello`, 120 moments, all in `ld.so`): `--from` did not take; `dbg` with a breakpoint was used instead. +- **For `tied`**: the touches of the stack's own instructions, which the recording leaves out today + (`push`, `pop`, `call`, `ret`, `leave`, `enter`: the word, its size, read or write; the explicit operands' + touches are there, `ztrace dump`'s `touch` events); data symbols by name (`head` at 404018), for a + global's annotation; the roles at every pc of a prologue and an epilogue (today a local is found only + where the frame base is the CFA's register, so `prev` and `cur` come after `mov rbp, rsp`: right, but the + saved rbp's role must be there from the `push`); a local's own offset and size where two share a word + (`f, low half` and the return-value slot beside it); the canary's copy named as the place it is + (`the stack's canary`, from the `fs:[0x28]` load that stored it). `ztrace show` prints none of the roles; + `telescope.slots` has them. - For the heap scene: see [the scene](motion.md#a-scene-libcs-heap-from-the-inside). - For a pair (the ASan scene): see [the scene](motion.md#a-scene-asan-against-a-plain-build). - For the introduction: the mappings with their permissions and their @@ -2274,16 +2613,23 @@ and `metric.bytes` and `metric.slot`'s new columns are in, as asked. | `metric.insn.wide` | none | 12 a digit past seven, per window: libc's mnemonic at 240, its annotation at 624 | | `metric.descent` | none | callers' windows 3 rows; a head a row (rule 2, name at 40 in Go Medium 18, what it is ranged right in Go 18); the call lane at x 14, 2 in primary, head 7 by 8 into the name; into the kernel 3 in vellum, its head in ink; three windows of code, then a fold row; the kernel's window a head and two rows | | `metric.node.two_rows`, `metric.bin` | none | rows 110 apart, nodes 136 wide; the bin box 160 by 44 at the row's left, its count on a 30 square on the shoulder; a free node's outline dashed 12 on 8 | -| `time.descend` | none | `close` 0.20 then 0.30 (`glide`), `ring` 0.20, `lane` 0.30, `head` 0.20, `rows` 0.20 a row 0.03 apart, from 1.10 after the fire, the given-up rows fading before the kept glide, never both; the step 2.90 | +| `time.descend` | none | `close` 0.20 then 0.30 (`glide`), `ring` 0.20, `lane` 0.30, `head` 0.20, `rows` 0.20 a row 0.03 apart, from 1.10 after the fire, the given-up rows fading before the kept glide, never both; from 1.80 after the fire once the push is in cause order (touch, word, rsp's pin, the window following); the step 3.60 | | `time.cross` | none | the registers framed 0.10 apart from 0.30; `lane` 0.40 from 0.80; the kernel's window 0.20; the answer up 0.40; the step 3.60, 4.90 when it moves bytes | ->>> - -| `time.ascend` | none | `close` 0.20 a row, 0.03 apart, from 0.80; the lane back 0.20; the caller's kept rows 0.30 (`glide`), then the given-back rows 0.20; the step 2.50 | +| `time.ascend` | none | `close` 0.20 a row, 0.03 apart, from 1.60 (after the touch, the read, rsp's pin falling and the window following); the lane back 0.20; the caller's kept rows 0.30 (`glide`), then the given-back rows 0.20; the step 3.30 | | `metric.segments` | none | the whole 20 wide, the stage's height, its labels 12 left of it; a box 180 wide (108 in a column of 880), framed 2 out, 48 apart; bands 30% over the page, named from 6 tall, permissions inside from 28; the names 64 past the box, rows 24, a band's row indented 24, sizes ranged right 132 in, files at 252 on a bracket at 240; leaders 8 out, 20 short, 12 in; the magnification 2 `rule`; a dump's place: its link 3 in the stack's ink over y 56, standing at 60% toward the page | ->>> - | `time.enlarge` | none | the line framed 0.10; the ride 1.20 (`glide`); page lines 0.20; names 0.20 each, 0.033 apart, a leader 0.10 before its address; the next cluster as one lands | | `time.regroup` | none | rows making room 0.30, down 0.20, left 0.30; veil 0.30; offsets 0.20 each, 0.033 apart; a byte's flight 0.60, 0.10 apart; the gaps 0.20; the zeros 0.20; at a run a word 0.133, rows 0.10 apart | +| `insn.annotation` | none (the chain always) | `tied` (the default) or `whole`, a scene's, settable per beat | +| `metric.slot.offset` | from rsp | from the frame's base (the CFA's register at the newest frame's pc) under `tied`; the tag's note names it; a change of base crossfades 0.20 | +| `metric.touch` | none | 2, in the mark's colour; the gutter's middle lane at 956; a head 7 by 8 on the stack's rule (on its right rule, pointing left, in the column); corners 6 | +| `time.touch` | none | 0.20 (0.30 past six rows), `standard`, in memory's slot before the word's arm or frame; back 0.20 with the advance; none at a run | +| `metric.stack.headroom` | none (the window's top is rsp) | two `free` words over rsp at rest | +| `time.sp_travel` | `time.pin` (24 f, 2 f a row, 36 at most) for every pin | rsp's and rbp's: 0.40, 0.10 a further row, 0.80 at most (`glide`); the amount's crossfade 0.20 at the advance; a row's gain or release 0.20; at a run 0.13, 0.03 a row, 0.27 at most | +| `time.follow` | none | after the landing: 0.40, 0.03 a further slot, 0.60 at most (`glide`) | +| `metric.carry`, `time.carry` | none | 2 in primary, an open chevron 7 by 8 in two strokes; the gutter's right lane, 962; the source's read 0.10, the arrow 0.30 (0.40 past eight rows), the destination's arm 0.20 and strike, back 0.30 with it; `carry = .value`: a chip of `raised`, mono 20, on the head | +| `metric.column` | none | the panes at 64 and the text at 976, 880 each; the shelf at 48, 24 high, its tags 12 apart; the panes from 84, narrated rows above 888, the floor to 1032; the clock under the text column at 900 | +| `metric.bubble` | none | Go 40 on 54, code mono 35; 40 characters and three lines at most; padding 16, 812 wide at most; the newest on `raised`, older ones `dim` and bare; three at most; 12 between bubbles; the stem 2 in `dim`, a head 7 by 8 | +| `time.bubble` | none | in 0.30 rising 8 (`enter`), out 0.20; dim 0.30; out of the newest's way 0.40 (`glide`); the stem 0.20 in with the bubble, 0.20 back with the fire; between beats: fold 0.20 then 0.40 (the panel closing as its tag travels to the shelf), the stayers 0.40, unfold 0.40 (the tag back as the panel opens) then 0.20 | | `metric.aligned` | `interleaved` only | `columns`: the seam 48 after the longest line in the window; each column's place ranged right 132 into it, its text 24 after; a line's first row `raised` | Unchanged and already there: the 1920 stage (its splits change, above), each pane's `strip`, the palette diff --git a/design/mock/44-tied-store.png b/design/mock/44-tied-store.png Binary files differnew file mode 100644 index 0000000..4afc1be --- /dev/null +++ b/design/mock/44-tied-store.png diff --git a/design/mock/45-tied-load.png b/design/mock/45-tied-load.png Binary files differnew file mode 100644 index 0000000..7a552f4 --- /dev/null +++ b/design/mock/45-tied-load.png diff --git a/design/mock/46-tied-call.png b/design/mock/46-tied-call.png Binary files differnew file mode 100644 index 0000000..ef563f6 --- /dev/null +++ b/design/mock/46-tied-call.png diff --git a/design/mock/47-tied-prologue.png b/design/mock/47-tied-prologue.png Binary files differnew file mode 100644 index 0000000..d6d84e9 --- /dev/null +++ b/design/mock/47-tied-prologue.png diff --git a/design/mock/48-tied-ways.png b/design/mock/48-tied-ways.png Binary files differnew file mode 100644 index 0000000..ae67852 --- /dev/null +++ b/design/mock/48-tied-ways.png diff --git a/design/mock/49-column-call-480.png b/design/mock/49-column-call-480.png Binary files differnew file mode 100644 index 0000000..aa6899a --- /dev/null +++ b/design/mock/49-column-call-480.png diff --git a/design/mock/49-column-call.png b/design/mock/49-column-call.png Binary files differnew file mode 100644 index 0000000..d856574 --- /dev/null +++ b/design/mock/49-column-call.png diff --git a/design/mock/49-column-call.svg b/design/mock/49-column-call.svg new file mode 100644 index 0000000..7fdb518 --- /dev/null +++ b/design/mock/49-column-call.svg @@ -0,0 +1,312 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="236.4" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="234.4" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">system calls</text> +<text x="221.3" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">none yet</text> +<rect x="312.4" y="48.0" width="255.8" height="24.0" fill="#16245f"/> +<rect x="313.4" y="49.0" width="253.8" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="321.4" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="340.4" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<text x="432.1" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">no call crossing</text> +<rect x="580.2" y="48.0" width="325.0" height="24.0" fill="#16245f"/> +<rect x="581.2" y="49.0" width="323.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="589.2" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="608.2" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="703.2 715.2 727.2 739.2" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp </text> +<rect x="747.2" y="50.0" width="152.0" height="20.0" fill="#b64f42"/> +<text x="751.2 763.2 775.2 787.2 799.2 811.2 823.2 835.2 847.2 859.2 871.2 883.2" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">7fffffffeca8</text> +<rect x="64.0" y="84.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="878.0" height="102.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="91.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<text x="934.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">lines 5 to 7 of 11</text> +<text x="98.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">5</text> +<text x="176.0 188.0 200.0 212.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">char</text> +<text x="236.0 248.0 260.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="272.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[</text> +<text x="284.0 296.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="308.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">]</text> +<text x="320.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="66.0" y="136.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="136.0" width="50.0" height="24.0" fill="#e8c46a"/> +<text x="98.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">6</text> +<text x="176.0 188.0 200.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="248.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="320.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0 344.0 356.0 368.0 380.0 392.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="404.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">0</text> +<text x="440.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="452.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="98.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="176.0 188.0 200.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="248.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">read</text> +<text x="320.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="344.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="368.0 380.0 392.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="404.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0 440.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="452.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="464.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="64.0" y="200.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="201.0" width="878.0" height="318.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="207.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="218.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="218.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">main</text> +<text x="104.0 116.0 128.0 140.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">84</text> +<text x="222.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4</text> +<text x="244.0 256.0 268.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">sub</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 0x50</text> +<text x="104.0 116.0 128.0 140.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">88</text> +<text x="244.0 256.0 268.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, fs:[0x28]</text> +<text x="104.0 116.0 128.0 140.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">91</text> +<text x="244.0 256.0 268.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 8], rax</text> +<text x="104.0 116.0 128.0 140.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">95</text> +<text x="244.0 256.0 268.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x34]</text> +<rect x="475.0" y="309.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="482.0" y="309.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="489.0" y="309.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="496.0" y="309.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<text x="505.0 517.0 529.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">, 0</text> +<rect x="66.0" y="325.0" width="4.0" height="22.0" fill="#463b20"/> +<text x="104.0 116.0 128.0 140.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> +<text x="222.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#e8c46a" xml:space="preserve" font-weight="bold">6</text> +<text x="244.0 256.0 268.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rip + 0xe61]</text> +<rect x="66.0" y="349.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a3</text> +<text x="244.0 256.0 268.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, esi</text> +<rect x="66.0" y="373.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="104.0 116.0 128.0 140.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a5</text> +<text x="244.0 256.0 268.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">al, sil</text> +<rect x="66.0" y="396.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="396.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,408 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a8</text> +<text x="244.0 256.0 268.0 280.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="104.0 116.0 128.0 140.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="244.0 256.0 268.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<text x="104.0 116.0 128.0 140.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b0</text> +<text x="222.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="244.0 256.0 268.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">edi, [rbp - 0x38]</text> +<text x="104.0 116.0 128.0 140.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b3</text> +<text x="244.0 256.0 268.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsi, [rbp - 0x30]</text> +<text x="104.0 116.0 128.0 140.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b7</text> +<text x="244.0 256.0 268.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x48], rsi</text> +<text x="628.0 640.0 652.0 664.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi </text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">402004</text> +<text x="748.0 760.0 772.0 784.0 796.0 808.0 820.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500"> "note"</text> +<text x="628.0 640.0 652.0 664.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsi </text> +<text x="676.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="628.0 640.0 652.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">al </text> +<text x="664.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="628.0 640.0 652.0 664.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> +<rect x="64.0" y="532.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="533.0" width="878.0" height="486.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="539.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="550.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="934.0" y="550.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">19 words · offsets from rsp · the frames they belong to</text> +<text x="80.0 92.0 104.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rsp</text> +<path d="M130,572 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="212.0 224.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ca8</text> +<rect x="398.0" y="571.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,572 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="417.0" y="561.0" width="82.0" height="22.0" fill="#b64f42"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">4011ad</text> +<text x="504.0 516.0 528.0 540.0 552.0 564.0 576.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main+45</text> +<text x="212.0 224.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb0</text> +<path d="M398,596 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="595.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb8</text> +<path d="M398,620 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="619.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text> +<text x="664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n, high half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc0</text> +<path d="M398,644 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="643.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f, low half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc8</text> +<path d="M398,668 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text> +<text x="772.0 784.0 796.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd0</text> +<path d="M398,692 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="691.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+30</text> +<text x="748.0 760.0 772.0 784.0 796.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd8</text> +<path d="M398,716 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="715.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+38</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce0</text> +<path d="M398,740 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="739.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+40</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+18</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text> +<path d="M398,764 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="763.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+48</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text> +<path d="M398,788 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="787.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+50</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text> +<path d="M398,812 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="811.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0 566.0 578.0 590.0 602.0 614.0 626.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x4434195f31f30300</text> +<text x="80.0 92.0 104.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rbp</text> +<path d="M130,836 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="200.0 212.0 224.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+58</text> +<text x="700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text> +<rect x="398.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="572.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="598.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="606.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="614.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="200.0 212.0 224.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+60</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text> +<rect x="398.0" y="859.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,860 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text> +<text x="200.0 212.0 224.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+68</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d10</text> +<rect x="398.0" y="883.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,884 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+22c60</text> +<text x="200.0 212.0 224.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+70</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d18</text> +<rect x="398.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="572.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="596.0 608.0 620.0 632.0 644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefe8</text> +<path d="M746,908 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="753.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="770.0 782.0 794.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">".…</text> +<text x="200.0 212.0 224.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+78</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d20</text> +<path d="M398,932 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="931.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x1f7fbe000</text> +<text x="200.0 212.0 224.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+80</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d28</text> +<rect x="398.0" y="955.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,956 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401180</text> +<text x="504.0 516.0 528.0 540.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main</text> +<text x="200.0 212.0 224.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+88</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d30</text> +<rect x="398.0" y="979.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,980 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed70</text> +<text x="200.0 212.0 224.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+90</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d38</text> +<rect x="398.0" y="1003.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,1004 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fdf260</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+21260</text> +<rect x="929.0" y="563.0" width="2.0" height="18.0" fill="#e8c46a"/> +<rect x="923.0" y="563.0" width="8.0" height="2.0" fill="#e8c46a"/> +<rect x="923.0" y="579.0" width="8.0" height="2.0" fill="#e8c46a"/> +<text x="916.0" y="578.0" font-family="Go Medium" font-size="18" fill="#fff8e8" xml:space="preserve" text-anchor="end">open@plt</text> +<rect x="929.0" y="587.0" width="2.0" height="282.0" fill="#3a4a8a"/> +<rect x="923.0" y="587.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<rect x="923.0" y="867.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="916.0" y="734.0" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">main</text> +<rect x="929.0" y="875.0" width="2.0" height="141.0" fill="#3a4a8a"/> +<rect x="923.0" y="875.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="916.0" y="951.5" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">libc+27781</text> +<rect x="52.5" y="138.0" width="3.0" height="20.0" fill="#e8c46a"/> +<rect x="52.5" y="138.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="155.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="326.0" width="3.0" height="92.0" fill="#e8c46a"/> +<rect x="52.5" y="326.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="415.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="138.0" width="3.0" height="280.0" fill="#e8c46a"/> +<path d="M944.0,408.0 L950.0,408.0 Q956.0,408.0 956.0,414.0 L956.0,569.5 Q956.0,572.0 953.5,572.0 L951.0,572.0" fill="none" stroke="#ff6a4a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M946.0,572.0 L953.0,568.0 L953.0,576.0 Z" fill="#ff6a4a"/> +<text x="1000.0" y="221.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">main </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">puts </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan></text> +<text x="1000.0" y="275.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">convention </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">says: </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">0 </tspan></text> +<text x="1000.0" y="329.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">(O_RDONLY) </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rsi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<rect x="984.0" y="368.0" width="812.0" height="134.0" fill="#16245f"/> +<text x="1000.0" y="421.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">call </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">where </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">come </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">back </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to, </tspan></text> +<text x="1000.0" y="475.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub.</tspan></text> +<rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> +<rect x="976.0" y="898.0" width="133.9" height="4.0" fill="#e8c46a"/> +<text x="1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 7 of 46</text> +</svg> diff --git a/design/mock/50-column-stub-480.png b/design/mock/50-column-stub-480.png Binary files differnew file mode 100644 index 0000000..e5e4657 --- /dev/null +++ b/design/mock/50-column-stub-480.png diff --git a/design/mock/50-column-stub.png b/design/mock/50-column-stub.png Binary files differnew file mode 100644 index 0000000..60c3187 --- /dev/null +++ b/design/mock/50-column-stub.png diff --git a/design/mock/50-column-stub.svg b/design/mock/50-column-stub.svg new file mode 100644 index 0000000..886dd88 --- /dev/null +++ b/design/mock/50-column-stub.svg @@ -0,0 +1,316 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="236.4" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="234.4" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">system calls</text> +<text x="221.3" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">none yet</text> +<rect x="312.4" y="48.0" width="255.8" height="24.0" fill="#16245f"/> +<rect x="313.4" y="49.0" width="253.8" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="321.4" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="340.4" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<text x="432.1" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">no call crossing</text> +<rect x="580.2" y="48.0" width="133.0" height="24.0" fill="#16245f"/> +<rect x="581.2" y="49.0" width="131.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="589.2" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="608.2" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<rect x="64.0" y="84.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="878.0" height="102.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="91.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<text x="934.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">main waits at line 6 · the pc is in the PLT</text> +<text x="98.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">5</text> +<text x="176.0 188.0 200.0 212.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">char</text> +<text x="236.0 248.0 260.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="272.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[</text> +<text x="284.0 296.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="308.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">]</text> +<text x="320.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="67.0" y="137.0" width="48.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<text x="98.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">6</text> +<text x="176.0 188.0 200.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="248.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="320.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0 344.0 356.0 368.0 380.0 392.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="404.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">0</text> +<text x="440.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="452.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="98.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="176.0 188.0 200.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="248.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">read</text> +<text x="320.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="344.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="368.0 380.0 392.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="404.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0 440.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="452.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="464.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="64.0" y="200.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="201.0" width="878.0" height="318.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="207.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="218.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="218.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">open@plt · hello</text> +<text x="104.0 116.0 128.0 140.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">88</text> +<text x="222.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4</text> +<text x="244.0 256.0 268.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, fs:[0x28]</text> +<text x="104.0 116.0 128.0 140.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">91</text> +<text x="244.0 256.0 268.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 8], rax</text> +<text x="104.0 116.0 128.0 140.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">95</text> +<text x="244.0 256.0 268.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x34]</text> +<rect x="475.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="482.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="489.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="496.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<text x="505.0 517.0 529.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">, 0</text> +<rect x="66.0" y="301.0" width="4.0" height="22.0" fill="#463b20"/> +<text x="104.0 116.0 128.0 140.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> +<text x="222.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">6</text> +<text x="244.0 256.0 268.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rip + 0xe61]</text> +<rect x="66.0" y="325.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a3</text> +<text x="244.0 256.0 268.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, esi</text> +<rect x="66.0" y="349.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="104.0 116.0 128.0 140.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a5</text> +<text x="244.0 256.0 268.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">al, sil</text> +<rect x="67.0" y="373.0" width="22.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<path d="M83,384 l-8,-5 v10 Z" fill="#eee6d2"/> +<text x="104.0 116.0 128.0 140.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a8</text> +<text x="244.0 256.0 268.0 280.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="628.0 640.0 652.0 664.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> +<text x="104.0 116.0 128.0 140.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="244.0 256.0 268.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<rect x="66.0" y="420.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="439.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open@plt</text> +<text x="932.0" y="439.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the PLT · its jmp reads open@got, 403fd8</text> +<path d="M78.0,396.0 L78.0,428.0 Q78.0,432.0 82.0,432.0 L93.0,432.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,432.0 L91.0,436.0 L91.0,428.0 Z" fill="#eee6d2"/> +<rect x="66.0" y="444.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="444.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,456 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> +<text x="244.0 256.0 268.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2f62]</text> +<rect x="634.0" y="455.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M652,456 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10ec0</text> +<text x="802.0 814.0 826.0 838.0 850.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> open</text> +<text x="104.0 116.0 128.0 140.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">76</text> +<text x="244.0 256.0 268.0 280.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="328.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">4</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">lazy binding: unused</text> +<text x="104.0 116.0 128.0 140.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7b</text> +<text x="244.0 256.0 268.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401020</text> +<text x="628.0 640.0 652.0 664.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi </text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">402004</text> +<text x="748.0 760.0 772.0 784.0 796.0 808.0 820.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500"> "note"</text> +<text x="628.0 640.0 652.0 664.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsi </text> +<text x="676.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="628.0 640.0 652.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">al </text> +<text x="664.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">the stack's canary</text> +<rect x="64.0" y="532.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="533.0" width="878.0" height="486.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="539.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="550.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="934.0" y="550.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">19 words · offsets from rsp · the frames they belong to</text> +<text x="80.0 92.0 104.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rsp</text> +<path d="M130,572 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="212.0 224.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ca8</text> +<rect x="398.0" y="571.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,572 l-8,-5 v10 Z" fill="#6a7ab8"/> +<path d="M418,562 h9 l-9,9 Z" fill="#ff6a4a"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4011ad</text> +<text x="504.0 516.0 528.0 540.0 552.0 564.0 576.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main+45</text> +<text x="212.0 224.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb0</text> +<path d="M398,596 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="595.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb8</text> +<path d="M398,620 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="619.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text> +<text x="664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n, high half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc0</text> +<path d="M398,644 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="643.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f, low half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc8</text> +<path d="M398,668 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text> +<text x="772.0 784.0 796.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd0</text> +<path d="M398,692 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="691.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+30</text> +<text x="748.0 760.0 772.0 784.0 796.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd8</text> +<path d="M398,716 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="715.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+38</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce0</text> +<path d="M398,740 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="739.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+40</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+18</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text> +<path d="M398,764 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="763.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+48</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text> +<path d="M398,788 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="787.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+50</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text> +<path d="M398,812 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="811.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0 566.0 578.0 590.0 602.0 614.0 626.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x4434195f31f30300</text> +<text x="80.0 92.0 104.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rbp</text> +<path d="M130,836 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="200.0 212.0 224.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+58</text> +<text x="700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text> +<rect x="398.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="572.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="598.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="606.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="614.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="200.0 212.0 224.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+60</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text> +<rect x="398.0" y="859.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,860 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text> +<text x="200.0 212.0 224.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+68</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d10</text> +<rect x="398.0" y="883.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,884 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+22c60</text> +<text x="200.0 212.0 224.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+70</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d18</text> +<rect x="398.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="572.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="596.0 608.0 620.0 632.0 644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefe8</text> +<path d="M746,908 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="753.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="770.0 782.0 794.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">".…</text> +<text x="200.0 212.0 224.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+78</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d20</text> +<path d="M398,932 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="931.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x1f7fbe000</text> +<text x="200.0 212.0 224.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+80</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d28</text> +<rect x="398.0" y="955.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,956 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401180</text> +<text x="504.0 516.0 528.0 540.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main</text> +<text x="200.0 212.0 224.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+88</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d30</text> +<rect x="398.0" y="979.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,980 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed70</text> +<text x="200.0 212.0 224.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+90</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d38</text> +<rect x="398.0" y="1003.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,1004 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fdf260</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+21260</text> +<rect x="929.0" y="563.0" width="2.0" height="18.0" fill="#e8c46a"/> +<rect x="923.0" y="563.0" width="8.0" height="2.0" fill="#e8c46a"/> +<rect x="923.0" y="579.0" width="8.0" height="2.0" fill="#e8c46a"/> +<text x="916.0" y="578.0" font-family="Go Medium" font-size="18" fill="#fff8e8" xml:space="preserve" text-anchor="end">open@plt</text> +<rect x="929.0" y="587.0" width="2.0" height="282.0" fill="#3a4a8a"/> +<rect x="923.0" y="587.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<rect x="923.0" y="867.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="916.0" y="734.0" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">main</text> +<rect x="929.0" y="875.0" width="2.0" height="141.0" fill="#3a4a8a"/> +<rect x="923.0" y="875.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="916.0" y="951.5" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">libc+27781</text> +<rect x="53.0" y="138.0" width="2.0" height="20.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="156.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="302.0" width="2.0" height="92.0" fill="#eee6d2"/> +<rect x="53.0" y="302.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="392.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="2.0" height="256.0" fill="#eee6d2"/> +<text x="1000.0" y="323.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">call </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">come </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">back </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to, </tspan></text> +<text x="1000.0" y="377.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub.</tspan></text> +<rect x="984.0" y="416.0" width="812.0" height="188.0" fill="#16245f"/> +<text x="1000.0" y="469.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">PLT </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">is </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">one </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">jump: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">it </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">reads </tspan></text> +<text x="1000.0" y="523.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">where </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">loader </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">wrote </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">libc's </tspan></text> +<text x="1000.0" y="577.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">It </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">nothing.</tspan></text> +<path d="M984.0,456.0 L950.0,456.0" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M945.0,456.0 L952.0,452.0 L952.0,460.0 Z" fill="#9aa6d9"/> +<rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> +<rect x="976.0" y="898.0" width="153.0" height="4.0" fill="#e8c46a"/> +<text x="1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 8 of 46</text> +</svg> diff --git a/design/mock/51-column-args-480.png b/design/mock/51-column-args-480.png Binary files differnew file mode 100644 index 0000000..193a0e7 --- /dev/null +++ b/design/mock/51-column-args-480.png diff --git a/design/mock/51-column-args.png b/design/mock/51-column-args.png Binary files differnew file mode 100644 index 0000000..cc51162 --- /dev/null +++ b/design/mock/51-column-args.png diff --git a/design/mock/51-column-args.svg b/design/mock/51-column-args.svg new file mode 100644 index 0000000..276d047 --- /dev/null +++ b/design/mock/51-column-args.svg @@ -0,0 +1,244 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="236.4" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="234.4" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">system calls</text> +<text x="221.3" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">none yet</text> +<rect x="312.4" y="48.0" width="293.2" height="24.0" fill="#16245f"/> +<rect x="313.4" y="49.0" width="291.2" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="321.4" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="340.4" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<text x="432.1 444.1 456.1 468.1 480.1 492.1 504.1" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">"note" </text> +<text x="516.1" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">handed in</text> +<rect x="617.6" y="48.0" width="288.2" height="24.0" fill="#16245f"/> +<rect x="618.6" y="49.0" width="286.2" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="626.6" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="645.6" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="708.5" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">open's frame, 16 words</text> +<rect x="64.0" y="84.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="878.0" height="78.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="91.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<text x="934.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">main waits at line 6 · the pc is in libc's open</text> +<text x="98.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">5</text> +<text x="176.0 188.0 200.0 212.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">char</text> +<text x="236.0 248.0 260.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="272.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[</text> +<text x="284.0 296.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="308.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">]</text> +<text x="320.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="67.0" y="137.0" width="48.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<text x="98.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">6</text> +<text x="176.0 188.0 200.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="248.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="320.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0 344.0 356.0 368.0 380.0 392.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="404.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">0</text> +<text x="440.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="452.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="64.0" y="176.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="177.0" width="878.0" height="318.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="183.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="194.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="194.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">open · libc.so.6</text> +<text x="104.0 116.0 128.0 140.0" y="223.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="223.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a5</text> +<text x="222.0" y="223.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">6</text> +<text x="244.0 256.0 268.0" y="223.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="223.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">al, sil</text> +<rect x="67.0" y="229.0" width="22.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<path d="M83,240 l-8,-5 v10 Z" fill="#eee6d2"/> +<text x="104.0 116.0 128.0 140.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a8</text> +<text x="244.0 256.0 268.0 280.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="628.0 640.0 652.0 664.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> +<text x="104.0 116.0 128.0 140.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="244.0 256.0 268.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<rect x="66.0" y="276.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="295.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open@plt</text> +<text x="932.0" y="295.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the PLT · its jmp reads open@got, 403fd8</text> +<path d="M78.0,252.0 L78.0,284.0 Q78.0,288.0 82.0,288.0 L93.0,288.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,288.0 L91.0,292.0 L91.0,284.0 Z" fill="#eee6d2"/> +<rect x="66.0" y="301.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> +<text x="244.0 256.0 268.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2f62]</text> +<rect x="634.0" y="311.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M652,312 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10ec0</text> +<text x="802.0 814.0 826.0 838.0 850.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> open</text> +<rect x="66.0" y="324.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="343.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open</text> +<text x="932.0" y="343.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">libc.so.6 · no source here</text> +<path d="M78.0,318.0 L78.0,332.0 Q78.0,336.0 82.0,336.0 L93.0,336.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,336.0 L91.0,340.0 L91.0,332.0 Z" fill="#eee6d2"/> +<rect x="66.0" y="349.0" width="4.0" height="22.0" fill="#463b20"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b3</text> +<text x="304.0 316.0 328.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">r9d, r9d</text> +<rect x="66.0" y="373.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b6</text> +<text x="304.0 316.0 328.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">r8d, r8d</text> +<text x="688.0 700.0 712.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r8 </text> +<text x="724.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<rect x="66.0" y="397.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b9</text> +<text x="304.0 316.0 328.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0 580.0 592.0 604.0 616.0 628.0 640.0 652.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, 0xffffffffffffff9c</text> +<text x="688.0 700.0 712.0 724.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi </text> +<text x="736.0 748.0 760.0 772.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-100</text> +<text x="784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> AT_FDCWD</text> +<rect x="66.0" y="420.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="420.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,432 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c0</text> +<text x="304.0 316.0 328.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, 0x101</text> +<text x="688.0 700.0 712.0 724.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rax </text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x101 </text> +<text x="808.0 820.0 832.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">257</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c5</text> +<text x="304.0 316.0 328.0 340.0 352.0 364.0 376.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">syscall</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c7</text> +<text x="304.0 316.0 328.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdx, rax</text> +<rect x="64.0" y="508.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="509.0" width="878.0" height="366.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="515.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="526.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="589.7" y="526.0" font-family="Go Medium" font-size="18" fill="#f2d675" xml:space="preserve">stack</text> +<text x="647.8" y="526.0" font-family="Go Medium" font-size="18" fill="#86b6ff" xml:space="preserve">heap</text> +<text x="702.8" y="526.0" font-family="Go Medium" font-size="18" fill="#ff8f9a" xml:space="preserve">code</text> +<text x="757.3" y="526.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">data</text> +<text x="807.4" y="526.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">rwx</text> +<rect x="807.4" y="529.0" width="29.5" height="2.0" fill="#d59cf5"/> +<text x="850.9" y="526.0" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">read-only</text> +<rect x="66.0" y="800.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="76.0 88.0 100.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">rbx</text> +<text x="124.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="361.0 373.0 385.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">r12</text> +<text x="409.0 421.0 433.0 445.0 457.0 469.0 481.0 493.0 505.0 517.0 529.0 541.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="559.0" y="811.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M577,812 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="585.0" y="814.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="593.0" y="814.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="601.0" y="814.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="646.0 658.0 670.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">r13</text> +<text x="694.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<text x="76.0 88.0 100.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">r14</text> +<text x="124.0 136.0 148.0 160.0 172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffd000</text> +<rect x="274.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M292,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="300.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="308.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="316.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="361.0 373.0 385.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">r15</text> +<text x="409.0 421.0 433.0 445.0 457.0 469.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">403da8</text> +<rect x="487.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M505,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="513.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="521.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="529.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="76.0 88.0 100.0" y="555.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rax</text> +<rect x="131.0" y="537.0" width="70.0" height="22.0" fill="#b64f42"/> +<text x="136.0 148.0 160.0 172.0 184.0" y="555.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0x101</text> +<text x="76.0 88.0 100.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rcx</text> +<text x="136.0 148.0 160.0 172.0 184.0 196.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">403da8</text> +<rect x="214.0" y="571.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M232,572 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="238.0 250.0 262.0 274.0 286.0 298.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401140</text> +<text x="320.0 332.0 344.0 356.0 368.0 380.0 392.0 404.0 416.0 428.0 440.0 452.0 464.0 476.0 488.0 500.0 512.0 524.0 536.0 548.0 560.0" y="579.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">__do_global_dtors_aux</text> +<text x="76.0 88.0 100.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdx</text> +<text x="136.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="76.0 88.0 100.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsi</text> +<path d="M132,610 h9 l-9,9 Z" fill="#ff6a4a"/> +<text x="136.0 148.0 160.0 172.0 184.0 196.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">402004</text> +<path d="M214,620 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="221.0" y="619.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="238.0 250.0 262.0 274.0 286.0 298.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="76.0 88.0 100.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi</text> +<text x="136.0 148.0 160.0 172.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-100</text> +<path d="M132,634 h9 l-9,9 Z" fill="#ff6a4a"/> +<text x="76.0 88.0 100.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rbp</text> +<text x="136.0 148.0 160.0 172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0 268.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffeca0</text> +<rect x="286.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M304,668 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="310.0 322.0 334.0 346.0 358.0 370.0 382.0 394.0 406.0 418.0 430.0 442.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="460.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M478,668 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0 580.0 592.0 604.0 616.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="634.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M652,668 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee10</text> +<path d="M808,668 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="815.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="832.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="76.0 88.0 100.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsp</text> +<text x="136.0 148.0 160.0 172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0 268.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffec30</text> +<path d="M286,692 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="293.0" y="691.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="310.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">6</text> +<text x="76.0 88.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r8</text> +<text x="136.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<path d="M132,706 h9 l-9,9 Z" fill="#ff6a4a"/> +<text x="76.0 88.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r9</text> +<text x="136.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="76.0 88.0 100.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r10</text> +<text x="136.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="76.0 88.0 100.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r11</text> +<text x="136.0 148.0 160.0 172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0 268.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7f70740</text> +<rect x="286.0" y="787.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M304,788 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="310.0 322.0 334.0 346.0 358.0 370.0 382.0 394.0 406.0 418.0 430.0 442.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7f70740</text> +<rect x="66.0" y="848.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="848.0" width="54.0" height="24.0" fill="#e8c46a"/> +<text x="76.0 88.0 100.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">rip</text> +<text x="136.0 148.0 160.0 172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0 268.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10fc0</text> +<text x="290.0 302.0 314.0 326.0 338.0 350.0 362.0 374.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open+256</text> +<text x="610.0 622.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">cf</text> +<rect x="648.0" y="850.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="652.0 664.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">PF</text> +<text x="694.0 706.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">af</text> +<rect x="732.0" y="850.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="736.0 748.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">ZF</text> +<text x="778.0 790.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">sf</text> +<rect x="816.0" y="850.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="820.0 832.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">IF</text> +<text x="862.0 874.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">df</text> +<text x="904.0 916.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">of</text> +<rect x="53.0" y="138.0" width="2.0" height="20.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="156.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="230.0" width="2.0" height="20.0" fill="#eee6d2"/> +<rect x="53.0" y="230.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="248.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="2.0" height="112.0" fill="#eee6d2"/> +<text x="1000.0" y="197.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">PLT </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">is </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">one </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">jump. </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">It </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">reads </tspan></text> +<text x="1000.0" y="251.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">loader </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">wrote </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">libc's </tspan></text> +<text x="1000.0" y="305.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<rect x="984.0" y="344.0" width="812.0" height="188.0" fill="#16245f"/> +<text x="1000.0" y="397.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">last </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">three </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">set </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">arguments: </tspan></text> +<text x="1000.0" y="451.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">AT_FDCWD </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">openat's </tspan></text> +<text x="1000.0" y="505.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> +<rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> +<rect x="976.0" y="898.0" width="593.0" height="4.0" fill="#e8c46a"/> +<text x="1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 31 of 46</text> +</svg> diff --git a/design/mock/52-column-cross-480.png b/design/mock/52-column-cross-480.png Binary files differnew file mode 100644 index 0000000..ef5f705 --- /dev/null +++ b/design/mock/52-column-cross-480.png diff --git a/design/mock/52-column-cross.png b/design/mock/52-column-cross.png Binary files differnew file mode 100644 index 0000000..c79b82b --- /dev/null +++ b/design/mock/52-column-cross.png diff --git a/design/mock/52-column-cross.svg b/design/mock/52-column-cross.svg new file mode 100644 index 0000000..cd9cef3 --- /dev/null +++ b/design/mock/52-column-cross.svg @@ -0,0 +1,214 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="323.3" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="321.3" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">system calls</text> +<text x="221.3 233.3 245.3 257.3 269.3 281.3 293.3 305.3 317.3 329.3 341.3 353.3 365.3" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">openat(…) = 3</text> +<rect x="399.3" y="48.0" width="201.7" height="24.0" fill="#16245f"/> +<rect x="400.3" y="49.0" width="199.7" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="408.3" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="427.3" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<text x="518.9 530.9 542.9 554.9 566.9 578.9" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">"note"</text> +<rect x="612.9" y="48.0" width="289.0" height="24.0" fill="#16245f"/> +<rect x="613.9" y="49.0" width="287.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="621.9" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="640.9" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="735.9 747.9 759.9 771.9" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax </text> +<rect x="779.9" y="50.0" width="20.0" height="20.0" fill="#b64f42"/> +<text x="783.9" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">3</text> +<text x="795.9 807.9 819.9 831.9 843.9 855.9 867.9 879.9" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> rcx r11</text> +<rect x="913.9" y="48.0" width="100.9" height="24.0" fill="#16245f"/> +<rect x="914.9" y="49.0" width="98.9" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="922.9" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="941.9" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<rect x="64.0" y="84.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="878.0" height="102.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="91.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<text x="934.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">main waits at line 6 · the pc is in libc's open</text> +<text x="98.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">5</text> +<text x="176.0 188.0 200.0 212.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">char</text> +<text x="236.0 248.0 260.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="272.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[</text> +<text x="284.0 296.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="308.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">]</text> +<text x="320.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="67.0" y="137.0" width="48.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<text x="98.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">6</text> +<text x="176.0 188.0 200.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="248.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="320.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0 344.0 356.0 368.0 380.0 392.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="404.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">0</text> +<text x="440.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="452.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="98.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="176.0 188.0 200.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="248.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">read</text> +<text x="320.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="344.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="368.0 380.0 392.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="404.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0 440.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="452.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="464.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="64.0" y="200.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="201.0" width="878.0" height="606.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="207.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="218.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="218.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">open · libc.so.6 · the kernel</text> +<text x="104.0 116.0 128.0 140.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> +<text x="222.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">6</text> +<text x="244.0 256.0 268.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rip + 0xe61]</text> +<text x="104.0 116.0 128.0 140.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a3</text> +<text x="244.0 256.0 268.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, esi</text> +<text x="104.0 116.0 128.0 140.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a5</text> +<text x="244.0 256.0 268.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">al, sil</text> +<rect x="67.0" y="301.0" width="22.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<path d="M83,312 l-8,-5 v10 Z" fill="#eee6d2"/> +<text x="104.0 116.0 128.0 140.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a8</text> +<text x="244.0 256.0 268.0 280.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="628.0 640.0 652.0 664.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> +<text x="104.0 116.0 128.0 140.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="244.0 256.0 268.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<rect x="66.0" y="348.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="367.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open@plt</text> +<text x="932.0" y="367.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the PLT · its jmp reads open@got, 403fd8</text> +<path d="M78.0,324.0 L78.0,356.0 Q78.0,360.0 82.0,360.0 L93.0,360.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,360.0 L91.0,364.0 L91.0,356.0 Z" fill="#eee6d2"/> +<rect x="66.0" y="373.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> +<text x="244.0 256.0 268.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2f62]</text> +<rect x="634.0" y="383.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M652,384 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10ec0</text> +<text x="802.0 814.0 826.0 838.0 850.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> open</text> +<rect x="66.0" y="396.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="415.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open</text> +<text x="932.0" y="415.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">libc.so.6 · no source here</text> +<path d="M78.0,390.0 L78.0,404.0 Q78.0,408.0 82.0,408.0 L93.0,408.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,408.0 L91.0,412.0 L91.0,404.0 Z" fill="#eee6d2"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">0e</text> +<text x="304.0 316.0 328.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">cmp</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x11018b]</text> +<rect x="583.0" y="429.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<text x="592.0 604.0 616.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">, 0</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">15</text> +<text x="304.0 316.0 328.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jne</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10fb0</text> +<text x="688.0 700.0 712.0 724.0 736.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">taken</text> +<text x="748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> · reads </text> +<text x="856.0 868.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">zf</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b0</text> +<text x="304.0 316.0 328.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsi, rdi</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b3</text> +<text x="304.0 316.0 328.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">r9d, r9d</text> +<rect x="66.0" y="517.0" width="4.0" height="22.0" fill="#463b20"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b6</text> +<text x="304.0 316.0 328.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">r8d, r8d</text> +<text x="688.0 700.0 712.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r8 </text> +<text x="724.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<rect x="66.0" y="541.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b9</text> +<text x="304.0 316.0 328.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0 580.0 592.0 604.0 616.0 628.0 640.0 652.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, 0xffffffffffffff9c</text> +<text x="688.0 700.0 712.0 724.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi </text> +<text x="736.0 748.0 760.0 772.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-100</text> +<text x="784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="559.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> AT_FDCWD</text> +<rect x="66.0" y="565.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c0</text> +<text x="304.0 316.0 328.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, 0x101</text> +<text x="688.0 700.0 712.0 724.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rax </text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x101 </text> +<text x="808.0 820.0 832.0" y="583.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">257</text> +<rect x="66.0" y="588.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="588.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,600 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="607.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="607.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c5</text> +<text x="304.0 316.0 328.0 340.0 352.0 364.0 376.0" y="607.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">syscall</text> +<text x="688.0 700.0 712.0 724.0 736.0 748.0" y="607.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">openat</text> +<text x="760.0 772.0 784.0 796.0 808.0 820.0 832.0" y="607.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> nr 257</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="631.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="631.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c7</text> +<text x="304.0 316.0 328.0" y="631.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="631.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdx, rax</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="655.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="655.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ca</text> +<text x="304.0 316.0 328.0" y="655.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">cmp</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="655.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, -0x1000</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="679.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="679.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">d0</text> +<text x="304.0 316.0" y="679.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ja</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="679.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10fe8</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="703.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="703.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">d2</text> +<text x="304.0 316.0 328.0" y="703.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0" y="703.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, edx</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0" y="727.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">7ffff7d10f</text> +<text x="224.0 236.0" y="727.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">d4</text> +<text x="304.0 316.0 328.0" y="727.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0 556.0 568.0 580.0" y="727.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdx, [rbp - 0x48]</text> +<rect x="66.0" y="732.0" width="876.0" height="72.0" fill="#eee6d2"/> +<rect x="66.0" y="732.0" width="876.0" height="2.0" fill="#b9ad8e"/> +<text x="104.0" y="751.2" font-family="Go Medium" font-size="18" fill="#0a1030" xml:space="preserve">the kernel</text> +<text x="932.0" y="751.2" font-family="Go" font-size="18" fill="#4a5488" xml:space="preserve" text-anchor="end">openat, system call 257</text> +<rect x="76.5" y="606.0" width="3.0" height="126.0" fill="#eee6d2"/> +<path d="M78,746 l-6,-10 h12 Z" fill="#0a1030"/> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0 200.0 212.0 224.0 236.0 248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0 356.0 368.0 380.0 392.0 404.0 416.0 428.0 440.0 452.0 464.0 476.0 488.0 500.0 512.0 524.0 536.0" y="775.2" font-family="JetBrains Mono NL" font-size="20" fill="#0a1030" xml:space="preserve" font-weight="500">openat(AT_FDCWD, "note", O_RDONLY, 0)</text> +<text x="104.0 116.0 128.0 140.0 152.0 164.0 176.0 188.0" y="799.2" font-family="JetBrains Mono NL" font-size="20" fill="#4a5488" xml:space="preserve" font-weight="500">returns </text> +<rect x="195.0" y="781.0" width="22.0" height="22.0" fill="#b64f42"/> +<text x="200.0" y="799.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">3</text> +<text x="212.0 224.0 236.0 248.0 260.0 272.0 284.0" y="799.2" font-family="JetBrains Mono NL" font-size="20" fill="#0a1030" xml:space="preserve" font-weight="500"> "note"</text> +<text x="296.0 308.0 320.0 332.0 344.0 356.0 368.0 380.0 392.0 404.0 416.0 428.0 440.0 452.0 464.0 476.0 488.0 500.0 512.0 524.0 536.0 548.0" y="799.2" font-family="JetBrains Mono NL" font-size="20" fill="#4a5488" xml:space="preserve" font-weight="500"> rcx, r11: clobbered</text> +<rect x="53.0" y="138.0" width="2.0" height="20.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="156.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="302.0" width="2.0" height="20.0" fill="#eee6d2"/> +<rect x="53.0" y="302.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="320.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="138.0" width="2.0" height="184.0" fill="#eee6d2"/> +<text x="1000.0" y="541.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">last </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">three </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">set </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments: </tspan></text> +<text x="1000.0" y="595.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">AT_FDCWD </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">openat's </tspan></text> +<text x="1000.0" y="649.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<rect x="984.0" y="700.0" width="812.0" height="188.0" fill="#16245f"/> +<text x="1000.0" y="753.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">opens </tspan></text> +<text x="1000.0" y="807.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">3: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">file's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">descriptor, </tspan></text> +<text x="1000.0" y="861.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> +<rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> +<rect x="976.0" y="898.0" width="669.6" height="4.0" fill="#e8c46a"/> +<text x="1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 35 of 46</text> +</svg> diff --git a/design/mock/53-column-back-480.png b/design/mock/53-column-back-480.png Binary files differnew file mode 100644 index 0000000..294b7cd --- /dev/null +++ b/design/mock/53-column-back-480.png diff --git a/design/mock/53-column-back.png b/design/mock/53-column-back.png Binary files differnew file mode 100644 index 0000000..aae5ff1 --- /dev/null +++ b/design/mock/53-column-back.png diff --git a/design/mock/53-column-back.svg b/design/mock/53-column-back.svg new file mode 100644 index 0000000..7292e57 --- /dev/null +++ b/design/mock/53-column-back.svg @@ -0,0 +1,302 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="323.3" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="321.3" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">system calls</text> +<text x="221.3 233.3 245.3 257.3 269.3 281.3 293.3 305.3 317.3 329.3 341.3 353.3 365.3" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">openat(…) = 3</text> +<rect x="399.3" y="48.0" width="129.7" height="24.0" fill="#16245f"/> +<rect x="400.3" y="49.0" width="127.7" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="408.3" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="427.3" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<rect x="540.9" y="48.0" width="193.0" height="24.0" fill="#16245f"/> +<rect x="541.9" y="49.0" width="191.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="549.9" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="568.9" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="663.9 675.9 687.9 699.9 711.9" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax 3</text> +<rect x="64.0" y="84.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="878.0" height="102.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="91.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<text x="934.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">lines 5 to 7 of 11</text> +<text x="98.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">5</text> +<text x="176.0 188.0 200.0 212.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">char</text> +<text x="236.0 248.0 260.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="272.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[</text> +<text x="284.0 296.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="308.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">]</text> +<text x="320.0" y="131.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="66.0" y="136.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="136.0" width="50.0" height="24.0" fill="#e8c46a"/> +<text x="98.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">6</text> +<text x="176.0 188.0 200.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="248.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="320.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0 344.0 356.0 368.0 380.0 392.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"note"</text> +<text x="404.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">0</text> +<text x="440.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="452.0" y="155.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="98.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="176.0 188.0 200.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="224.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="248.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="272.0 284.0 296.0 308.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">read</text> +<text x="320.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="332.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f</text> +<text x="344.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="368.0 380.0 392.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="404.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">,</text> +<text x="428.0 440.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">32</text> +<text x="452.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="464.0" y="179.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="64.0" y="200.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="201.0" width="878.0" height="342.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="207.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="218.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="218.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">main</text> +<text x="104.0 116.0 128.0 140.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">88</text> +<text x="222.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4</text> +<text x="244.0 256.0 268.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, fs:[0x28]</text> +<text x="104.0 116.0 128.0 140.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">91</text> +<text x="244.0 256.0 268.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="271.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 8], rax</text> +<text x="104.0 116.0 128.0 140.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">95</text> +<text x="244.0 256.0 268.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x34]</text> +<rect x="475.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="482.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="489.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<rect x="496.0" y="285.0" width="5.0" height="10.0" fill="#9aa6d9"/> +<text x="505.0 517.0 529.0" y="295.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">, 0</text> +<text x="104.0 116.0 128.0 140.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> +<text x="222.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#e8c46a" xml:space="preserve" font-weight="bold">6</text> +<text x="244.0 256.0 268.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="319.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, [rip + 0xe61]</text> +<text x="104.0 116.0 128.0 140.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a3</text> +<text x="244.0 256.0 268.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="343.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, esi</text> +<text x="104.0 116.0 128.0 140.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a5</text> +<text x="244.0 256.0 268.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0" y="367.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">al, sil</text> +<rect x="66.0" y="373.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a8</text> +<text x="244.0 256.0 268.0 280.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="628.0 640.0 652.0 664.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0 892.0 904.0 916.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">("note", O_RDONLY) = </text> +<text x="928.0" y="391.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">3</text> +<rect x="66.0" y="396.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="396.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,408 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="244.0 256.0 268.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<text x="104.0 116.0 128.0 140.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b0</text> +<text x="222.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> +<text x="244.0 256.0 268.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="439.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">edi, [rbp - 0x38]</text> +<text x="104.0 116.0 128.0 140.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b3</text> +<text x="244.0 256.0 268.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="463.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsi, [rbp - 0x30]</text> +<text x="104.0 116.0 128.0 140.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b7</text> +<text x="244.0 256.0 268.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="487.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x48], rsi</text> +<text x="104.0 116.0 128.0 140.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">bb</text> +<text x="244.0 256.0 268.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0" y="511.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">edx, 0x20</text> +<text x="104.0 116.0 128.0 140.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">c0</text> +<text x="244.0 256.0 268.0 280.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401060</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="535.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">read@plt</text> +<text x="628.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="bold">f</text> +<path d="M646,408 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="653.0" y="407.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<rect x="665.0" y="397.0" width="22.0" height="22.0" fill="#b64f42"/> +<text x="670.0" y="415.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">3</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0" y="247.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">the stack's canary</text> +<rect x="64.0" y="556.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="557.0" width="878.0" height="462.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="563.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="574.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="934.0" y="574.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">18 words · offsets from rbp · the frames they belong to</text> +<text x="80.0 92.0 104.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rsp</text> +<path d="M130,596 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="200.0 212.0 224.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-50</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb0</text> +<path d="M398,596 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="595.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="603.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-48</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cb8</text> +<path d="M398,620 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="619.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="627.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-40</text> +<text x="664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n, high half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc0</text> +<path d="M398,644 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="643.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="651.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-38</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">f, low half</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cc8</text> +<path d="M398,668 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="667.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<rect x="417.0" y="657.0" width="22.0" height="22.0" fill="#b64f42"/> +<text x="422.0" y="675.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">3</text> +<text x="200.0 212.0 224.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-30</text> +<text x="772.0 784.0 796.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd0</text> +<path d="M398,692 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="691.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="699.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-28</text> +<text x="748.0 760.0 772.0 784.0 796.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cd8</text> +<path d="M398,716 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="715.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="723.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-20</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce0</text> +<path d="M398,740 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="739.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="747.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-18</text> +<text x="736.0 748.0 760.0 772.0 784.0 796.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">buf+18</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text> +<path d="M398,764 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="763.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="771.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="200.0 212.0 224.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text> +<path d="M398,788 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="787.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0" y="795.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="212.0 224.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">-8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text> +<path d="M398,812 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="811.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0 566.0 578.0 590.0 602.0 614.0 626.0" y="819.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x4434195f31f30300</text> +<text x="80.0 92.0 104.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rbp</text> +<path d="M130,836 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="212.0 224.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text> +<text x="700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text> +<rect x="398.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="843.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="572.0" y="835.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,836 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="598.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="606.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="614.0" y="838.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="212.0 224.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text> +<rect x="398.0" y="859.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,860 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0" y="867.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text> +<text x="200.0 212.0 224.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d10</text> +<rect x="398.0" y="883.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,884 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="891.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+22c60</text> +<text x="200.0 212.0 224.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d18</text> +<rect x="398.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="572.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M590,908 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="596.0 608.0 620.0 632.0 644.0 656.0 668.0 680.0 692.0 704.0 716.0 728.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefe8</text> +<path d="M746,908 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="753.0" y="907.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="770.0 782.0 794.0" y="915.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">".…</text> +<text x="200.0 212.0 224.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d20</text> +<path d="M398,932 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="405.0" y="931.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0" y="939.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x1f7fbe000</text> +<text x="200.0 212.0 224.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d28</text> +<rect x="398.0" y="955.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,956 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401180</text> +<text x="504.0 516.0 528.0 540.0" y="963.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main</text> +<text x="200.0 212.0 224.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+30</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d30</text> +<rect x="398.0" y="979.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,980 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="987.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed70</text> +<text x="200.0 212.0 224.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+38</text> +<text x="248.0 260.0 272.0 284.0 296.0 308.0 320.0 332.0 344.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="356.0 368.0 380.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d38</text> +<rect x="398.0" y="1003.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M416,1004 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="422.0 434.0 446.0 458.0 470.0 482.0 494.0 506.0 518.0 530.0 542.0 554.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fdf260</text> +<text x="576.0 588.0 600.0 612.0 624.0 636.0 648.0 660.0 672.0 684.0 696.0" y="1011.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+21260</text> +<rect x="929.0" y="587.0" width="2.0" height="282.0" fill="#e8c46a"/> +<rect x="923.0" y="587.0" width="8.0" height="2.0" fill="#e8c46a"/> +<rect x="923.0" y="867.0" width="8.0" height="2.0" fill="#e8c46a"/> +<text x="916.0" y="734.0" font-family="Go Medium" font-size="18" fill="#fff8e8" xml:space="preserve" text-anchor="end">main</text> +<rect x="929.0" y="875.0" width="2.0" height="141.0" fill="#3a4a8a"/> +<rect x="923.0" y="875.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="916.0" y="951.5" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">libc+27781</text> +<rect x="52.5" y="138.0" width="3.0" height="20.0" fill="#e8c46a"/> +<rect x="52.5" y="138.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="155.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="302.0" width="3.0" height="116.0" fill="#e8c46a"/> +<rect x="52.5" y="302.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="415.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="138.0" width="3.0" height="280.0" fill="#e8c46a"/> +<path d="M944.0,408.0 L950.0,408.0 Q956.0,408.0 956.0,414.0 L956.0,665.5 Q956.0,668.0 953.5,668.0 L951.0,668.0" fill="none" stroke="#ff6a4a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M946.0,668.0 L953.0,664.0 L953.0,672.0 Z" fill="#ff6a4a"/> +<text x="1000.0" y="753.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down. </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">opens </tspan></text> +<text x="1000.0" y="807.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">3: </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">file's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">descriptor, </tspan></text> +<text x="1000.0" y="861.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<rect x="984.0" y="344.0" width="812.0" height="188.0" fill="#16245f"/> +<text x="1000.0" y="397.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">'s </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">ret </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">comes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">straight </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">back </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">main: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan></text> +<text x="1000.0" y="451.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">was </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">a </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">jump, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">not </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">a </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">call. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">main </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">keeps </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan></text> +<text x="1000.0" y="505.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">answer </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">f</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> +<rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> +<rect x="976.0" y="898.0" width="727.0" height="4.0" fill="#e8c46a"/> +<text x="1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 38 of 46</text> +</svg> diff --git a/design/mock/54-column-present.png b/design/mock/54-column-present.png Binary files differnew file mode 100644 index 0000000..e9421e9 --- /dev/null +++ b/design/mock/54-column-present.png diff --git a/design/mock/55-column-graph-480.png b/design/mock/55-column-graph-480.png Binary files differnew file mode 100644 index 0000000..73c390e --- /dev/null +++ b/design/mock/55-column-graph-480.png diff --git a/design/mock/55-column-graph.png b/design/mock/55-column-graph.png Binary files differnew file mode 100644 index 0000000..b94ec45 --- /dev/null +++ b/design/mock/55-column-graph.png diff --git a/design/mock/55-column-graph.svg b/design/mock/55-column-graph.svg new file mode 100644 index 0000000..d266323 --- /dev/null +++ b/design/mock/55-column-graph.svg @@ -0,0 +1,101 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="48.0" width="188.1" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="186.1" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">sort.c</text> +<text x="158.1 170.1 182.1 194.1 206.1 218.1 230.1" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">line 12</text> +<rect x="264.1" y="48.0" width="288.0" height="24.0" fill="#16245f"/> +<rect x="265.1" y="49.0" width="286.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="273.1" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="292.1" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="422.1 434.1 446.1 458.1 470.1 482.1 494.1 506.1 518.1 530.1" y="66.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">jne 4011af</text> +<rect x="564.1" y="48.0" width="133.0" height="24.0" fill="#16245f"/> +<rect x="565.1" y="49.0" width="131.0" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="573.1" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="592.1" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<rect x="709.1" y="48.0" width="100.9" height="24.0" fill="#16245f"/> +<rect x="710.1" y="49.0" width="98.9" height="22.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="718.1" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="737.1" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<rect x="64.0" y="84.0" width="1792.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="85.0" width="1790.0" height="710.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> +<rect x="72.0" y="90.0" width="12.0" height="12.0" fill="#e8c46a"/> +<text x="92.0" y="102.0" font-family="Go Medium" font-size="20" fill="#eee6d2" xml:space="preserve">the blocks of sort</text> +<text x="1846.0" y="102.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">its blocks · the visits so far · the path · the loops' turns</text> +<g transform="translate(80.0,108.0) scale(2.00)"> +<path d="M160.0,158.0 L235.0,158.0" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M242.0,158.0 L234.0,162.0 L234.0,154.0 Z" fill="#9aa6d9"/> +<path d="M294.9,141.8 L295.5,137.3 L296.3,132.8 L297.2,128.4 L298.2,124.0 L299.4,119.6 L300.7,115.3 L302.1,111.0 L303.7,106.8 L305.4,102.6 L307.3,98.4 L309.3,94.4 L311.4,90.4 L313.7,86.5 L316.0,82.6" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M321.2,75.1 L319.8,84.0 L313.3,79.3 Z" fill="#9aa6d9"/> +<path d="M354.3,42.9 L361.9,38.0 L369.8,33.6 L377.9,29.7 L386.3,26.4 L394.8,23.6 L403.6,21.3 L412.4,19.7 L421.4,18.6 L430.4,18.0 L439.4,18.1 L448.4,18.7 L457.3,20.0 L466.1,21.7 L474.8,24.1 L483.4,27.0 L491.7,30.4 L499.8,34.4 L507.6,38.9 L515.1,43.9 L522.3,49.3 L529.1,55.2 L535.5,61.6 L541.5,68.3 L547.0,75.4 L552.1,82.8 L556.7,90.6 L560.8,98.6 L564.3,106.9 L567.4,115.4 L569.8,124.1 L571.7,132.9" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M573.1,141.8 L567.9,134.5 L575.8,133.3 Z" fill="#9aa6d9"/> +<path d="M740.5,174.0 L739.7,177.6 L738.8,181.1 L737.7,184.6 L736.5,188.0 L735.1,191.4 L733.6,194.7 L731.9,197.9 L730.1,201.1 L728.2,204.2 L726.1,207.2 L723.9,210.1 L721.6,212.9 L719.2,215.6 L716.6,218.2" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M711.2,223.0 L714.7,214.8 L719.9,220.8 Z" fill="#9aa6d9"/> +<path d="M606.5,141.8 L607.9,137.8 L609.7,133.9 L611.7,130.2 L614.1,126.6 L616.7,123.2 L619.6,120.1 L622.7,117.1 L626.0,114.5 L629.6,112.1 L633.3,110.0 L637.2,108.2 L641.2,106.7 L645.3,105.5 L649.5,104.7 L653.7,104.2 L658.0,104.0 L662.3,104.2 L666.5,104.7 L670.7,105.5 L674.8,106.7 L678.8,108.2 L682.7,110.0 L686.4,112.1 L690.0,114.5 L693.3,117.1 L696.4,120.1 L699.3,123.2 L701.9,126.6 L704.3,130.2 L706.3,133.9" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M709.5,141.8 L703.1,135.7 L710.6,133.0 Z" fill="#3a4a8a"/> +<path d="M461.2,295.3 A140.0,140.0 0 0 1 442.2,297. L449.2,297.3" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M442.2,297.8 L450.0,293.3 L450.5,301.2 Z" fill="#9aa6d9"/> +<path d="M354.8,273.5 L353.3,272.4 L351.8,271.3 L350.3,270.2 L348.9,269.1 L347.4,268.0 L346.0,266.8 L344.5,265.7 L343.1,264.5 L341.7,263.3 L340.3,262.1 L339.0,260.8 L337.6,259.6" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M332.4,254.3 L340.8,257.3 L335.1,262.9 Z" fill="#9aa6d9"/> +<path d="M309.5,222.0 A140.0,140.0 0 0 1 294.9,174. L295.8,181.1" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M294.9,174.2 L299.9,181.6 L292.0,182.6 Z" fill="#9aa6d9"/> +<path d="M772.0,170.0 L772.0,263.2 A16.0,16.0 0 0 1 756.0,279.2 L563.0,279.2" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M556.0,279.2 L564.0,275.2 L564.0,283.2 Z" fill="#9aa6d9"/> +<path d="M254.0,170.0 L254.0,263.0" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M254.0,270.0 L250.0,262.0 L258.0,262.0 Z" fill="#3a4a8a"/> +<path d="M575.5,142.0 L576.4,138.1 L577.4,134.3 L578.6,130.6 L580.0,126.9 L581.5,123.2 L583.2,119.7 L585.1,116.2 L587.2,112.9 L589.4,109.6 L591.7,106.4 L594.2,103.4 L596.8,100.4 L599.6,97.6 L602.5,95.0" fill="none" stroke="#746235" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M608.6,90.0 L604.7,98.1 L599.9,91.7 Z" fill="#746235"/> +<path d="M707.4,90.0 L710.5,92.4 L713.5,95.0 L716.4,97.6 L719.2,100.4 L721.8,103.4 L724.3,106.4 L726.6,109.6 L728.8,112.9 L730.9,116.2 L732.8,119.7 L734.5,123.2 L736.0,126.9 L737.4,130.6 L738.6,134.3" fill="none" stroke="#ae9350" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M740.5,142.0 L734.8,135.0 L742.7,133.3 Z" fill="#ae9350"/> +<path d="M604.8,223.0 L602.0,220.6 L599.4,218.1 L596.8,215.5 L594.4,212.8 L592.1,210.0 L589.9,207.1 L587.8,204.1 L585.9,201.1 L584.1,197.9 L582.4,194.7 L580.9,191.4 L579.5,188.0 L578.3,184.6 L577.2,181.1" fill="none" stroke="#463b20" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M575.5,174.0 L581.1,181.0 L573.3,182.7 Z" fill="#463b20"/> +<text x="405.4" y="195.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">5</text> +<text x="417.4" y="194.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve"> turns</text> +<text x="629.4" y="195.0" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">5</text> +<text x="641.4" y="194.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve"> turns</text> +<rect x="243.0" y="147.0" width="102.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="254.0 266.0 278.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+12</text> +<text x="310.0 322.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×6</text> +<rect x="284.0" y="48.0" width="102.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="295.0 307.0 319.0" y="66.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+1e</text> +<text x="351.0 363.0" y="66.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×6</text> +<rect x="517.0" y="147.0" width="114.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="528.0 540.0 552.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+24</text> +<text x="584.0 596.0 608.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×11</text> +<rect x="453.0" y="268.2" width="102.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="464.0 476.0 488.0" y="286.4" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+5d</text> +<text x="520.0 532.0" y="286.4" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×5</text> +<rect x="335.1" y="278.6" width="102.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="346.1 358.1 370.1" y="296.8" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+97</text> +<text x="402.1 414.1" y="296.8" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×5</text> +<rect x="268.3" y="227.3" width="102.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="279.3 291.3 303.3" y="245.5" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+99</text> +<text x="335.3 347.3" y="245.5" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×5</text> +<rect x="601.0" y="63.0" width="114.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="612.0 624.0 636.0" y="81.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+2f</text> +<text x="668.0 680.0 692.0" y="81.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×11</text> +<rect x="685.5" y="147.5" width="113.0" height="21.0" rx="10.5" fill="#16245f" stroke="#e8c46a" stroke-width="3"/> +<text x="696.0 708.0 720.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+56</text> +<text x="752.0 764.0 776.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×11</text> +<rect x="598.7" y="228.1" width="162.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="609.7 621.7 633.7" y="246.3" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+5f</text> +<text x="657.7 669.7 681.7 693.7" y="246.3" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">swap</text> +<text x="725.7 737.7" y="246.3" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×5</text> +<rect x="69.0" y="147.0" width="90.0" height="22.0" rx="11.0" fill="#16245f" stroke="#3a4a8a" stroke-width="2"/> +<text x="80.0 92.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">+0</text> +<text x="124.0 136.0" y="165.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">×1</text> +<rect x="215.0" y="271.0" width="78.0" height="22.0" rx="11.0" fill="#0a1030" stroke="#3a4a8a" stroke-width="2"/> +<text x="226.0 238.0 250.0" y="289.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+a7</text> +</g> +<rect x="104.0" y="144.0" width="500.0" height="188.0" fill="#16245f"/> +<text x="120.0" y="197.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">sixth </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pass, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">its </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">third </tspan></text> +<text x="120.0" y="251.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">compare: </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">17 </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">> </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">5</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">so </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">jne </tspan></text> +<text x="120.0" y="305.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">takes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">swap.</tspan></text> +<path d="M574.0,144.0 L574.0,126.0 Q574.0,118.0 582.0,118.0 L1592.0,118.0 Q1600.0,118.0 1600.0,126.0 L1600.0,397.0" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M1600.0,402.0 L1596.0,395.0 L1604.0,395.0 Z" fill="#9aa6d9"/> +<rect x="64.0" y="899.0" width="1792.0" height="2.0" fill="#3a4a8a"/> +<rect x="64.0" y="898.0" width="408.3" height="4.0" fill="#e8c46a"/> +<text x="1640.0 1652.0 1664.0 1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 434 of 1905</text> +</svg> diff --git a/design/mock/56-carry.png b/design/mock/56-carry.png Binary files differnew file mode 100644 index 0000000..12a77c0 --- /dev/null +++ b/design/mock/56-carry.png diff --git a/design/mock/column.py b/design/mock/column.py new file mode 100644 index 0000000..de00e6f --- /dev/null +++ b/design/mock/column.py @@ -0,0 +1,640 @@ +#!/usr/bin/env python3 +"""The column: a second way to compose a scene (an experiment). The panes a beat is about in one column, the +narration as bubbles in the other, each level with what it speaks of; the panes the beat leaves out folded to +their tags on a shelf. + + python3 -B column.py # 49 to 53: five beats of `open` followed down; 54: the present frame and the column + # at one instant; 55: a wide subject, sort's rings, its bubble set on the drawing + +The data: anim/tools/hello.c built as the syscalls scene builds it (clang -O0 -g -no-pie -fstack-protector-strong +-Wl,-z,now), `env -i setarch -R ztrace record --by insn --from main --steps 132 --stack 1024 --around 256 +--disasm 69 -s 64`: moments 37 (main at its call), 38 (in the stub), 61 to 65 (libc's open, its last three and the +syscall), 73 to 76 (leave, ret, back in main, f stored); the stack's words past the eight `ztrace show` prints from +`ztrace dbg` at the same places (`x`), the canary the recording's; libc's rows from `objdump -d` of the machine's +libc.so.6 (open at 110ec0). 55 is mock 25's stop (frame.py, graph.py). +""" +import subprocess + +from PIL import Image, ImageDraw, ImageFont + +import gen +import context as C +import map as M +import frame as F +import graph as G +import touch as T +from context import (PAGE, RAISED, RULE, VELLUM, BRIGHT, DIM, FAINT, GOLD, HEAP, STACK, CODE, DATA, A, S, ROW, TAG, + MONO, BOLD, b, ph, mix, Svg, tw) + +HERE = gen.HERE +READ, VERM = gen.READ, gen.VERM +R_ = VELLUM +SRC = open(HERE + "/../../anim/tools/hello.c").read().split("\n") +L = 0x7ffff7c00000 +CANARY = 0x4434195f31f30300 + +# ---- the program -------------------------------------------------------------------------------------------- +MAIN = [(0x401180, 4, "push", "rbp"), (0x401181, 4, "mov", "rbp, rsp"), (0x401184, 4, "sub", "rsp, 0x50"), + (0x401188, 4, "mov", "rax, qword ptr fs:[0x28]"), (0x401191, 4, "mov", "qword ptr [rbp - 8], rax"), + (0x401195, 4, "mov", "dword ptr [rbp - 0x34], 0"), (0x40119c, 6, "lea", "rdi, [rip + 0xe61]"), + (0x4011a3, 6, "xor", "esi, esi"), (0x4011a5, 6, "mov", "al, sil"), (0x4011a8, 6, "call", (0x401070, "open@plt")), + (0x4011ad, 6, "mov", "dword ptr [rbp - 0x38], eax"), (0x4011b0, 7, "mov", "edi, dword ptr [rbp - 0x38]"), + (0x4011b3, 7, "lea", "rsi, [rbp - 0x30]"), (0x4011b7, 7, "mov", "qword ptr [rbp - 0x48], rsi"), + (0x4011bb, 7, "mov", "edx, 0x20"), (0x4011c0, 7, "call", (0x401060, "read@plt")), + (0x4011c5, 7, "mov", "dword ptr [rbp - 0x3c], eax"), (0x4011c8, 8, "mov", "edi, dword ptr [rbp - 0x38]"), + (0x4011cb, 8, "call", (0x401050, "close@plt"))] +STUB = [(0x401070, None, "jmp", "qword ptr [rip + 0x2f62]"), (0x401076, None, "push", "4"), + (0x40107b, None, "jmp", 0x401020)] +OPEN = [(L + o, None, mn, ops) for o, mn, ops in [ + (0x110ec0, "endbr64", ""), (0x110ec4, "push", "rbp"), (0x110ec5, "mov", "rbp, rsp"), (0x110ec8, "sub", "rsp, 0x70"), + (0x110ecc, "mov", "qword ptr [rbp - 0x30], rdx"), (0x110ed0, "mov", "rax, qword ptr fs:[0x28]"), + (0x110ed9, "mov", "qword ptr [rbp - 0x48], rax"), (0x110edd, "xor", "eax, eax"), (0x110edf, "test", "sil, 0x40"), + (0x110ee3, "jne", L + 0x110f90), (0x110ee9, "mov", "eax, esi"), (0x110eeb, "xor", "r10d, r10d"), + (0x110eee, "not", "eax"), (0x110ef0, "test", "eax, 0x410000"), (0x110ef5, "je", L + 0x110f90), + (0x110efb, "mov", "r11, qword ptr fs:[0x10]"), (0x110f04, "movsxd", "rdx, esi"), + (0x110f07, "mov", "eax, dword ptr [r11 + 0x308]"), (0x110f0e, "cmp", "byte ptr [rip + 0x11018b], 0"), + (0x110f15, "jne", L + 0x110fb0), (0x110fb0, "mov", "rsi, rdi"), (0x110fb3, "xor", "r9d, r9d"), + (0x110fb6, "xor", "r8d, r8d"), (0x110fb9, "mov", "rdi, 0xffffffffffffff9c"), (0x110fc0, "mov", "eax, 0x101"), + (0x110fc5, "syscall", ""), (0x110fc7, "mov", "rdx, rax"), (0x110fca, "cmp", "rax, -0x1000"), + (0x110fd0, "ja", L + 0x110fe8), (0x110fd2, "mov", "eax, edx"), (0x110fd4, "mov", "rdx, qword ptr [rbp - 0x48]"), + (0x110fd8, "sub", "rdx, qword ptr fs:[0x28]"), (0x110fe1, "jne", L + 0x110fec), (0x110fe3, "leave", ""), + (0x110fe4, "ret", "")]] + + +def rows_of(table, lo, hi, states, notes): + out = [] + for a, ln, mn, ops in table: + if lo <= a <= hi: + parts = [(ops, CODE)] if isinstance(ops, tuple) else ([(ops, CODE)] if isinstance(ops, int) else + ([(ops, VELLUM)] if ops else [])) + out.append((a, ln, mn, parts, states.get(a), notes.get(a))) + return out + + +# ---- the registers and the stack --------------------------------------------------------------------------- +QUIET = ("rbx", "r12", "r13", "r14", "r15") # the scene moves the other twelve +FIXED = {"rbx": 0, "r12": 0x7fffffffee38, "r13": 1, "r14": 0x7ffff7ffd000, "r15": 0x403da8} +REGS = { # rax rcx rdx rsi rdi rbp rsp r8 r9 r10 r11, rip + 37: (CANARY, 0x403da8, 0x7fffffffee48, 0, 0x402004, 0x7fffffffed00, 0x7fffffffecb0, 0x7ffff7e19680, 0x7ffff7e1afa0, + 0x7fffffffea60, 0x7ffff7ffca90), + 38: (CANARY, 0x403da8, 0x7fffffffee48, 0, 0x402004, 0x7fffffffed00, 0x7fffffffeca8, 0x7ffff7e19680, 0x7ffff7e1afa0, + 0x7fffffffea60, 0x7ffff7ffca90), + 64: (0x101, 0x403da8, 0, 0x402004, (1 << 64) - 100, 0x7fffffffeca0, 0x7fffffffec30, 0, 0, 0, 0x7ffff7f70740), + 65: (3, L + 0x110fc7, 0, 0x402004, (1 << 64) - 100, 0x7fffffffeca0, 0x7fffffffec30, 0, 0, 0, 0x346), + 75: (3, L + 0x110fc7, 0, 0x402004, (1 << 64) - 100, 0x7fffffffed00, 0x7fffffffecb0, 0, 0, 0, 0x346), +} +NAMES = ("rax", "rcx", "rdx", "rsi", "rdi", "rbp", "rsp", "r8", "r9", "r10", "r11") +MEM = {0x7fffffffecf8: CANARY, 0x7fffffffed00: 0x7fffffffedb0, 0x7fffffffed08: L + 0x27781, + 0x7fffffffed10: 0x7ffff7fe0c60, 0x7fffffffed18: 0x7fffffffee38, 0x7fffffffed20: 0x1f7fbe000, + 0x7fffffffed28: 0x401180, 0x7fffffffed30: 0x7fffffffed70, 0x7fffffffed38: 0x7ffff7fdf260, + 0x7fffffffed40: 0, 0x7fffffffed48: 0xb95794861e82af9d, 0x7fffffffed50: 0x7fffffffee38, 0x7fffffffed58: 1, + 0x7fffffffedb0: 0x7fffffffee10, 0x7fffffffee10: 0, 0x7fffffffee38: 0x7fffffffefe8, 0x7fffffffee48: 0, + 0x7ffff7e19680: 0x7ffff7e1afa0, 0x7ffff7e1afa0: 0, 0x7fffffffea60: 0, 0x7ffff7ffd000: 0x7ffff7ffe3c0, + 0x7ffff7ffe3c0: 0, 0x403da8: 0x401140, 0x7ffff7f70740: 0x7ffff7f70740} +for a in range(0x7fffffffec30, 0x7fffffffecf8, 8): + MEM.setdefault(a, 0) +OPEN_FRAME = {0x7fffffffec30: 6, 0x7fffffffec58: CANARY, 0x7fffffffec68: 0x7ffff7fbc000, + 0x7fffffffec70: 0x7fffffffee48, 0x7fffffffeca0: 0x7fffffffed00, 0x7fffffffeca8: 0x4011ad} +STRINGS = {0x7fffffffefe8: "./hello", 0x402004: "note"} + + +def region(v): + for lo, hi, ink in [(0x7ffffffde000, 0x7ffffffff000, STACK), (0x405000, 0x426000, HEAP), (0x401000, 0x402000, CODE), + (0x402000, 0x403000, R_), (0x403000, 0x405000, DATA), (L + 0x24000, L + 0x19f000, CODE), + (L + 0x215000, L + 0x223000, DATA), (0x7ffff7f70000, 0x7ffff7f75000, DATA), + (0x7ffff7fbc000, 0x7ffff7fbe000, CODE), (0x7ffff7fbf000, 0x7ffff7fec000, CODE), + (0x7ffff7ffb000, 0x7ffff7fff000, DATA)]: + if lo <= v < hi: + return ink + return None + + +SYMS = {0x401020: "_init+32", 0x401060: "read@plt", 0x401070: "open@plt", 0x401140: "__do_global_dtors_aux", + 0x401180: "main"} + + +def name(v): + if L <= v < L + 0x223000: + return "libc+%x" % (v - L) if not (L + 0x110ec0 <= v < L + 0x110ff0) else "open+%d" % (v - L - 0x110ec0) + if 0x7ffff7fbc000 <= v < 0x7ffff7fbe000: + return "vdso+%x" % (v - 0x7ffff7fbc000) + if 0x7ffff7fbe000 <= v < 0x7ffff7fff000: + return "ld.so+%x" % (v - 0x7ffff7fbe000) + f = max(a for a in SYMS if a <= v) + return SYMS[f] if f == v else "%s+%d" % (SYMS[f].split("+")[0], v - f) + + +def follow(v, m): + links = [] + while True: + ink = region(v) + if ink is None: + return links, ("int", v) + if ink == CODE: + return links + [(v, CODE, name(v))], None + links.append((v, ink)) + if v in STRINGS: + return links, ("str", STRINGS[v]) + if v not in m or len(links) > 4: + return links, None + w = m[v] + if w == v: # a word that points at itself: the chain goes on, and says so + return links + [(w, ink)], None + if region(w): + v = w + continue + return links, ("int", w) + + +def mem(k): + m = dict(MEM) + if k >= 38: + m[0x7fffffffeca8] = 0x4011ad + if 40 <= k < 75: + m.update(OPEN_FRAME) + if k >= 76: + m[0x7fffffffecc8] = 3 + return m + + +def regs(k, pc): + m = mem(k) + vals = dict(FIXED, **dict(zip(NAMES, REGS[k]))) + out = [] + for r in ("rax", "rbx", "rcx", "rdx", "rsi", "rdi", "rbp", "rsp", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"): + v = vals[r] + links, end = follow(v, m) if region(v) else ([], ("int", v)) + out.append((r, links, end)) + out.append(("rip", [(pc, CODE, name(pc))], None)) + return out + + +FLAGS = [("CF", 0, 0), ("PF", 1, 0), ("AF", 0, 0), ("ZF", 1, 0), ("SF", 0, 0), ("IF", 1, 0), ("DF", 0, 0), ("OF", 0, 0)] +ROLES = {0x7fffffffecc0: "n, high half", 0x7fffffffecc8: "f, low half", 0x7fffffffecd0: "buf", 0x7fffffffecd8: "buf+8", + 0x7fffffffece0: "buf+10", 0x7fffffffece8: "buf+18", 0x7fffffffed00: "saved rbp", 0x7fffffffeca0: "saved rbp"} + + +def stack_rows(k, top, n, rsp, rbp, marks=None): + m = mem(k) + rows = [] + for i in range(n): + a = top + 8 * i + pins = [r for r, v in (("rbp", rbp), ("rsp", rsp)) if v == a] + w = m.get(a, 0) + links, end = follow(w, m) if region(w) else ([], ("int", w)) + mk = (marks or {}).get(a) + if mk and 1 in mk and not links: # a number written: the mark is on the value the chain ends in + mk = dict(mk) + mk["end"] = mk.pop(1) + rows.append((a, pins, links, end, mk) if mk else (a, pins, links, end)) + return rows + + +def frames(top, n, newest): + ends = newest + [("main", 0x7fffffffed08), ("libc+27781", 0x7fffffffed98)] + out, first = [], top + for nm, last in ends: + out.append((nm, (first - top) // 8, (last - top) // 8)) + first = last + 8 + return out + + +# ---- the column's blocks: the shelf, a bubble ------------------------------------------------------------ +PX, TX, TW = 64, 976, 880 # the panes' column, the text column +SHELF_Y = 48 + + +def shelf(g, tags): + """The panes a beat leaves out, folded to their tags, side by side in the frame's order. tags: (title, note runs) + where a run is (text, ink) or (text, "struck").""" + x = PX + for title, runs in tags: + w = 28 + tw(title, 20, "sansm") + 14 + sum(len(s_) * A if ink in ("struck", "mono") else tw(s_, 18, "sans") + for s_, ink in runs) + 10 + g.rect(x, SHELF_Y, w, TAG, RAISED) + g.frame(x, SHELF_Y, w, TAG, RULE, 2) + g.frame(x + 8, SHELF_Y + 6, 12, 12, FAINT, 2) + g.t(x + 28, SHELF_Y + 18, title, 20, DIM, "sansm") + xx = x + 28 + tw(title, 20, "sansm") + 14 + for s_, ink in runs: + if ink == "struck": + g.rect(xx - 4, SHELF_Y + 2, len(s_) * A + 8, 20, C.SOFT) + g.t(xx, SHELF_Y + 18, s_, 20, BRIGHT, BOLD) + xx += len(s_) * A + elif ink == "mono": + g.t(xx, SHELF_Y + 18, s_, 20, VELLUM, MONO) + xx += len(s_) * A + else: + g.t(xx, SHELF_Y + 18, s_, 18, ink, "sans") + xx += tw(s_, 18, "sans") + x += w + 12 + return SHELF_Y + TAG + 12 + + +BW = 812 # a bubble's measure: 40 characters of Go 40, and its paper's padding + + +def wrap(parts, width=BW - 32): + """Lines of words (text, font, a space after) laid in Go 40 / mono 35 within width.""" + stream = [(ch, font) for text, font in parts for ch in text] + words, cur = [], None + for i, (ch, font) in enumerate(stream): + if ch == " ": + if cur: + words.append((cur[0], cur[1], True)) + cur = None + continue + if cur and cur[1] != font: + words.append((cur[0], cur[1], False)) + cur = None + cur = (cur[0] + ch, font) if cur else (ch, font) + if cur: + words.append((cur[0], cur[1], False)) + lines, line, x = [], [], 0 + for word, font, sp in words: + w = len(word) * 21 if font == "mono" else tw(word, 40, "sans") + if x + w > width and line: + lines.append(line) + line, x = [], 0 + line.append((word, font, sp)) + x += w + (tw(" ", 40, "sans") if sp else 0) + lines.append(line) + return lines + + +def bubble(g, top, lines, newest, stem=None): + """A bubble: lines of runs, Go 40 on 54, code mono 35; the newest on raised paper, primary; an older one bare + and dim. stem: the y of the row it points at, on the panes' right rule (drawn in the rest before a step).""" + h = len(lines) * 54 + 26 + if newest: + g.rect(TX + 8, top, BW, h, RAISED) + ink = VELLUM if newest else DIM + y = top + 13 + 40 + for runs in lines: + x = TX + 8 + 16 + parts = [] + for word, font, sp in runs: + parts.append((word + (" " if sp else ""), ink, "mono" if font == "mono" else "sans")) + g.rich(x, y, parts, 40) + y += 54 + if stem is not None: # from the bubble's first line, across the gutter, onto the pane's rule + yb = top + 13 + 27 + pts = [(TX + 8, yb), (TX - 14, yb), (TX - 14, stem + 12), (PX + 880 + 1, stem + 12)] + if abs(yb - stem - 12) < 2: # level: straight across + pts = [(TX + 8, stem + 12), (PX + 880 + 1, stem + 12)] + gen.arrow(g, pts, DIM, 2, r=6, hl=7, hw=8) + return h + + +def place_bubbles(levels, heights, floor=888, ceil=48): + """Each bubble's top: the newest (last) with its first line's centre on its level; an older one at its own + unless that overlaps one placed after it, then just above that one, or just below it where there is no room.""" + n = len(levels) + tops = [None] * n + tops[-1] = min(max(levels[-1] - 40, ceil), floor - heights[-1]) + for j in range(n - 2, -1, -1): + t = min(max(levels[j] - 40, ceil), floor - heights[j]) + for k in range(j + 1, n): + if t < tops[k] + heights[k] + 12 and t + heights[j] + 12 > tops[k]: + t = tops[k] - heights[j] - 12 + if t < ceil: + t = tops[k] + heights[k] + 12 + tops[j] = t + return tops + + +def column_clock(g, moment, total): + g.rect(TX, 899, 880, 2, RULE) + g.rect(TX, 898, 880 * moment / total, 4, GOLD) + g.t(1856, 934, "moment %d of %d" % (moment, total), S, FAINT, MONO, "end") + + +def say(g, bubbles): + """bubbles: (level, parts, stem) oldest first; the last is the newest.""" + ls = [wrap(p) for _, p, _ in bubbles] + hs = [len(l) * 54 + 26 for l in ls] + tops = place_bubbles([lv for lv, _, _ in bubbles], hs) + for i, ((lv, p, stem), lines, top) in enumerate(zip(bubbles, ls, tops)): + bubble(g, top, lines, i == len(bubbles) - 1, stem) + + +# ---- the beats ------------------------------------------------------------------------------------------------ +def src_panel(g, y, n, first, cur, waiting=None): + C.LX = PX + return C.source(g, y, n, SRC, first, cur, [], "hello.c", 11, waiting=waiting) + + +def stack_panel(g, y, n, k, top, rsp, rbp, marks, newest, base=None): + """base: what the offsets count from, the newest frame's (rsp at a function's entry, rbp in its body).""" + C.RX = PX + roles = {i: (r, VELLUM if r not in ("saved rbp",) else DIM) for i in range(n) for r in [ROLES.get(top + 8 * i)] if r} + base = base or ("rbp", rbp) + return C.stack(g, y, stack_rows(k, top, n, rsp, rbp, marks), frames(top, n, newest), + note="%d words · offsets from %s" % (n, base[0]), rsp=base[1], roles=roles) + + +ARGS = {0x40119c: [("text", "rdi ", DIM), ("addr", 0x402004, R_), ("text", ' "note"', gen.LIT)], + 0x4011a3: [("text", "rsi ", DIM), ("int", 0)], 0x4011a5: [("text", "al ", DIM), ("int", 0)]} +CALL_C = [("text", "open", BRIGHT), ("text", '("note", O_RDONLY)', VELLUM)] + + +def beat_call(g): + """The call (37 to 38), mid-step: the return address struck, the touch down the gutter to it.""" + M.stage(False) + y = shelf(g, [("system calls", [("none yet", FAINT)]), ("its bytes", [("no call crossing", FAINT)]), + ("registers", [("rsp ", "mono"), ("7fffffffeca8", "struck")])]) + M.strip(False) + ys = src_panel(g, y, 3, 5, 6) + yd = y + ph(3) + 12 + rows = rows_of(MAIN, 0x401184, 0x4011b7, {0x40119c: "trail2", 0x4011a3: "trail1", 0x4011a5: "trail0", 0x4011a8: "cur"}, {}) + C.LX = PX + at = C.disasm(g, yd, rows, "main", 6) + for a, p in list(ARGS.items()) + [(0x4011a8, CALL_C)]: + T.note(g, PX + C.DX_NOTE, at[a], p) + ys_ = yd + ph(len(rows)) + 12 + n = (1032 - ys_ - 32) // ROW + sy = stack_panel(g, ys_, n, 38, 0x7fffffffeca8, 0x7fffffffeca8, 0x7fffffffed00, {0x7fffffffeca8: {1: "strike"}}, + [("open@plt", 0x7fffffffeca8)], base=("rsp", 0x7fffffffeca8)) + M.strip(False) + C.LX = PX + C.thread(g, ys, [(at[0x40119c], at[0x4011a8] + ROW)]) + # the touch, in the column: out of the call row's right rule, down the gutter, onto the stack's rule at its word + gen.arrow(g, [(944, at[0x4011a8] + 12), (956, at[0x4011a8] + 12), (956, sy[0] + 12), (946, sy[0] + 12)], VERM, 2, + r=6, hl=7, hw=8) + say(g, [(at[0x40119c] + 12, [("main puts open's arguments where the convention says: ", "sans"), ('"note"', "mono"), + (" in ", "sans"), ("rdi", "mono"), (", 0 (O_RDONLY) in ", "sans"), ("rsi", "mono"), + (".", "sans")], None), + (at[0x4011a8] + 12, [("The call pushes where to come back to, ", "sans"), ("main+45", "mono"), + (", and goes down to open's stub.", "sans")], None)]) + column_clock(g, 7, 46) + + +def descent_windows(main_lo, main_hi, main_states, main_notes, stub_rows, open_rows, kernel=None): + w = [("main", None, rows_of(MAIN, main_lo, main_hi, main_states, main_notes))] + if stub_rows: + w.append(("open@plt", "the PLT · its jmp reads open@got, 403fd8", stub_rows)) + if open_rows: + w.append(("open", "libc.so.6 · no source here", open_rows)) + if kernel: + w.append(("kernel", "openat, system call 257", kernel)) + return w + + +def beat_stub(g): + """In the stub (38), the rest before its jmp's step: the bubble's stem on the jmp row; the stack kept under the + descent, the return address on its top, since what the jmp does not do there is the point.""" + M.stage(False) + y = shelf(g, [("system calls", [("none yet", FAINT)]), ("its bytes", [("no call crossing", FAINT)]), + ("registers", [])]) + M.strip(False) + ys = src_panel(g, y, 3, 5, 6, waiting="main waits at line 6 · the pc is in the PLT") + yd = y + ph(3) + 12 + stub = rows_of(STUB, 0x401070, 0x40107b, {0x401070: "cur"}, + {0x401070: [("", "arrow"), (L + 0x110ec0, CODE), (" open", VELLUM)], + 0x401076: ("text", "lazy binding: unused", FAINT)}) + stub = [r[:5] + ((("runs", r[5]),) if isinstance(r[5], list) else (r[5],)) for r in stub] + win = descent_windows(0x401188, 0x4011ad, {0x40119c: "trail2", 0x4011a3: "trail1", 0x4011a5: "trail0", + 0x4011a8: "wait"}, + {0x4011a8: ("runs", [("open", BRIGHT), ('("note", O_RDONLY)', VELLUM)])}, stub, None) + C.LX = PX + at = C.descent(g, yd, win, note="open@plt · hello") + for a, p in ARGS.items(): + T.note(g, PX + C.DX_NOTE, at[a], p) + T.note(g, PX + C.DX_NOTE, at[0x401188], [("text", "the stack's canary", DIM)]) + ys_ = yd + ph(sum(len(w[2]) for w in win) + len(win) - 1) + 12 + n = (1032 - ys_ - 32) // ROW + stack_panel(g, ys_, n, 38, 0x7fffffffeca8, 0x7fffffffeca8, 0x7fffffffed00, {0x7fffffffeca8: {1: "tick"}}, + [("open@plt", 0x7fffffffeca8)], base=("rsp", 0x7fffffffeca8)) + C.thread(g, ys, [(at[0x40119c], at[0x4011a8] + ROW)], VELLUM, 2) + say(g, [(at[0x4011a8] + 12, [("The call pushes where to come back to, ", "sans"), ("main+45", "mono"), + (", and goes down to open's stub.", "sans")], None), + (at[0x401070] + 12, [("The stub in the PLT is one jump: it reads ", "sans"), ("open@got", "mono"), + (", where the loader wrote libc's ", "sans"), ("open", "mono"), + (". It pushes nothing.", "sans")], at[0x401070])]) + column_clock(g, 8, 46) + + +def open_rows(lo, hi, states, notes): + return rows_of(OPEN, lo, hi, states, notes) + + +def beat_args(g): + """libc's open, its last three walked (61 to 64): mid-step of `mov eax, 0x101`, the registers unfolded.""" + M.stage(False) + y = shelf(g, [("system calls", [("none yet", FAINT)]), ("its bytes", [('"note" ', "mono"), ("handed in", FAINT)]), + ("stack", [("open's frame, 16 words", FAINT)])]) + M.strip(False) + ys = src_panel(g, y, 2, 5, 6, waiting="main waits at line 6 · the pc is in libc's open") + yd = y + ph(2) + 12 + notes = {L + 0x110fb6: ("runs", [("r8 ", DIM), ("0", VELLUM)]), + L + 0x110fb9: ("runs", [("rdi ", DIM), ("-100", VELLUM), (" AT_FDCWD", FAINT)]), + L + 0x110fc0: ("runs", [("rax ", DIM), ("0x101 ", VELLUM), ("257", FAINT)])} + orow = open_rows(L + 0x110fb3, L + 0x110fc7, {L + 0x110fb3: "trail2", L + 0x110fb6: "trail1", + L + 0x110fb9: "trail0", L + 0x110fc0: "cur"}, notes) + win = descent_windows(0x4011a5, 0x4011ad, {0x4011a8: "wait"}, + {0x4011a8: ("runs", [("open", BRIGHT), ('("note", O_RDONLY)', VELLUM)])}, + [(0x401070, None, "jmp", [("qword ptr [rip + 0x2f62]", VELLUM)], "pass", + ("runs", [("", "arrow"), (L + 0x110ec0, CODE), (" open", VELLUM)]))], orow) + C.LX = PX + at = C.descent(g, yd, win, note="open · libc.so.6") + yr = yd + ph(sum(len(w[2]) for w in win) + len(win) - 1) + 12 + C.RX = PX + C.registers(g, yr, regs(64, L + 0x110fc0), FLAGS, {"rax": {0: "strike"}, "rdi": {0: "tick"}, "r8": {0: "tick"}, + "rsi": {0: "tick"}}, QUIET) + M.strip(False) + C.thread(g, ys, [(at[0x4011a8], at[0x4011a8] + ROW)], VELLUM, 2) + say(g, [(at["open@plt"] + 12, [("The stub in the PLT is one jump. It reads ", "sans"), ("open@got", "mono"), + (", where the loader wrote libc's ", "sans"), ("open", "mono"), (".", "sans")], None), + (at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments: AT_FDCWD in ", "sans"), ("rdi", "mono"), + (", and 257, openat's number, in ", "sans"), ("rax", "mono"), (".", "sans")], None)]) + column_clock(g, 31, 46) + + +KERNEL = [[("openat(AT_FDCWD, \"note\", O_RDONLY, 0)", PAGE)], + [("returns ", gen.KERNEL_DIM), ("3", "struck"), (' "note"', PAGE), (" rcx, r11: clobbered", gen.KERNEL_DIM)]] + + +def crossing_windows(): + orow = open_rows(L + 0x110f0e, L + 0x110fd4, {L + 0x110fb6: "trail2", L + 0x110fb9: "trail1", + L + 0x110fc0: "trail0", L + 0x110fc5: "cur"}, + {L + 0x110f15: ("runs", [("taken", VELLUM), (" · reads ", FAINT), ("zf", DIM)]), + L + 0x110fb6: ("runs", [("r8 ", DIM), ("0", VELLUM)]), + L + 0x110fb9: ("runs", [("rdi ", DIM), ("-100", VELLUM), (" AT_FDCWD", FAINT)]), + L + 0x110fc0: ("runs", [("rax ", DIM), ("0x101 ", VELLUM), ("257", FAINT)]), + L + 0x110fc5: ("runs", [("openat", BRIGHT), (" nr 257", FAINT)])}) + return descent_windows(0x40119c, 0x4011ad, {0x4011a8: "wait"}, + {0x4011a8: ("runs", [("open", BRIGHT), ('("note", O_RDONLY)', VELLUM)])}, + [(0x401070, None, "jmp", [("qword ptr [rip + 0x2f62]", VELLUM)], "pass", + ("runs", [("", "arrow"), (L + 0x110ec0, CODE), (" open", VELLUM)]))], orow, KERNEL) + + +def beat_cross(g, bubbles=True): + """The crossing (64 to 65), mid-step: the kernel answered, rax struck (on the registers' tag), the log's row in.""" + M.stage(False) + y = shelf(g, [("system calls", [("openat(…) = 3", "mono")]), ("its bytes", [('"note"', "mono")]), + ("registers", [("rax ", "mono"), ("3", "struck"), (" rcx r11", "mono")]), ("stack", [])]) + M.strip(False) + ys = src_panel(g, y, 3, 5, 6, waiting="main waits at line 6 · the pc is in libc's open") + yd = y + ph(3) + 12 + win = crossing_windows() + C.LX = PX + at = C.descent(g, yd, win, note="open · libc.so.6 · the kernel") + M.strip(False) + C.thread(g, ys, [(at[0x4011a8], at[0x4011a8] + ROW)], VELLUM, 2) + if bubbles: + say(g, [(at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments: AT_FDCWD in ", "sans"), + ("rdi", "mono"), (", and 257, openat's number, in ", "sans"), ("rax", "mono"), + (".", "sans")], None), + (at["kernel"] + 12, [("syscall", "mono"), (" crosses down. The kernel opens ", "sans"), ('"note"', "mono"), + (" and answers 3: the file's descriptor, in ", "sans"), ("rax", "mono"), + (".", "sans")], None)]) + column_clock(g, 35, 46) + return at + + +def beat_back(g): + """Back up (74 to 75, then the store at 76): main's window whole again, the call ran, f stored; the stack's + frame of open gone.""" + M.stage(False) + y = shelf(g, [("system calls", [("openat(…) = 3", "mono")]), ("its bytes", []), ("registers", [("rax 3", "mono")])]) + M.strip(False) + ys = src_panel(g, y, 3, 5, 6) + yd = y + ph(3) + 12 + rows = rows_of(MAIN, 0x401188, 0x4011c0, {0x4011a8: "trail1", 0x4011ad: "cur"}, + {0x4011a8: ("runs", [("open", VELLUM), ('("note", O_RDONLY) = ', DIM), ("3", VELLUM)])}) + C.LX = PX + at = C.disasm(g, yd, rows, "main", 6) + T.note(g, PX + C.DX_NOTE, at[0x4011ad], [("name", "f", STACK), ("holds",), ("int", 3, "strike")]) + T.note(g, PX + C.DX_NOTE, at[0x401188], [("text", "the stack's canary", DIM)]) + ys_ = yd + ph(len(rows)) + 12 + n = (1032 - ys_ - 32) // ROW + sy = stack_panel(g, ys_, n, 76, 0x7fffffffecb0, 0x7fffffffecb0, 0x7fffffffed00, {0x7fffffffecc8: {1: "strike"}}, + []) + M.strip(False) + C.thread(g, ys, [(at[0x40119c], at[0x4011ad] + ROW)]) + gen.arrow(g, [(944, at[0x4011ad] + 12), (956, at[0x4011ad] + 12), (956, sy[3] + 12), (946, sy[3] + 12)], VERM, 2, + r=6, hl=7, hw=8) + say(g, [(at[0x4011ad] + 12 + 400, [("syscall", "mono"), (" crosses down. The kernel opens ", "sans"), ('"note"', "mono"), + (" and answers 3: the file's descriptor, in ", "sans"), ("rax", "mono"), + (".", "sans")], None), + (at[0x4011a8] + 12, [("open", "mono"), ("'s ", "sans"), ("ret", "mono"), + (" comes straight back to main: the stub was a jump, not a call. main keeps the answer in ", + "sans"), ("f", "mono"), (".", "sans")], None)]) + column_clock(g, 38, 46) + + +# ---- 54: the present frame and the column at one instant --------------------------------------------------- +def present_cross(g): + """The crossing in the frame as the scene has it now: `beside`, the log over the program, the descent 17 rows.""" + M.stage(False) + M.strip(False) + C.LX, C.RX = 64, 976 + ys = C.source(g, 212, 8, SRC, 3, 6, [], "hello.c", 11, waiting="main waits at line 6 · the pc is in libc's open") + orow = open_rows(L + 0x110fb3, L + 0x110fd0, {L + 0x110fb6: "trail2", L + 0x110fb9: "trail1", + L + 0x110fc0: "trail0", L + 0x110fc5: "cur"}, + {L + 0x110fb6: ("runs", [("r8 ", DIM), ("0", VELLUM)]), + L + 0x110fb9: ("runs", [("rdi ", DIM), ("-100", VELLUM), (" AT_FDCWD", FAINT)]), + L + 0x110fc0: ("runs", [("rax ", DIM), ("0x101 ", VELLUM), ("257", FAINT)]), + L + 0x110fc5: ("runs", [("openat", BRIGHT), (" nr 257", FAINT)])}) + win = descent_windows(0x4011a5, 0x4011ad, {0x4011a8: "wait"}, + {0x4011a8: ("runs", [("open", BRIGHT), ('("note", O_RDONLY)', VELLUM)])}, + [(0x401070, None, "jmp", [("qword ptr [rip + 0x2f62]", VELLUM)], "pass", + ("runs", [("", "arrow"), (L + 0x110ec0, CODE), (" open", VELLUM)]))], orow, KERNEL) + at = C.descent(g, 448, win, note="open · libc.so.6 · the kernel") + M.strip(False) + C.thread(g, ys, [(at[0x4011a8], at[0x4011a8] + ROW)], VELLUM, 2) + C.RX = 976 + C.registers(g, 212, regs(65, L + 0x110fc5), FLAGS, {"rax": {0: "strike"}, "rcx": {0: "strike"}, + "r11": {0: "strike"}}, QUIET) + M.strip(False) + C.RX = 976 + roles = {i: (r, DIM) for i in range(11) for r in [ROLES.get(0x7fffffffec30 + 8 * i)] if r} + C.stack(g, 592, stack_rows(65, 0x7fffffffec30, 11, 0x7fffffffec30, 0x7fffffffeca0), + [("open", 0, 15)], note="eleven words · offsets from rbp", rsp=0x7fffffffeca0, roles=roles) + M.strip(False) + C.LX = 64 + C.calls_log(g, 48, 152, [[("openat", VELLUM), (" dirfd ", DIM), ("AT_FDCWD", VELLUM), (" path ", DIM), + ('"note"', gen.LIT), (" flags ", DIM), ("O_RDONLY", VELLUM), (" = ", DIM), ("3", "held")]]) + C.RX = 976 + C.fields(g, 48, 152, "the path openat was handed", 0x402000, 16, [(4, 5, "text", False, None)], + {0x402004 + i: c for i, c in enumerate(b"note\0")} | {0x402009 + i: 0 for i in range(7)}, R_, region) + M.clock(g, 35, 46) + gen.caption(g, [[("syscall", "mono"), (" crosses down. The kernel opens the file", )], + [("and answers in rax: 3, the descriptor.", )]]) + + +def comparison(out): + parts = [] + for nm, draw in (("tmp-present", present_cross), ("tmp-column", beat_cross)): + save(nm, draw) + parts.append(Image.open(HERE + "/" + nm + ".png").convert("RGB")) + for ext in ("svg", "png"): + subprocess.run(["rm", "-f", "%s/%s.%s" % (HERE, nm, ext)], check=True) + head = 76 + s = Image.new("RGB", (1920, 2 * (1080 + head)), "#0a1030") + d = ImageDraw.Draw(s) + labels = [("the present frame", "beside: the log and its bytes over the columns; source 8, the descent 17 rows, " + "registers 14, stack 11; the caption under the stage"), + ("the column", "the panes the crossing is about in one column (source 3, the descent 24 rows), the rest " + "on the shelf; the narration level with what it speaks of")] + for i, (im, (t, sub)) in enumerate(zip(parts, labels)): + y = i * (1080 + head) + d.text((64, y + 18), t, font=T.FONT("Go-Medium", 34), fill="#e8c46a" if i else "#eee6d2") + d.text((64 + d.textlength(t, font=T.FONT("Go-Medium", 34)) + 28, y + 30), sub, font=T.FONT("Go-Regular", 22), + fill="#9aa6d9") + s.paste(im, (0, y + head)) + s.save(HERE + "/" + out) + + +# ---- 55: a wide subject, its bubble on it ----------------------------------------------------------------- +def graph_on(g): + """Sort's rings as the beat's whole subject, a size and a half up, the program and the state on the shelf, the + bubble set in the drawing's free space and tied to the block it speaks of.""" + M.stage(False) + y = shelf(g, [("sort.c", [("line 12", "mono")]), ("disassembly", [("jne 4011af", "mono")]), + ("registers", []), ("stack", [])]) + k = 2.0 + w, h = 880 * k, 344 * k + x0, y0 = (1920 - w) / 2, y + st = G.sort_state(G.UPTO, G.PC, G.TRAIL_ROWS, G.NOTES) + C.tag(g, 64, y0, 1792, h + 24, "the blocks of sort", focus=True, + note="its blocks · the visits so far · the path · the loops' turns") + g.o.append('<g transform="translate(%.1f,%.1f) scale(%.2f)">' % (x0, y0 + 24, k)) + G.rings(g, 0, -24, 880, 344, G.SORT_BL, G.SORT_BASE, st, G.SORT_RINGS, "", tag=False) + g.o.append("</g>") + # the free space: over the left ring, left of its top block; the bubble there, its stem to +56 kept outside rings + lines = wrap([("The sixth pass, its third compare: ", "sans"), ("17 > 5", "mono"), (", so ", "sans"), + ("jne", "mono"), (" takes the swap.", "sans")], 470) + bx, by, bw = 104, y0 + 60, 500 + bh = len(lines) * 54 + 26 + g.rect(bx, by, bw, bh, RAISED) + yy = by + 53 + for runs in lines: + g.rich(bx + 16, yy, [(wd + (" " if sp else ""), VELLUM, "mono" if f == "mono" else "sans") + for wd, f, sp in runs], 40) + yy += 54 + # +56: on the inner ring at its 3 o'clock (graph.py places it); the stem keeps above the rings and outside them + cx, cy, r = x0 + (720 - 64) * k, y0 + 24 + (230 - 48 - 24) * k, 84 * k + tx = cx + r + 40 + gen.arrow(g, [(bx + bw - 30, by), (bx + bw - 30, y0 + 34), (tx, y0 + 34), (tx, cy - 22)], DIM, 2, r=8, hl=7, hw=8) + M.clock(g, 434, 1905) + + +def save(name_, draw, *a, **kw): + gen.W, gen.H = 1920, 1080 + g = Svg() + draw(g, *a, **kw) + g.save(name_) + subprocess.run(["resvg", HERE + "/" + name_ + ".svg", HERE + "/" + name_ + ".png"], check=True) + if not name_.startswith("tmp"): + subprocess.run(["resvg", "-w", "480", HERE + "/" + name_ + ".svg", HERE + "/" + name_ + "-480.png"], check=True) + + +if __name__ == "__main__": + save("49-column-call", beat_call) + save("50-column-stub", beat_stub) + save("51-column-args", beat_args) + save("52-column-cross", beat_cross) + save("53-column-back", beat_back) + comparison("54-column-present.png") + save("55-column-graph", graph_on) diff --git a/design/mock/context.py b/design/mock/context.py index b35abd5..5549d02 100644 --- a/design/mock/context.py +++ b/design/mock/context.py @@ -176,7 +176,12 @@ def more(g, x, y): def integer(g, x, y, v, ink=VELLUM): - """A number that is not an address: one digit as it is; more, hex with 0x and its decimal after, faint.""" + """A number that is not an address: one digit as it is; more, hex with 0x and its decimal after, faint; within + 4096 of 2^64, negative.""" + if v >= (1 << 64) - 4096: + s = "-%d" % ((1 << 64) - v) + g.t(x, b(y), s, S, ink, MONO) + return x + len(s) * A if v < 10: g.t(x, b(y), str(v), S, ink, MONO) return x + A @@ -226,6 +231,10 @@ def chain(g, x, y, links, end, marks=None, room=None, lead=0): x = value_arrow(g, x, y) if links else x if marks.get("end") == "tick": # the value it holds changed within three steps held(g, x + 2, y, len(str(end[1])) * A if end[0] == "int" else 3 * A) + if marks.get("end") == "strike" and end[0] == "int": # the value written: the softened vermilion, bold + s_ = str(end[1]) if end[1] < 10 else "0x%x" % end[1] + g.t(x, b(y), s_, S, struck(g, x - 5, y, len(s_) * A + 10), BOLD) + return where if end[0] == "int": integer(g, x, y, end[1]) else: diff --git a/design/mock/touch.py b/design/mock/touch.py new file mode 100644 index 0000000..0ec34a0 --- /dev/null +++ b/design/mock/touch.py @@ -0,0 +1,883 @@ +#!/usr/bin/env python3 +"""The disassembly and the stack tied: `insn`'s annotation `tied` against `whole`, and the `touch` between them. + + python3 -B touch.py # 44-tied-store, 45-tied-load, 46-tied-call, 47-tied-prologue, 48-tied-ways (.png) + +The data is a recording of anim/tools/list.c built as the scene builds it (clang -O0 -g -no-pie +-fno-stack-protector -Wl,-z,now) with -mno-red-zone in place of the instrumentation's call, which is what gave the +scene's `reverse` its `sub rsp`: `env -i setarch -R ztrace record --by insn --from '*0x40126d' --steps 70 +--stack 1024 --around 256 --disasm 69`, moments 32 (main at `call reverse`) to 37 (`prev = NULL` done) and 56 to +58 (the loop's second turn: `next = cur->next` stored, then `prev` loaded for `cur->next = prev`); the words of +the stack past the eight `ztrace show` prints, and the heap, from `ztrace dbg` at the same call (`x`). The roles +are what the recording's `telescope.slots` gives at these pcs: the locals by the debug info (`next` only inside +the loop's block), the saved rbp by the call frame information, the return address. +Each frame is drawn twice: `whole` (the annotation as the catalogue had it: the address, the chain, the value) +and `tied` (the place's name and the value; the stack counting from the frame's base; the `touch`). +""" +import subprocess + +from PIL import Image, ImageDraw, ImageFont + +import gen +import context as C +import map as M +import frame as F +from context import (PAGE, RAISED, RULE, VELLUM, BRIGHT, DIM, FAINT, GOLD, HEAP, STACK, CODE, DATA, A, S, ROW, TAG, + MONO, BOLD, b, ph, mix, Svg) + +HERE = gen.HERE +READ, VERM = gen.READ, gen.VERM +TOP, FOOT = 48, 888 +SRC = open(HERE + "/../../anim/tools/list.c").read().split("\n") + +# ---- the program ------------------------------------------------------------------------------------------ +SYMS = {0x401050: "_start", 0x401110: "__do_global_dtors_aux", 0x401150: "push", 0x4011a0: "reverse", + 0x401200: "clear", 0x401240: "main"} +DIS = [ # objdump -dl of main and of reverse: address, line, mnemonic, operands as the recording writes them + (0x401240, 37, "push", "rbp"), (0x401241, 37, "mov", "rbp, rsp"), (0x401244, 37, "sub", "rsp, 0x10"), + (0x401248, 37, "mov", "dword ptr [rbp - 4], 0"), (0x40124f, 38, "mov", "edi, 7"), (0x401254, 38, "call", 0x401150), + (0x401259, 39, "mov", "edi, 0xc"), (0x40125e, 39, "call", 0x401150), (0x401263, 40, "mov", "edi, 9"), + (0x401268, 40, "call", 0x401150), (0x40126d, 41, "call", 0x4011a0), (0x401272, 42, "call", 0x401200), + (0x401277, 43, "xor", "eax, eax"), (0x401279, 43, "add", "rsp, 0x10"), (0x40127d, 43, "pop", "rbp"), + (0x40127e, 43, "ret", ""), +] +REV = [ + (0x4011a0, 17, "push", "rbp"), (0x4011a1, 17, "mov", "rbp, rsp"), (0x4011a4, 17, "sub", "rsp, 0x18"), + (0x4011a8, 18, "mov", "qword ptr [rbp - 8], 0"), (0x4011b0, 19, "mov", "rax, qword ptr [rip + 0x2e61]"), + (0x4011b7, 19, "mov", "qword ptr [rbp - 0x10], rax"), (0x4011bb, 20, "cmp", "qword ptr [rbp - 0x10], 0"), + (0x4011c0, 20, "je", 0x4011ec), (0x4011c2, 21, "mov", "rax, qword ptr [rbp - 0x10]"), + (0x4011c6, 21, "mov", "rax, qword ptr [rax + 8]"), (0x4011ca, 21, "mov", "qword ptr [rbp - 0x18], rax"), + (0x4011ce, 22, "mov", "rcx, qword ptr [rbp - 8]"), (0x4011d2, 22, "mov", "rax, qword ptr [rbp - 0x10]"), + (0x4011d6, 22, "mov", "qword ptr [rax + 8], rcx"), (0x4011da, 23, "mov", "rax, qword ptr [rbp - 0x10]"), + (0x4011de, 23, "mov", "qword ptr [rbp - 8], rax"), (0x4011e2, 24, "mov", "rax, qword ptr [rbp - 0x18]"), + (0x4011e6, 24, "mov", "qword ptr [rbp - 0x10], rax"), (0x4011ea, 20, "jmp", 0x4011bb), + (0x4011ec, 26, "mov", "rax, qword ptr [rbp - 8]"), (0x4011f0, 26, "mov", "qword ptr [rip + 0x2e21], rax"), + (0x4011f7, 27, "add", "rsp, 0x18"), (0x4011fb, 27, "pop", "rbp"), (0x4011fc, 27, "ret", ""), +] + + +def region(v): + for lo, hi, ink in [(0x7ffffffde000, 0x7ffffffff000, STACK), (0x405000, 0x426000, HEAP), (0x401000, 0x402000, CODE), + (0x404000, 0x405000, DATA), (0x403000, 0x404000, VELLUM), (0x7ffff7c24000, 0x7ffff7d9f000, CODE), + (0x7ffff7e15000, 0x7ffff7e23000, DATA), (0x7ffff7fbf000, 0x7ffff7fec000, CODE), + (0x7ffff7ffb000, 0x7ffff7fff000, DATA)]: + if lo <= v < hi: + return ink + return None + + +def name(v): + if 0x7ffff7c00000 <= v < 0x7ffff7e23000: + return "libc+%x" % (v - 0x7ffff7c00000) + if 0x7ffff7fbe000 <= v < 0x7ffff7fff000: + return "ld.so+%x" % (v - 0x7ffff7fbe000) + f = max(a for a in SYMS if a <= v) + return "%s+%d" % (SYMS[f], v - f) + + +# ---- memory: the stack and the heap at the call (ztrace dbg's `x`), and what each moment after it wrote ------ +BASE = {0x7fffffffecb0: 0, 0x7fffffffecb8: 0, 0x7fffffffecc0: 0x7fffffffece0, 0x7fffffffecc8: 0x401166, 0x7fffffffecd0: 0x405050, 0x7fffffffecd8: 9, + 0x7fffffffece0: 0x7fffffffed00, 0x7fffffffece8: 0x40126d, 0x7fffffffecf0: 0, 0x7fffffffecf8: 0, + 0x7fffffffed00: 0x7fffffffedb0, 0x7fffffffed08: 0x7ffff7c27781, 0x7fffffffed10: 0x7ffff7fe0c60, + 0x7fffffffed18: 0x7fffffffee38, 0x7fffffffed20: 0x1f7fbe000, 0x7fffffffed28: 0x401240, + 0x7fffffffed30: 0x7fffffffed70, 0x7fffffffed38: 0x7ffff7fdf260, 0x7fffffffed40: 0, + 0x7fffffffed48: 0x3047b20d27c51ddb, 0x7fffffffed50: 0x7fffffffee38, 0x7fffffffed58: 1, + # what the chains lead to (the recording's telescope) + 0x7fffffffedb0: 0x7fffffffee10, 0x7fffffffee10: 0, 0x7fffffffee38: 0x7fffffffefea, + 0x7ffff7e19ac0: 0, 0x7ffff7e19ac8: 0x405060, 0x405060: 0, 0x7ffff7ffd000: 0x7ffff7ffe3c0, 0x7ffff7ffe3c0: 0, + 0x403dc0: 0x401110, 0x404018: 0x405050, + # the heap: three chunks of 32, each a node (value, next), and the top + 0x405000: 0, 0x405008: 0x21, 0x405010: 7, 0x405018: 0, 0x405020: 0, 0x405028: 0x21, 0x405030: 0xc, + 0x405038: 0x405010, 0x405040: 0, 0x405048: 0x21, 0x405050: 9, 0x405058: 0x405030, 0x405068: 0x20fa1} +STRINGS = {0x7fffffffefea: "./list"} +WRITES = {33: {0x7fffffffece8: 0x401272}, 37: {0x7fffffffecd8: 0}, 44: {0x7fffffffecc8: 0x405030}, + 47: {0x405058: 0}, 49: {0x7fffffffecd8: 0x405050}, 51: {0x7fffffffecd0: 0x405030}, + 57: {0x7fffffffecc8: 0x405010}} + + +def mem(k): + m = dict(BASE) + for at in sorted(WRITES): + if at <= k: + m.update(WRITES[at]) + return m + + +def follow(v, m, depth=4): + """A chain from a value: (links, end) as context.chain takes them.""" + links = [] + while True: + ink = region(v) + if ink is None: + return links, ("int", v) + if ink == CODE: + return links + [(v, CODE, name(v))], None + links.append((v, ink)) + if v in STRINGS: + return links[:-1] + [links[-1]], ("str", STRINGS[v]) + if v not in m or len(links) > depth: + return links, None if v not in m else None + w = m[v] + if region(w) and w != v: + v = w + continue + return links, ("int", w) + + +# ---- the registers at each moment (ztrace show) ------------------------------------------------------------- +QUIET = ("rbx", "rdx", "rsi", "rdi", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15") # reverse moves rax rcx +FIXED = {"rbx": 0, "rdx": 0, "rsi": 0x405060, "rdi": 4, "r8": 0x7ffff7e19ac0, "r9": 0x20, "r10": 0x10, + "r11": 0x7ffff7e19ac8, "r12": 0x7fffffffee38, "r13": 1, "r14": 0x7ffff7ffd000, "r15": 0x403dc0} +MOVING = { # moment: rax, rcx, rbp, rsp, rip, eflags + 32: (0x405050, 0x405030, 0x7fffffffed00, 0x7fffffffecf0, 0x40126d, 0x202), + 33: (0x405050, 0x405030, 0x7fffffffed00, 0x7fffffffece8, 0x4011a0, 0x202), + 34: (0x405050, 0x405030, 0x7fffffffed00, 0x7fffffffece0, 0x4011a1, 0x202), + 35: (0x405050, 0x405030, 0x7fffffffece0, 0x7fffffffece0, 0x4011a4, 0x202), + 36: (0x405050, 0x405030, 0x7fffffffece0, 0x7fffffffecc8, 0x4011a8, 0x212), + 37: (0x405050, 0x405030, 0x7fffffffece0, 0x7fffffffecc8, 0x4011b0, 0x212), + 56: (0x405010, 0, 0x7fffffffece0, 0x7fffffffecc8, 0x4011ca, 0x206), + 57: (0x405010, 0, 0x7fffffffece0, 0x7fffffffecc8, 0x4011ce, 0x206), + 58: (0x405010, 0x405050, 0x7fffffffece0, 0x7fffffffecc8, 0x4011d2, 0x206), +} + + +def regs(k, pc, km=None): + """The registers after moment k's instruction ran, rip still on the instruction (mid-step: the mark goes last); + their chains through memory as of moment km (a register struck before the word it points at).""" + m = mem(k if km is None else km) + rax, rcx, rbp, rsp, _, _ = MOVING[k] + vals = dict(FIXED, rax=rax, rcx=rcx, rbp=rbp, rsp=rsp) + out = [] + for r in ("rax", "rbx", "rcx", "rdx", "rsi", "rdi", "rbp", "rsp", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"): + v = vals[r] + links, end = follow(v, m) if region(v) else ([], ("int", v)) + out.append((r, links, end)) + out.append(("rip", [(pc, CODE, name(pc))], None)) + return out + + +def flags(k, changed=()): + e = MOVING[k][5] + return [(f, e >> bit & 1, f in changed) for f, bit in (("CF", 0), ("PF", 2), ("AF", 4), ("ZF", 6), ("SF", 7), + ("IF", 9), ("DF", 10), ("OF", 11))] + + +# ---- the stack panel ------------------------------------------------------------------------------------------ +SLOT_ROLE = { # what the recording says each word is, per the pc's place in reverse (main's while the pc is there) + "reverse": {0x7fffffffecc8: "next", 0x7fffffffecd0: "cur", 0x7fffffffecd8: "prev", 0x7fffffffece0: "saved rbp", + 0x7fffffffed00: "saved rbp"}, + "prologue": {0x7fffffffecd0: "cur", 0x7fffffffecd8: "prev", 0x7fffffffece0: "saved rbp", 0x7fffffffed00: "saved rbp"}, + "entry": {0x7fffffffece0: "saved rbp", 0x7fffffffed00: "saved rbp"}, + "main": {0x7fffffffed00: "saved rbp"}, +} +NAMED = {"next", "cur", "prev"} # a local: primary; a saved register: dim + + +def stack_rows(k, top, n, rsp, rbp, marks=None, free=()): + """n slots from top. marks: {slot: {chain index: mark}}. free: slots drawn as not the frame's yet.""" + m = mem(k) + rows = [] + for i in range(n): + a = top + 8 * i + # rsp's pin stays on the window's top row: between rsp's strike and the slide it is there already + pins = [r for r, v in (("rbp", rbp), ("rsp", rsp)) if v == a or (r == "rsp" and i == 0 and v < a)] + w = m[a] + links, end = follow(w, m) if region(w) else ([], ("int", w)) + mk = dict((marks or {}).get(a, {})) + if mk and 1 in mk and not links: # a number written: the mark is on the value the chain ends in + mk = dict(mk) + mk["end"] = mk.pop(1) + if a in free: # not the frame's yet: its old word, faint, no chain + mk["free"] = True + links, end = [], ("int", w) + rows.append((a, pins, links, end, mk) if mk else (a, pins, links, end)) + return rows + + +def frames(top, n, newest): + """The spans: the newest frame's words to its return address, then main's, then libc's.""" + ends = [(newest[0], newest[1]), ("main", 0x7fffffffed08), ("libc+27781", 0x7fffffffed98)] if newest else \ + [("main", 0x7fffffffed08), ("libc+27781", 0x7fffffffed98)] + out, first = [], top + for nm, last in ends: + a, z = (first - top) // 8, (last - top) // 8 + out.append((nm, a, z)) + first = last + 8 + return out + + +# ---- the annotation, `tied` and `whole` ----------------------------------------------------------------------- +def note(g, x, y, parts): + """An annotation's runs: ("name", s, ink) bold, the place's name; ("addr", v, ink); ("int", v); ("points",); + ("holds",); ("text", s, ink); ("code", v) an address and its name. A run may end in a mark: "read" framed, + "strike" on the softened vermilion. Returns where it ends.""" + for p in parts: + kind, mk = p[0], p[-1] if p[-1] in ("read", "strike") else None + if kind == "points": + x = C.link_arrow(g, x, y) + continue + if kind == "holds": + x = C.value_arrow(g, x, y) + continue + if kind == "name": + s_, ink, face = p[1], p[2], BOLD + elif kind == "addr": + s_, ink, face = "%x" % p[1], p[2], MONO + elif kind == "int": + s_, ink, face = (str(p[1]) if p[1] < 10 else "0x%x" % p[1]), VELLUM, MONO + elif kind == "code": + s_, ink, face = "%x" % p[1], CODE, MONO + else: + s_, ink, face = p[1], p[2], MONO + w = len(s_) * A + if mk == "strike": + g.t(x, b(y), s_, S, C.struck(g, x - 5, y, w + 10), BOLD) + else: + if mk == "read": + g.frame(x - 6, y, w + 12, ROW, READ, 2) + g.t(x, b(y), s_, S, ink, face) + x += w + if kind == "code": + g.t(x + 10, b(y), name(p[1]), S, VELLUM, MONO) + x += 10 + len(name(p[1])) * A + x += 0 + return x + + +def place(form, nm, addr_, links, end, mk=None): + """What a row says of a word it reads or writes. `tied`: the word's name (its role) where the stack pane holds + it, then the value, one hop. `whole`: the address and the chain, as the catalogue had it.""" + if form == "tied" and nm: + out = [("name", nm, STACK, "read") if mk == "read" else ("name", nm, STACK)] + else: + out = [("addr", addr_, region(addr_), "read") if mk == "read" else ("addr", addr_, region(addr_))] + hops = links if form == "whole" else links[:1] + for i, h in enumerate(hops): + out.append(("points",)) + last = i == len(hops) - 1 + if h[1] == CODE: + out.append(("code", h[0])) + else: + out.append(("addr", h[0], h[1], "strike") if mk == "strike" and i == 0 else ("addr", h[0], h[1])) + if end is not None and (form == "whole" or not links): + out.append(("holds",)) + out.append(("int", end[1], "strike") if mk == "strike" and not links else ("int", end[1])) + return out + + +def carry(g, ya, yb): + """`carry`: a value's way from a word to a register or back, both in the state column: out of the source's + panel at its left rule, along the gutter's right lane (x 962), into the destination's rule; 2 units in primary, + its head an open chevron, so that it is never a link (3 units, the region's ink, a filled head, a pin).""" + gen.arrow(g, [(976, ya), (962, ya), (962, yb), (975, yb)], VELLUM, 2, r=6, head=False) + g.path(f"M{968},{yb - 5} L{975},{yb} L{968},{yb + 5}", VELLUM, 2, join="miter") + + +def touch(g, y_row, y_slot, ink): + """`touch`: the current row, across the gutter's middle lane, to the stack's rule level with its word.""" + gen.arrow(g, [(944, y_row + 12), (956, y_row + 12), (956, y_slot + 12), (978, y_slot + 12)], ink, 2, r=6, + hl=7, hw=8) + + +# ---- the minimaps: each pane's column from what the recording holds ------------------------------------- +def strips(g, bx, src_first, src_cur, dis_rows_all, dis_first, ndis, pc, stack_top, words, slots_all_top): + src_rows = [[(64 + (len(l) - len(l.lstrip())) * A, len(l.strip()) * A, VELLUM)] if l.strip() else [] + for l in SRC[:44]] + F.strip(g, *F.strip_at(bx["source"]), src_rows, src_first - 1, 8, {src_cur - 1: "current"}) + col = [[(40, 6 * A, CODE), (180, len(mn) * A, gen.KW), (264, len(ops) * A, VELLUM)] for a, ln, mn, ops in dis_rows_all] + c0 = [r[0] for r in dis_rows_all] + F.strip(g, *F.strip_at(bx["disasm"]), col, c0.index(dis_first), ndis, {c0.index(pc): "current"}) + m = mem(57) + stk = [] + for i in range(48): + a = slots_all_top + 8 * i + w = m.get(a, 0) + stk.append([(184, 12 * A, STACK)] + ([(184 + 13 * A, 12 * A, region(w) or VELLUM)] if w else [(184 + 13 * A, A, FAINT)])) + F.strip(g, *F.strip_at(bx["stack"]), stk, (stack_top - slots_all_top) // 8, words) + + +ALL_DIS = [(a, ln, mn, ops if isinstance(ops, str) else "%x" % ops) for a, ln, mn, ops in + [(0x401150 + 4 * i, 11, "mov", "rax, rbx") for i in range(0)] + REV + DIS] +ALL_DIS.sort() + + +def ops_parts(ops): + if isinstance(ops, int): # a call's or jump's target: by its symbol where it is one + return [((ops, SYMS[ops]), CODE)] if ops in SYMS else [(ops, CODE)] + return [(ops, VELLUM)] if ops else [] + + +def dis_window(pc, n, states, notes, rows=None): + rows = rows or REV + i = [r[0] for r in rows].index(pc) + lo = max(0, min(i - n // 2, len(rows) - n)) + out = [] + for a, ln, mn, ops in rows[lo:lo + n]: + out.append((a, ln, mn, ops_parts(ops), states.get(a), None)) + return out, [r[0] for r in rows[lo:lo + n]] + + +# ---- a frame of the loop: the store (56 to 57) and the load (57 to 58) ----------------------------------- +def loop_frame(g, step, form, way=None, ov=None): + """step: "store" (4011ca, next = cur->next) or "load" (4011ce, rcx = prev). form: "tied" or "whole". + way: the sheet's alternatives, "A" (names, echo, pwndbg's offsets), "B" (= tied), "C" (the name in the operand). + ov: an instant of the step before its hold (the carry strip): which marks, ties and moments it has reached.""" + M.stage(False) + ov = ov or {} + k, pc = (57, 0x4011ca) if step == "store" else (58, 0x4011ce) + line = 21 if step == "store" else 22 + rax, rcx, rbp, rsp, _, _ = MOVING[k] + tied = form == "tied" + bx, nregs, words = F.boxes("subject", "A", QUIET) + src, dis = (bx["source"][2] - 32) // ROW, (bx["disasm"][2] - 32) // ROW + m = mem(k) + + # the program column + M.strip(True) + C.LX = 64 + ys = C.source(g, bx["source"][1], src, SRC, 18, line, [21] if step == "load" else [20], "list.c", 44) + trail = {"store": {0x4011c6: "trail0", 0x4011c2: "trail1", 0x4011c0: "trail2", 0x4011ca: "cur"}, + "load": {0x4011ca: "trail0", 0x4011c6: "trail1", 0x4011c2: "trail2", 0x4011ce: "cur"}}[step] + rows, shown = dis_window(pc, dis, trail, {}) + if way == "C": # the name in the operand, as a reverse-engineering tool writes it + rows = [(a, ln, mn, [(o.replace("qword ptr [rbp - 0x18]", "[rbp+next]").replace("qword ptr [rbp - 0x10]", "[rbp+cur]") + .replace("qword ptr [rbp - 8]", "[rbp+prev]"), VELLUM) if isinstance(o, str) else (o, ink) + for o, ink in ops], st, nt) for a, ln, mn, ops, st, nt in rows] + at = C.disasm(g, bx["disasm"][1], rows, "reverse", line) + if way == "C": # the names in the operands in the stack's ink, bold, over the plain text + for a, ln, mn, ops, st, nt in rows: + for o, ink in ops: + if isinstance(o, str): + for nm in ("next", "cur", "prev"): + j = o.find("+" + nm + "]") + if j >= 0: + g.rect(64 + C.DX_OPS + (j + 1) * A, at[a] + 3, len(nm) * A, ROW - 6, mix(BRIGHT, PAGE, 0.1) + if st == "cur" else PAGE) + g.t(64 + C.DX_OPS + (j + 1) * A, b(at[a]), nm, S, STACK, BOLD) + + # each row's annotation: the trail's and the current row's + nx = 64 + C.DX_NOTE + slot_name = {0x7fffffffecc8: "next", 0x7fffffffecd0: "cur", 0x7fffffffecd8: "prev"} + name_for = (lambda a: None) if way == "A0" else (lambda a: slot_name.get(a)) + f = form if way != "C" else "tied" + + def access(a, slot, mk=None, heap=False): + w = m[slot] if not (step == "store" and slot == 0x7fffffffecc8 and a == 0x4011c2) else m[slot] + links, end = follow(w, m) if region(w) else ([], ("int", w)) + if f == "whole": # the catalogue's: the chain from the address, cut where the row ends + C.chain(g, nx, at[a], [(slot, region(slot))] + links, end, {0: mk} if mk == "read" else + ({1: "strike"} if mk == "strike" else None), room=64 + C.CW - 12) + return + if way == "C" and not heap: # the operand named it: the row says only what moved + parts = place("tied", None, slot, links, end, mk)[1:] + else: + parts = place(f, None if heap else name_for(slot), slot, links, end, mk) + note(g, nx, at[a], parts) + + if step == "store": + note(g, nx, at[0x4011c0], [("text", "not taken", DIM), ("text", " · reads ", FAINT), ("text", "zf", DIM)]) + access(0x4011c2, 0x7fffffffecd0) + hm = dict(m) + access(0x4011c6, 0x405038, heap=True) + access(0x4011ca, 0x7fffffffecc8, ov.get("note_mark", "strike")) + else: + access(0x4011c6, 0x405038, heap=True) + access(0x4011c2, 0x7fffffffecd0) + access(0x4011ca, 0x7fffffffecc8) + access(0x4011ce, 0x7fffffffecd8, ov.get("note_mark", "read")) + M.strip(False) + + # the state column + C.RX = 976 + reg_marks = ov.get("reg_marks", {"rax": {0: "tick"}, "rcx": {0: "strike"} if step == "load" else {}}) + where = C.registers(g, bx["registers"][1], regs(ov.get("k_regs", k), pc), flags(k), reg_marks, QUIET) + M.strip(True) + C.RX = 976 + top = rsp + smarks = ov.get("smarks", {0x7fffffffecc8: {1: "strike"}} if step == "store" else {0x7fffffffecd8: {1: "read"}, + 0x7fffffffecc8: {1: "tick"}}) + roles = {i: (r, VELLUM if r in NAMED else DIM) for i in range(words) + for r in [SLOT_ROLE["reverse"].get(top + 8 * i)] if r} + base_off = rbp if (tied and way != "A") else rsp + sy = C.stack(g, bx["stack"][1], stack_rows(ov.get("k_mem", k), top, words, rsp, rbp, smarks), + frames(top, words, ("reverse", 0x7fffffffece8)), + note="%s words · offsets from %s" % (F.WORDS[words], "rbp" if base_off == rbp else "rsp"), + rsp=base_off, roles=roles) + M.strip(False) + + # the band: the list, three nodes in the order the program made them, and the heap they are + vr = C.fields(g, TOP, 200, "the heap, 405000 to 40506f", 0x405000, 112, heap_fields(), heap_bytes(k), HEAP, region, + rows_shown=list(range(7)), more_rows=False) + nodes = [(0x405050, 9, m[0x405058]), (0x405030, 12, m[0x405038]), (0x405010, 7, m[0x405018])] + # names keep their side: head and prev came first (left of 9's stub), rcx takes the free side + pins = {0x405050: ["head prev"] + (["rcx"] if step == "load" and ov.get("link", True) else []), 0x405030: ["cur"], + 0x405010: ["rax"] + (["next"] if step == "load" or ov.get("pins_after", True) else [])} + C.RX, C.LX = 976, 64 + C.lens(g, TOP, 296, 200, nodes, pins, {}, 0x405000, 7, + link_from=(where["rcx"], "rcx") if step == "load" and ov.get("link", True) else None, + subject=True, view_rows=vr) + C.thread(g, ys, [(at[pc], at[pc] + ROW)]) + + # the tie between the row and its word + slot = 0x7fffffffecc8 if step == "store" else 0x7fffffffecd8 + if tied and way in (None, "B") and ov.get("touch", True): + touch(g, at[pc], sy[(slot - top) // 8], VERM if step == "store" else READ) + for name_, kind in ov.get("reg_frames", {}).items(): # a register framed as read, or armed, by hand + v = regs(ov.get("k_regs", k), pc)[[r[0] for r in regs(k, pc)].index(name_)] + w_ = len("%x" % v[1][0][0]) * A if v[1] else len(str(v[2][1])) * A + g.frame(976 + 72 - 6 if kind == "read" else 976 + 72 - 5, where[name_], w_ + 12 if kind == "read" else w_ + 10, + ROW, READ if kind == "read" else VERM, 2) + if ov.get("carry"): # the carry: a value's way between a word and a register + src, dst = ov["carry"] + ya = (sy[(src - top) // 8] if isinstance(src, int) else where[src]) + 12 + yb = (sy[(dst - top) // 8] if isinstance(dst, int) else where[dst]) + 12 + carry(g, ya, yb) + strips(g, bx, 18, line, ALL_DIS, shown[0], dis, pc, top, words, top - 16 * 8) + M.clock(g, k - 32, 70) + return bx, at, sy + + +def heap_fields(): + out = [] + for a in (0x405010, 0x405030, 0x405050): + out += [(a - 8 - 0x405000, 8, "malloc", False, None), (a - 0x405000, 8, "number", False, None), + (a + 8 - 0x405000, 8, "pointer", False, None)] + out.append((0x405068 - 0x405000, 8, "malloc", False, None)) + return out + + +def heap_bytes(k): + m = mem(k) + out = {} + for a in range(0x405000, 0x405070, 8): + for i in range(8): + out[a + i] = m.get(a, 0) >> (8 * i) & 0xff + return out + + +CAP = { + "store": [[("next = cur->next", "mono"), (": the word at ", ), ("[rbp - 0x18]", "mono"), (" is ", ), ("next", "mono"), + (",", )], [("and it now holds 405010, the node whose value is 7.", )]], + "load": [[("cur->next = prev", "mono"), (" begins by reading ", ), ("prev", "mono"), (" into ", ), ("rcx", "mono"), + (":", )], [("405050, the node of 9, which the first turn reversed.", )]], +} + + +def save(name_, draw, *a, **kw): + gen.W, gen.H = 1920, 1080 + g = Svg() + out = draw(g, *a, **kw) + g.save(name_) + subprocess.run(["resvg", HERE + "/" + name_ + ".svg", HERE + "/" + name_ + ".png"], check=True) + return out + + +def full(g, step, form): + loop_frame(g, step, form) + gen.caption(g, CAP[step]) + + +FONT = lambda n, s: ImageFont.truetype("/usr/share/fonts/go/%s.ttf" % n, s) + + +def pair_sheet(out, step): + """The same instant as the catalogue had it (`whole`) over `tied`, each a whole frame.""" + parts = [] + for form in ("whole", "tied"): + nm = "tmp-%s-%s" % (step, form) + save(nm, full, step, form) + parts.append((form, Image.open(HERE + "/" + nm + ".png").convert("RGB"))) + head = 72 + s = Image.new("RGB", (1920, 2 * (1080 + head)), "#0a1030") + d = ImageDraw.Draw(s) + labels = {"whole": ("whole", "the annotation as it was: the address, the chain; the stack's offsets from rsp", "#eee6d2"), + "tied": ("tied", "the place's name and the value; offsets from the frame's base; the touch", "#e8c46a")} + for i, (form, im) in enumerate(parts): + y = i * (1080 + head) + t, sub, ink = labels[form] + d.text((64, y + 18), t, font=FONT("Go-Medium", 34), fill=ink) + d.text((64 + 150, y + 28), sub, font=FONT("Go-Regular", 24), fill="#9aa6d9") + s.paste(im, (0, y + head)) + s.save(HERE + "/" + out) + for form in ("whole", "tied"): + for ext in ("svg", "png"): + subprocess.run(["rm", "-f", "%s/tmp-%s-%s.%s" % (HERE, step, form, ext)], check=True) + + +# ---- the stack's own instructions: a strip of instants ------------------------------------------------- +def stack_step(g, inst): + """One instant of a stack instruction's step, `tied`: the program column's disassembly and the state column, + the band left out (the strips are cut below it).""" + M.stage(False) + k, pc, line, func, trail, notes, rmarks, smarks, top, words_off, newest, free, touch_to, rcol = inst + k, km = k if isinstance(k, tuple) else (k, k) # the registers' moment, and memory's + bx, nregs, words = F.boxes("subject", "A", QUIET) + src, dis = (bx["source"][2] - 32) // ROW, (bx["disasm"][2] - 32) // ROW + rax, rcx, rbp, rsp, _, _ = MOVING[k] + M.strip(True) + C.LX = 64 + first = max(1, line - 4) + ys = C.source(g, bx["source"][1], src, SRC, first, line, [], "list.c", 44) + rows_src = DIS if func == "main" else REV + rows, shown = dis_window(pc, dis, trail, {}, rows_src) + at = C.disasm(g, bx["disasm"][1], rows, func, line) + for a, parts in notes.items(): + if a in at: + note(g, 64 + C.DX_NOTE, at[a], parts) + M.strip(False) + C.RX = 976 + C.registers(g, bx["registers"][1], regs(k, pc, km), flags(k), rmarks, QUIET) + M.strip(True) + C.RX = 976 + roles_map = SLOT_ROLE[newest[2]] if newest else SLOT_ROLE["main"] + roles = {i: (r, VELLUM if r in NAMED else DIM) for i in range(words) for r in [roles_map.get(top + 8 * i)] if r} + base, base_name = words_off + sy = C.stack(g, bx["stack"][1], stack_rows(km, top, words, rsp, rbp, smarks, free), + frames(top, words, newest[:2] if newest else None), + note="%s words · offsets from %s" % (F.WORDS[words], base_name), rsp=base, roles=roles) + M.strip(False) + C.thread(g, ys, [(at[pc], at[pc] + ROW)]) + if touch_to: + touch(g, at[pc], sy[(touch_to - top) // 8], rcol) + strips(g, bx, first, line, ALL_DIS, shown[0], dis, pc, top, words, top - 16 * 8) + return bx + + +RA = 0x7fffffffece8 +HEADROOM = 2 # free words the window keeps over rsp at rest + + +def pinned_rows(km, top, n, pins_at, marks, free, count=None): + """Rows with the pins where the instant has them (mid-travel they are not where the registers say yet), a + travelling pin's amount after its name.""" + m = mem(km) + rows = [] + for i in range(n): + a = top + 8 * i + pins = [r for r in ("rbp", "rsp") if pins_at.get(r) == a] + pins = sum(([r, (count or {})[r]] if r in (count or {}) else [r] for r in pins), []) + w = m[a] + links, end = follow(w, m) if region(w) else ([], ("int", w)) + mk = dict((marks or {}).get(a, {})) + if mk and 1 in mk and not links: + mk["end"] = mk.pop(1) + if a in free: + mk["free"] = True + links, end = [], ("int", w) + rows.append((a, pins, links, end, mk) if mk else (a, pins, links, end)) + return rows + + +def ghost_pin(g, y, names, k, after=0): + """Where a travelling pin was, a few frames apart (the mock's onion skin: the render moves one pin). after: + the characters of a pin standing on that row, which keeps its place (names keep their order).""" + ink, head = mix(VELLUM, PAGE, k), mix(STACK, PAGE, k) + s_ = " ".join(names) + x0 = 976 + 16 + (after + 2 if after else 0) * A + g.t(x0, b(y), s_, S, ink, BOLD) + x = x0 + len(s_) * A + 5 + if not after: + g.path(f"M{x + 9},{y + 12} l-9,-6 v12 Z", fill=head) + + +def travel_step(g, d): + """One instant of a step that moves rsp or rbp, `tied`: the row fires, the register strikes, the pin travels + over the rows (they change state as it passes: gained, released), the span with it, its amount on it; then + the touch and the word; the window follows only after the pin has landed.""" + M.stage(False) + k, km = d["k"] + pc, line, func = d["pc"], d["line"], d["func"] + bx, nregs, words = F.boxes("subject", "A", QUIET) + src, dis = (bx["source"][2] - 32) // ROW, (bx["disasm"][2] - 32) // ROW + M.strip(True) + C.LX = 64 + first = max(1, line - 4) + ys = C.source(g, bx["source"][1], src, SRC, first, line, [], "list.c", 44) + rows, shown = dis_window(pc, dis, d["trail"], {}, DIS if func == "main" else REV) + at = C.disasm(g, bx["disasm"][1], rows, func, line) + for a, parts in d["notes"].items(): + if a in at: + note(g, 64 + C.DX_NOTE, at[a], parts) + M.strip(False) + C.RX = 976 + C.registers(g, bx["registers"][1], regs(k, pc, km), flags(k), d.get("rmarks", {}), QUIET) + M.strip(True) + C.RX = 976 + top = d["top"] + roles_map = SLOT_ROLE[d["roles"]] + roles = {i: (r, VELLUM if r in NAMED else DIM) for i in range(words) for r in [roles_map.get(top + 8 * i)] + if r and top + 8 * i not in d.get("free", ())} + base, base_name = d["base"] + sp = [] + if d.get("newest"): + nm, ra, start = d["newest"] + sp.append((nm, (start - top) // 8, (ra - top) // 8)) + first_main = (d["newest"][1] + 8) if d.get("newest") else d["main_from"] + sp += [("main", (first_main - top) // 8, (0x7fffffffed08 - top) // 8), + ("libc+27781", (0x7fffffffed10 - top) // 8, (0x7fffffffed98 - top) // 8)] + sy = C.stack(g, bx["stack"][1], pinned_rows(km, top, words, d["pins"], d.get("smarks"), d.get("free", ()), + d.get("count")), + sp, note="%s words · offsets from %s%s" % (F.WORDS[words], base_name, d.get("tagnote", "")), + rsp=base, roles=roles) + M.strip(False) + row_y = lambda a: sy[(a - top) // 8] + for a, names, kk in d.get("ghosts", ()): # the pin's path, a few frames apart + standing = [n for n in ("rbp", "rsp") if d["pins"].get(n) == a] + ghost_pin(g, row_y(a), names, kk, len(" ".join(standing)) if standing else 0) + if d.get("travel"): # the rows the pin crossed: gained or released + a0, a1 = sorted(d["travel"]) + C.bracket(g, 976 + 5, row_y(a0) + 2, row_y(a1) + ROW - 2, VERM, 3, 5) + for r, cnt in d.get("count", {}).items(): # the amount, on the pin while it travels: in write's ink + y = row_y(d["pins"][r]) + names = [n for n in ("rbp", "rsp") if d["pins"].get(n) == d["pins"][r]] + x = 976 + 16 + (len(" ".join(names)) + 1) * A + g.rect(x - 1, y + 3, len(cnt) * A + 2, ROW - 6, PAGE) + g.t(x, b(y), cnt, S, VERM, BOLD) + if d.get("arm"): + a = d["arm"] + g.frame(976 + 184 + 12 * A + 30 - 5, row_y(a), 12 * A + 10, ROW, VERM, 2) + C.thread(g, ys, [(at[pc], at[pc] + ROW)]) + if d.get("touch"): + touch(g, at[pc], row_y(d["touch"][0]), d["touch"][1]) + strips(g, bx, first, line, ALL_DIS, shown[0], dis, pc, top, words, top - 16 * 8) + return bx + + +STATIC_CALL = {0x40126d: [("text", "reverse", BRIGHT), ("text", "()", VELLUM), ("text", " · ", FAINT), + ("text", "rsp ", DIM), ("text", "-8", VELLUM)]} +STRUCK_CALL = {0x40126d: [("text", "reverse", BRIGHT), ("text", "()", VELLUM), ("text", " · ", FAINT), + ("text", "rsp ", DIM), ("text", "-8", VELLUM, "strike")]} +ECF0, ECE8, ECE0 = 0x7fffffffecf0, 0x7fffffffece8, 0x7fffffffece0 +MAIN_TRAIL = {0x401268: "trail0", 0x40126d: "cur"} +CALL_BASE = dict(pc=0x40126d, line=41, func="main", trail=MAIN_TRAIL, roles="main", main_from=ECF0) +CALL = [ + ("1", "0 to 12", "fire on the call", "the cause, alone: the plaque pulses; the row says what the call will do, " + "reverse() and rsp -8; two free words stand over rsp, where the push will land", + dict(CALL_BASE, k=(32, 32), notes=STATIC_CALL, top=ECE0, pins={"rsp": ECF0, "rbp": 0x7fffffffed00}, + free={ECE0, ECE8}, base=(0x7fffffffed00, "rbp"))), + ("2", "18 to 30", "the touch", "from the call row across the gutter to the word the call will write, rsp - 8, still " + "free; nothing else has moved", + dict(CALL_BASE, k=(32, 32), notes=STATIC_CALL, top=ECE0, pins={"rsp": ECF0, "rbp": 0x7fffffffed00}, + free={ECE0, ECE8}, base=(0x7fffffffed00, "rbp"), touch=(ECE8, VERM))), + ("3", "30 to 42", "the word", "only now that the touch has landed: the word armed (30), struck (42): the return " + "address, main+50, the row after the call. rsp has not moved", + dict(CALL_BASE, k=(32, 33), notes=STATIC_CALL, top=ECE0, pins={"rsp": ECF0, "rbp": 0x7fffffffed00}, + free={ECE0}, smarks={ECE8: {1: "strike"}}, base=(0x7fffffffed00, "rbp"), touch=(ECE8, VERM))), + ("4", "48 to 72", "rsp's pin climbs onto it", "then what follows from the word: rsp's pin travels up onto it, 24 f, " + "glide (its old place drawn faint), -8 on it, the bracket over the word gained; reverse's span grows with it, " + "gold, main's going to rule; the offsets count from rsp; as the pin lands, rsp is struck, and the row's -8 with it", + dict(CALL_BASE, k=(33, 33), notes=STRUCK_CALL, rmarks={"rsp": {0: "strike"}}, smarks={ECE8: {1: "strike"}}, + top=ECE0, pins={"rsp": ECE8, "rbp": 0x7fffffffed00}, free={ECE0}, base=(ECE8, "rsp"), roles="entry", + newest=("reverse", ECE8, ECE8), count={"rsp": "-8"}, ghosts=[(ECF0, ["rsp"], 0.75)], travel=(ECE8, ECE8), + touch=(ECE8, VERM))), + ("5", "78 to 102", "the window follows", "last, the pin landed: the rows glide down one slot, 24 f, so that two " + "free words stand over rsp again; the pin rides its row. Hold, then the advance (the plaque to reverse's first " + "row, the touch drawn back)", + dict(CALL_BASE, k=(33, 33), notes=STRUCK_CALL, rmarks={"rsp": {0: "strike"}}, smarks={ECE8: {1: "strike"}}, + top=0x7fffffffecd8, pins={"rsp": ECE8, "rbp": 0x7fffffffed00}, free={0x7fffffffecd8, ECE0}, + base=(ECE8, "rsp"), roles="entry", newest=("reverse", ECE8, ECE8), tagnote=" · followed 1", + touch=(ECE8, VERM))), +] +ECC8, ECD0, ECD8 = 0x7fffffffecc8, 0x7fffffffecd0, 0x7fffffffecd8 +PUSHN = [("text", "rsp ", DIM), ("text", "-8", VELLUM), ("text", " · ", FAINT), ("name", "saved rbp", STACK)] +MOVN = [("text", "rbp", DIM), ("text", " = ", FAINT), ("text", "rsp", DIM)] +SUBN = [("text", "rsp ", DIM), ("text", "-0x18", VELLUM), ("text", " 3 words", FAINT)] +REVB = dict(func="reverse", line=17) +PROLOGUE = [ + ("1", "push rbp · 0 to 30", "fire; the touch", "the row fires; the touch runs to the word over rsp, free; " + "nothing else has moved", + dict(REVB, k=(33, 33), pc=0x4011a0, trail={0x4011a0: "cur"}, notes={0x4011a0: PUSHN}, top=ECD8, + pins={"rsp": ECE8, "rbp": 0x7fffffffed00}, free={ECD8, ECE0}, base=(ECE8, "rsp"), roles="main", + newest=("reverse", ECE8, ECE8), touch=(ECE0, VERM))), + ("2", "30 to 42", "the word written", "armed: rbp's value, 7fffffffed00, is what the word held already, so the " + "arm's frame comes and goes and nothing is struck; the word is the frame's now, no longer faint", + dict(REVB, k=(33, 34), pc=0x4011a0, trail={0x4011a0: "cur"}, notes={0x4011a0: PUSHN}, top=ECD8, + pins={"rsp": ECE8, "rbp": 0x7fffffffed00}, free={ECD8}, base=(ECE8, "rsp"), roles="main", + newest=("reverse", ECE8, ECE8), touch=(ECE0, VERM), arm=ECE0)), + ("3", "48 to 72", "rsp's pin climbs onto it", "rsp's pin travels up a row onto the word, -8 on it, the bracket over " + "it; the span stretches with the pin; the role arrives, saved rbp; rsp struck as the pin lands, the row's -8 " + "with it. The window then follows (78 to 102)", + dict(REVB, k=(34, 34), pc=0x4011a0, trail={0x4011a0: "cur"}, + notes={0x4011a0: [PUSHN[0], ("text", "-8", VELLUM, "strike")] + PUSHN[2:]}, rmarks={"rsp": {0: "strike"}}, + top=ECD8, pins={"rsp": ECE0, "rbp": 0x7fffffffed00}, free={ECD8}, base=(ECE0, "rsp"), roles="entry", + newest=("reverse", ECE8, ECE0), count={"rsp": "-8"}, ghosts=[(ECE8, ["rsp"], 0.75)], travel=(ECE0, ECE0), + touch=(ECE0, VERM))), + ("4", "mov rbp, rsp · 18 to 48", "rbp flies to rsp", "the row fires; rbp's pin leaves main's saved rbp and flies up " + "the lane, 30 f, to rsp's row, where the two meet (rsp slides aside, pwndbg's order); rbp struck as it lands; " + "the offsets' base becomes rbp, and no digit changes, since rbp is rsp", + dict(REVB, k=(35, 35), pc=0x4011a1, trail={0x4011a0: "trail0", 0x4011a1: "cur"}, + notes={0x4011a0: PUSHN, 0x4011a1: MOVN + [("text", " ", FAINT), ("addr", 0x7fffffffece0, STACK, "strike")]}, + rmarks={"rbp": {0: "strike"}, "rsp": {0: "tick"}}, top=ECD0, pins={"rsp": ECE0, "rbp": ECE0}, + free={ECD0, ECD8}, base=(ECE0, "rbp"), roles="entry", newest=("reverse", ECE8, ECE0), + ghosts=[(0x7fffffffed00, ["rbp"], 0.8), (0x7fffffffecf8, ["rbp"], 0.7), (0x7fffffffecf0, ["rbp"], 0.6), + (ECE8, ["rbp"], 0.5)])), + ("5", "sub rsp, 0x18 · 18 to 42", "the climb", "the row fires; rsp's pin climbs, the amount counting on it; each row " + "it reaches is gained (it brightens from free, 12 f, and its role arrives, prev), the bracket and the span " + "growing under it; here at its first row, -8", + dict(REVB, k=(35, 35), pc=0x4011a4, trail={0x4011a0: "trail1", 0x4011a1: "trail0", 0x4011a4: "cur"}, + notes={0x4011a0: PUSHN, 0x4011a1: MOVN, 0x4011a4: SUBN}, rmarks={"rbp": {0: "tick"}}, + top=ECD0, pins={"rsp": ECD8, "rbp": ECE0}, free={ECD0}, base=(ECE0, "rbp"), roles="prologue", + newest=("reverse", ECE8, ECD8), count={"rsp": "-8"}, ghosts=[(ECE0, ["rsp"], 0.75)], travel=(ECD8, ECD8))), + ("6", "42 to 60", "landed, followed", "three rows up, -18: cur's row and the one above gained; the two free words " + "were not room enough, so for the last of the climb the rows slid down under the pin, one move; rsp struck as " + "it lands, the row's -0x18 with it; two free words over rsp again", + dict(REVB, k=(36, 36), pc=0x4011a4, trail={0x4011a0: "trail1", 0x4011a1: "trail0", 0x4011a4: "cur"}, + notes={0x4011a0: PUSHN, 0x4011a1: MOVN, 0x4011a4: [SUBN[0], ("text", "-0x18", VELLUM, "strike"), SUBN[2]]}, + rmarks={"rsp": {0: "strike"}, "rbp": {0: "tick"}}, top=ECC8 - 16, pins={"rsp": ECC8, "rbp": ECE0}, + free={ECC8 - 16, ECC8 - 8}, base=(ECE0, "rbp"), roles="prologue", newest=("reverse", ECE8, ECC8), + count={"rsp": "-18"}, ghosts=[(ECE0, ["rsp"], 0.8), (ECD8, ["rsp"], 0.7), (ECD0, ["rsp"], 0.6)], + travel=(ECC8, ECD8))), +] + + +def strip_sheet(out, title, sub, instants, y0=336, y1=892): + """Instants of one step, each the frame cut to the rows it moves: the registers' moving rows, the stack, the + source's foot and the disassembly.""" + ims = [] + for i, (num, when, what, why, inst) in enumerate(instants): + when = num + " " + when + nm = "tmp-strip-%d" % i + save(nm, travel_step, inst) + ims.append((when, what, why, Image.open(HERE + "/" + nm + ".png").convert("RGB").crop((0, y0, 1920, y1)))) + for ext in ("svg", "png"): + subprocess.run(["rm", "-f", "%s/%s.%s" % (HERE, nm, ext)], check=True) + head, lab = 110, 104 + h = y1 - y0 + s = Image.new("RGB", (1920, head + len(ims) * (h + lab)), "#0a1030") + d = ImageDraw.Draw(s) + d.text((64, 26), title, font=FONT("Go-Medium", 34), fill="#fff8e8") + d.text((64, 70), sub, font=FONT("Go-Regular", 22), fill="#9aa6d9") + for i, (when, what, why, im) in enumerate(ims): + y = head + i * (h + lab) + d.text((64, y + 8), when, font=FONT("Go-Medium", 26), fill="#e8c46a") + x_ = 64 + d.textlength(when, font=FONT("Go-Medium", 26)) + 24 + d.text((x_, y + 8), what, font=FONT("Go-Medium", 26), fill="#eee6d2") + f20, lines_, cur = FONT("Go-Regular", 20), [], "" + for w_ in why.split(): + if d.textlength(cur + " " + w_, font=f20) > 1790 and cur: + lines_.append(cur) + cur = w_ + else: + cur = (cur + " " + w_).strip() + lines_.append(cur) + for j, l_ in enumerate(lines_[:2]): + d.text((64, y + 44 + 26 * j), l_, font=f20, fill="#9aa6d9") + s.paste(im, (0, y + lab)) + s.save(HERE + "/" + out) + + +# ---- the sheet: three ways to show the relation ------------------------------------------------------------ +def ways(out): + ways_ = [("A", "echo", "names, and the same mark in both at once; no line; pwndbg's offsets from rsp", "#eee6d2"), + ("B", "touch (recommended: the `tied` form)", "names; offsets from the frame's base, the operand's own digits; " + "for the walked step a line from the row to its word", "#e8c46a"), + ("C", "operand", "the name in the operand, as IDA writes it; the row says only what moved; offsets from rbp; " + "no line", "#eee6d2")] + y0, y1 = 508, 892 + ims = [] + for key, t, sub, ink in ways_: + nm = "tmp-way-%s" % key + save(nm, lambda g, k=key: loop_frame(g, "store", "tied", k)) + ims.append((key, t, sub, ink, Image.open(HERE + "/" + nm + ".png").convert("RGB").crop((0, y0, 1920, y1)))) + for ext in ("svg", "png"): + subprocess.run(["rm", "-f", "%s/%s.%s" % (HERE, nm, ext)], check=True) + head, lab = 120, 70 + h = y1 - y0 + s = Image.new("RGB", (1920, head + len(ims) * (h + lab)), "#0a1030") + d = ImageDraw.Draw(s) + d.text((64, 26), "The row and its word: three ways to say they are one thing", font=FONT("Go-Medium", 34), fill="#fff8e8") + d.text((64, 72), "The same instant: next = cur->next stored (mov [rbp - 0x18], rax), mid-step, its strike on the stack. " + "The disassembly and the stack, cut from the frame.", font=FONT("Go-Regular", 22), fill="#9aa6d9") + for i, (key, t, sub, ink, im) in enumerate(ims): + y = head + i * (h + lab) + d.text((64, y + 16), key, font=FONT("Go-Bold", 30), fill=ink) + d.text((104, y + 16), t, font=FONT("Go-Medium", 28), fill=ink) + d.text((104, y + 50 - 4), sub, font=FONT("Go-Regular", 20), fill="#9aa6d9") + s.paste(im, (0, y + lab)) + if key == "B": + d.rectangle((0, y + lab - 2, 1919, y + lab + h + 1), outline="#e8c46a", width=2) + s.save(HERE + "/" + out) + + +CARRY = [ # (number, frames, what, why, step, overrides) + ("1", "load · 18 to 36", "the touch, the read", "mov rcx, [rbp - 8] fired (0 to 12); the touch runs from the row to " + "prev's word (18 to 30) and, landed, the word is framed read with the row's prev (30 to 36). rcx not yet", + "load", dict(k_regs=57, reg_marks={"rax": {0: "tick"}}, link=False)), + ("2", "36 to 60", "the carry", "the touch draws back as the carry leaves the word: along the gutter's right lane up " + "to rcx's row, head first (24 f), an open chevron in primary; as it lands rcx is armed (48 to 60)", + "load", dict(k_regs=57, reg_marks={"rax": {0: "tick"}}, link=False, touch=False, + carry=(0x7fffffffecd8, "rcx"), reg_frames={"rcx": "arm"})), + ("3", "60 to 90", "struck, and what follows", "rcx struck (60); the carry draws back (18 f); then what follows " + "from the new value: rcx's link climbs to its pin under 9's node (66 to 90)", + "load", dict(touch=False)), + ("4", "store · 18 to 24", "the source read", "mov [rbp - 0x18], rax fired; its source, rax, is framed read across " + "the gutter, at about the row's height. Nothing in memory yet", + "store", dict(k_mem=56, smarks={}, touch=False, note_mark=None, reg_frames={"rax": "read"}, pins_after=False)), + ("5", "24 to 48", "the carry", "the carry draws from rax's row down the gutter's right lane to next's word, head " + "first; it is the store's one line (no touch: the row has named the word); as it lands the word is armed", + "store", dict(k_mem=56, smarks={}, touch=False, note_mark=None, reg_frames={"rax": "read"}, + carry=("rax", 0x7fffffffecc8), pins_after=False, arm=0x7fffffffecc8)), + ("6", "60 to 90", "struck, and what follows", "next's word struck (60) and the row's value with it; the carry " + "draws back; then next's pin travels under its node (78 to 108)", + "store", dict(touch=False)), +] + + +def carry_step(g, step, ov): + bx, at, sy = loop_frame(g, step, "tied", None, ov) + if ov.get("arm"): # the destination armed: the arm's frame on its value + a = ov["arm"] + g.frame(976 + 184 + 12 * A + 30 - 5, sy[(a - MOVING[57][3]) // 8], 6 * A + 10, ROW, VERM, 2) + return bx + + +def carry_sheet(out): + ims = [] + y0, y1 = 262, 892 + for i, (num, when, what, why, step, ov) in enumerate(CARRY): + nm = "tmp-carry-%d" % i + save(nm, carry_step, step, ov) + im = Image.open(HERE + "/" + nm + ".png").convert("RGB").crop((0, y0, 1920, y1)) + ImageDraw.Draw(im).rectangle((0, 0, 950, 346 - y0), fill="#0a1030") # the band's foot, cut: left out whole + ims.append((num + " " + when, what, why, im)) + for ext in ("svg", "png"): + subprocess.run(["rm", "-f", "%s/%s.%s" % (HERE, nm, ext)], check=True) + head, lab = 110, 104 + h = y1 - y0 + s = Image.new("RGB", (1920, head + len(ims) * (h + lab)), "#0a1030") + d = ImageDraw.Draw(s) + d.text((64, 26), "carry: a value's way between memory and a register, an arrow", font=FONT("Go-Medium", 34), + fill="#fff8e8") + d.text((64, 70), "with the disassembly tied: a load (prev into rcx), then a store (rax into next), each numbered in " + "its order; frames at 60 a second from the step's first", font=FONT("Go-Regular", 22), fill="#9aa6d9") + f20 = FONT("Go-Regular", 20) + for i, (when, what, why, im) in enumerate(ims): + y = head + i * (h + lab) + d.text((64, y + 8), when, font=FONT("Go-Medium", 26), fill="#e8c46a") + d.text((64 + d.textlength(when, font=FONT("Go-Medium", 26)) + 24, y + 8), what, font=FONT("Go-Medium", 26), + fill="#eee6d2") + lines_, cur = [], "" + for w_ in why.split(): + if d.textlength(cur + " " + w_, font=f20) > 1790 and cur: + lines_.append(cur) + cur = w_ + else: + cur = (cur + " " + w_).strip() + lines_.append(cur) + for j, l_ in enumerate(lines_[:2]): + d.text((64, y + 44 + 26 * j), l_, font=f20, fill="#9aa6d9") + s.paste(im, (0, y + lab)) + s.save(HERE + "/" + out) + + +if __name__ == "__main__": + pair_sheet("44-tied-store.png", "store") + pair_sheet("45-tied-load.png", "load") + strip_sheet("46-tied-call.png", "call reverse: cause, touch, word, then rsp", + "main's call row, the registers, the stack: five instants of the step, numbered in their order " + "(frames at 60 a second from its first); a pin's path drawn a few frames apart", CALL) + strip_sheet("47-tied-prologue.png", "reverse's prologue: the frame set up", + "push rbp in three instants, mov rbp, rsp in one, sub rsp, 0x18 in two, numbered in their order; " + "a pin's path drawn a few frames apart", PROLOGUE) + ways("48-tied-ways.png") + carry_sheet("56-carry.png") diff --git a/design/motion.md b/design/motion.md index 2e127b9..461f2a8 100644 --- a/design/motion.md +++ b/design/motion.md @@ -60,6 +60,12 @@ differently now: - `current` is a white wash across the row and the gold plaque; a strike's paper is a softened vermilion, and cools to nothing; `held` is a turned corner, which fades in over the cool's last 6 f. +- The disassembly is `tied` to the stack by default + ([`insn`](README.md#insn)): a row names the word it touches, and a walked + step's [`touch`](README.md#4-ties) draws from the row to the word in + memory's slot, before the word reacts. A read is a cause: a load's word is + reached and read before the register it fills is struck. Charts: "A word + touched", "The stack's own instructions". ## What was measured @@ -144,8 +150,8 @@ A step's length follows from its content: | only moves the line | 12 fire + 12 advance + 24 rest | 0.8 | | writes one register (or one word, or one cell) | 18 + 36 + 12 + 24 | 1.5 | | writes a register and memory | 36 + 48 + 12 + 24 | 2.0 | -| makes a call, three levels shown | 108 + 36 + 12 + 24 | 3.0 | -| returns from one | 126 + 24 + 12 + 24 | 3.1 | +| makes a call, three levels shown | 150 + 36 + 12 + 24 | 3.7 | +| returns from one | 144 + 36 + 12 + 24 | 3.6 | | swaps two cells | 90 + 36 + 12 + 24 | 2.7 | | crosses into the kernel | see the chart | 3.7 to 5.1 | @@ -394,6 +400,52 @@ A read is in the slot of its level. It is gone before the next line fires: in `sort` and `syscalls` read frames stand through the rest and vanish in one frame. +### A word touched + +Under `tied` ([mocks 44, 45](mock/44-tied-store.png)): the row names the word +and the touch carries the eye from the row to it before it reacts. A store, +`next = cur->next`'s last instruction, `mov [rbp - 0x18], rax` (no register +changes, so memory has the first slot): + +| Frames | | +| --- | --- | +| 0 to 12 | fire on the row | +| 18 to 30 | the touch draws from the row's end across the gutter to `next`'s word, head first, `standard`, in write's vermilion | +| 30 to 42, 42 | arm, strike: the word (`405010`), and the row's value with it, an echo | +| 60 to 90 | the idea: `next`'s pin travels under its node, 18 f after the strike | +| 90 to 126 | hold | +| 126 to 138 | advance; the touch draws back into the row (12 f); the cool starts | +| 138 to 162 | rest: 2.7 s with the idea, 1.9 without | + +A load, `mov rcx, [rbp - 8]`: the read is the cause, so it goes first. + +| Frames | | +| --- | --- | +| 0 to 12 | fire | +| 18 to 30 | the touch, in read's colour, to `prev`'s word | +| 30 to 36 | the word framed `read`, and the row's `prev` with it | +| 36 to 48, 48 | arm, strike: rcx (`405050`) | +| 54 to 78 | rcx's link climbs the gutter to its pin under the node of 9 | +| 78 to 114 | hold: the thread, the touch and the link, the three lines | +| 114 to 126 | advance; the touch, the frames and the link draw back | +| 126 to 150 | rest: 2.5 s | + +A store of the value its word already held (a `push rbp` over a frame's +old saved rbp, `cur = head` over a word that held head's value): the touch +lands, the arm's frame comes and goes (12 f) and nothing is struck. + +With `carry = .arrow` ([mock 56](mock/56-carry.png)) the load is one gesture, +the row reaching into memory and the value coming back: fire 0 to 12; the +touch to `prev` 18 to 30, framed 30 to 36; the touch draws back as the carry +leaves the word, up the gutter's right lane to rcx, 36 to 54; rcx armed 54 to +66, struck at 66, the carry drawing back 66 to 84; rcx's link 72 to 96; hold, +advance: 2.8 s. The store draws its carry and no touch: fire; rax framed read +18 to 24; the carry down to `next`'s word 24 to 42; armed 42 to 54, struck at +54; the carry back with the strike; `next`'s pin 72 to 102: 2.6 s. A word +outside the window: the window scrolls (24 f) before the touch draws, and the +touch draws to where the word now is. At a run no touch is drawn: the names +change in place under the run's crossfade. + ### A pointer written | Frames | Memory | The idea (one slot later) | @@ -427,47 +479,83 @@ name that joins or leaves cross-fades over 12 f. ### A call pushed Three levels shown: the registers, the stack, the tree -([mock 12](mock/12-calls-subject.png) is its frame 108). +([mock 12](mock/12-calls-subject.png) is its frame 108 as it was drawn +before the order below; [mock 46](mock/46-tied-call.png) is this order on +`reverse`'s call, instant by instant). The instruction's order: the word the +call writes comes before the pointer that moves onto it. | Frames | | | --- | --- | -| 0 to 12 | fire on the line that calls | -| 6 to 18, 18 | arm, strike: `rdi`, the argument | -| 12 to 24, 24 | arm, strike: `rsp`. Its pin stays on the window's top row: no link | -| 30 to 48 | the stack's rows slide down one slot, `glide`, as rows making room do: the new top row comes in with them | -| 48 to 60, 60 | arm, strike: the return address, in the new top row; the new frame's `call` span (gold, `fib(2)`) and its `backtrace` row fade in with the strike, the old ones going to rule and dim | -| 66 to 72 | the new backtrace row's bracket (`project`): the frame the return address made | -| 72 to 102 | the projection draws from it into the gutter beside the drawing and along the drawing's bottom lane to the place of the new node, 30 f, `standard` | -| 90 to 102 | the edge draws from the caller's node, arriving with the line | -| 102 to 108 | the callee's node fades in gold; the caller's goes from gold to a waiting ring | -| 108 to 144 | hold | -| 144 to 156 | the advance: the mark on the calling line cools to the trail, out 6 f; in 6 f on the callee's first line (the panel scrolls first if it must); the projection draws back out (18 f) | -| 156 to 180 | rest | +| 0 to 12 | fire on the line that calls; its call row says `fib(2) · rsp -8` | +| 6 to 18, 18 | arm, strike: `rdi`, the argument, set by the line's instruction before the call | +| 24 to 36 | the call row fires within the line's step; the touch draws to the free word over rsp | +| 36 to 48, 48 | arm, strike: the return address in it, while rsp has not moved | +| 54 to 78 | rsp's pin climbs onto the word (24 f, `glide`), `-8` on it, the bracket over the word; the new frame's `call` span (gold, `fib(2)`) grows with the pin, the old going to rule and dim; its `backtrace` row fades in | +| 78 | rsp struck as the pin lands, the row's `-8` with it | +| 84 to 90 | the new backtrace row's bracket (`project`): the frame the return address made | +| 90 to 120 | the projection draws from it into the gutter beside the drawing and along the drawing's bottom lane to the place of the new node, 30 f, `standard`; the edge draws from the caller's node, arriving with it | +| 120 to 126 | the callee's node fades in gold; the caller's goes from gold to a waiting ring | +| 126 to 150 | the window follows: the rows glide down a slot, two free words over rsp again | +| 150 to 186 | hold | +| 186 to 198 | the advance: the mark on the calling line cools to the trail, out 6 f; in 6 f on the callee's first line (the panel scrolls first if it must); the projection and the touch draw back | +| 198 to 222 | rest: 3.7 s | +Under `whole` the same, less the touch: the return address is armed at 24. A call is a jump: the mark does not cross the lines between ([sheet](motion/sheets/fib-02.2-mark-crosses-seven-lines.png): seven lines in five frames). ### A return +The `ret` reads before anything moves, and rsp falls last. + | Frames | | | --- | --- | | 0 to 12 | fire on the `return` | -| 6 to 18, 18 | arm, strike: `rax`, the answer | -| 12 to 24, 24 | arm, strike: `rsp` | -| 42 to 48 | the return address framed as read (`ret` reads it); the frame's backtrace row takes its bracket | -| 48 to 78 | the projection, in read's colour, draws from that row to the node, 30 f | -| 78 to 90, 90 | arm, strike: the node's result on its shoulder, rax's digits; the node goes from gold to done, the caller from waiting to gold | -| 96 to 108 | the frame's span and backtrace row fade out, `exit` | -| 108 to 126 | the stack's rows slide up to the new rsp, `glide` | -| 126 to 150 | hold | -| 150 to 162 | the mark jumps back to the caller's line; the projection draws back | -| 162 to 186 | rest | +| 6 to 18, 18 | arm, strike: `rax`, the answer, set by the line's instruction before the `ret` | +| 24 to 36 | the `ret` row fires; the touch (read's colour) draws to the return address | +| 36 to 42 | the return address framed as read; the frame's backtrace row takes its bracket | +| 42 to 72 | the projection, in read's colour, draws from that row to the node, 30 f | +| 72 to 84, 84 | arm, strike: the node's result on its shoulder, rax's digits; the node goes from gold to done, the caller from waiting to gold | +| 90 to 114 | rsp's pin falls past the word, which goes quiet (`free`); the frame's span shrinks with the pin and fades as it ends, its backtrace row with it (`exit`); rsp struck as the pin lands (114) | +| 120 to 144 | the window follows | +| 144 to 180 | hold | +| 180 to 192 | the mark jumps back to the caller's line (6 out, 6 in); the projection and the touch draw back | +| 192 to 216 | rest: 3.6 s | The answer's tie is its digits: rax's and the badge's are the same number, struck one level apart. A line from rax would be a sixth thing in the frame saying what the digits say. +### The stack's own instructions + +The move of rsp or rbp is the event of these steps, and is seen as a move: +the rows hold, the pin travels row by row with its amount on it, the rows it +crosses are gained or released, the frame's span rides it, and the window +follows only after it has landed ([stack](README.md#stack), mocks +[46](mock/46-tied-call.png) and [47](mock/47-tied-prologue.png), each +instant numbered in its order). Under `tied`; in each, nothing downstream is +armed or marked before what is upstream of it has shown. + +| Instruction | What fires · what travels · what lands · what answers, in frames | +| --- | --- | +| `push rbp` | fire 0 to 12 (the row: `rsp -8 · saved rbp`) · the touch to the free word over rsp 18 to 30 · the word armed 30 to 42 and struck at 42 (rbp's own value already there: the arm's frame alone) · rsp's pin climbs onto it 48 to 72, `-8` on it, the bracket over the word, the span stretching, the role `saved rbp` fading in as the pin reaches the row; rsp struck at 72 with the row's `-8` · the window follows 78 to 102 · hold, advance, rest: 2.6 s | +| `mov rbp, rsp` | fire 0 to 12 (`rbp = rsp`) · rbp's pin flies from its row (main's saved rbp, or in from the window's foot) up the lane to rsp's, 18 to 48 (rsp slides aside 36 to 48 for it) · lands at 48, rbp struck · the offsets' base becomes rbp, the tag's note crossfading 48 to 60, no digit changing · hold, advance: 1.9 s | +| `sub rsp, N` | fire 0 to 12 (`rsp -0x18 3 words`) · rsp's pin climbs N/8 rows, 18 to 42 for three (24 f and 6 f a further row, 48 at most), the amount counting as it crosses each row, each row brightening from `free` and its role fading in as the pin reaches it, the bracket and the span under it; where the headroom is not room enough the rows slide down under the pin for the rest, one move · lands, rsp struck with the row's amount · the window follows (if it did not on the way) · hold 24, advance: 1.8 s | +| `add rsp, N` | fire · rsp's pin falls N/8 rows (the same times), each row it leaves released to `free` and its role fading, the span shrinking · lands, rsp struck · the window follows when more than two free words stand over rsp: 1.7 s | +| `pop rbp` | fire 0 to 12 (`rsp +8 · saved rbp`) · the touch (read) to the top word 18 to 30 · framed 30 to 36 · rbp's pin flies to its new row (or out at the window's foot as a stub, `3 rows`) 42 to 72, rbp struck as it lands · rsp's pin falls a row 78 to 102, the word left `free`, the base going to rsp (crossfade); rsp struck at 102 · the window follows · advance: 2.6 s | +| `leave` | fire (`rsp +0x20 · saved rbp`) · the touch (read) to the saved rbp 18 to 30, framed 30 to 36 · rsp's pin falls to it and past it to the return address, 42 to 90 (the locals and the saved rbp released as it passes, the span shrinking to the return address), rsp struck at 90 · rbp's pin flies to the caller's base 96 to 126, rbp struck as it lands · the base to rsp · the window follows · advance: 3.0 s | +| `enter N, 0` | `push rbp`'s order, then `mov rbp, rsp`'s, then `sub rsp`'s, one after another in one step: 4.2 s | +| `call`, `ret` | "A call pushed", "A return", above | + +**Paces.** At a walk as above. At a run the pins still travel and are seen: +8 f and 2 f a row (16 f at most), drawn over the veil with the bracket, the +span and the rows' gain or release, no amount on the pin and no touch; the +window follows in the same 8 f. At a sprint, on the map: rsp is the newest +frame's edge on the stack column, moving with each moment (4 f), the spans +growing and shrinking with it: a deep recursion reads as the column growing +down and coming back. + ### The line changes | | Frames | | @@ -553,17 +641,18 @@ step is a `continue`. Nothing on the kernel's side changes before frame | Frames | | | --- | --- | | 0 to 12 | fire on the call row | -| 12 to 24, 24 | arm, strike: `rsp`. Its pin stays on the window's top row | -| 30 to 48 | the stack's rows slide down one slot, `glide` | -| 48 to 60, 60 | arm, strike: the return address, `main+48` | -| 66 to 78 | the caller's window closes round its call row, first move: the rows it gives up fade out (those after its return row, and from its top as many as the callee needs) | -| 78 to 96 | second move: the rows it keeps glide up to their places, `glide`, where they move at all. Never both at once: a row gliding over a row fading is text on text | -| 84 to 96 | the call row's gold plaque becomes the waiting ring | -| 96 to 114 | the call lane draws down from the ring, head first, `standard`, to the head's place directly under the return row | -| 108 to 120 | the callee's head fades in rising 8 units as the lane reaches it | -| 114 to 138 | its rows fade in top down, 2 f apart, 12 f each | -| 138 to 150 | the advance: the plaque lands on the callee's first row; the source's line goes `waiting` (6 f) where the callee has no source | -| 150 to 174 | rest: 2.9 s | +| 18 to 30 | the touch to the free word over rsp | +| 30 to 42, 42 | arm, strike: the return address, `main+45` | +| 48 to 72 | rsp's pin climbs onto it, `-8` on it, the stub's span arriving; rsp struck as it lands (72) | +| 78 to 102 | the stack's window follows | +| 108 to 120 | the caller's window closes round its call row, first move: the rows it gives up fade out (those after its return row, and from its top as many as the callee needs) | +| 120 to 138 | second move: the rows it keeps glide up to their places, `glide`. Never both at once: a row gliding over a row fading is text on text | +| 126 to 138 | the call row's gold plaque becomes the waiting ring | +| 138 to 156 | the call lane draws down from the ring, head first, `standard`, to the head's place directly under the return row | +| 150 to 162 | the callee's head fades in rising 8 units as the lane reaches it | +| 156 to 180 | its rows fade in top down, 2 f apart, 12 f each | +| 180 to 192 | the advance: the plaque lands on the callee's first row; the source's line goes `waiting` (6 f) where the callee has no source | +| 192 to 216 | rest: 3.6 s | The stub's `jmp`, the next step, reads its GOT slot: fire (0 to 12); the slot framed as read in memory, on the map or in a loupe, and the row's @@ -579,14 +668,15 @@ crossfade to `open`'s (84 to 96, 12 f, never in a frame); advance (96 to | Frames | | | --- | --- | | 0 to 12 | fire on `ret` | -| 18 to 24 | the return address framed as read on the stack | -| 24 to 36, 36 | arm, strike: `rsp` | -| 48 to 72 | `open`'s window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; the stub's `pass` row with it: the return skips the stub | -| 72 to 84 | the lane draws back up into the ring | -| 84 to 102 | main's window opens in the reverse of its closing, first move: the rows it kept glide back down to their places, `glide` | -| 102 to 114 | second move: the rows it gave up fade in | -| 114 to 126 | the ring becomes a trail bar, the call's annotation takes its result (`= 3`, 6 f), and the plaque lands on the row after the call; the source's line from `waiting` to `current`, its tag crossfading | -| 126 to 150 | rest: 2.5 s | +| 18 to 36 | the touch (read) to the return address, and its frame | +| 42 to 66 | rsp's pin falls past it, the word released to `free`, `open`'s span shrinking away; rsp struck as it lands | +| 72 to 96 | the stack's window follows | +| 96 to 120 | `open`'s window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; the stub's `pass` row with it: the return skips the stub | +| 120 to 132 | the lane draws back up into the ring | +| 132 to 150 | main's window opens in the reverse of its closing, first move: the rows it kept glide back down to their places, `glide` | +| 150 to 162 | second move: the rows it gave up fade in | +| 162 to 174 | the ring becomes a trail bar, the call's annotation takes its result (`= 3`, 6 f), and the plaque lands on the row after the call; the source's line from `waiting` to `current`, its tag crossfading | +| 174 to 198 | rest: 3.3 s | A descent is a beat the narration names, and each of its steps is walked: at a run the windows open and close in 8 f with no lane drawn, and at a @@ -1422,6 +1512,151 @@ Every caption is up its reading time and at most 450 f, leads its step by 60 f (120 for a chapter's first), and changes only in a rest. The rests are the chapters' ends: 2 s on each last picture. +## A scene in the column: `open` followed down + +The trial of the [column](README.md#column-an-experiment): the syscalls +scene's first part, `open` followed down from main through the PLT and libc +into the kernel and back, built as a variant beside the scene as it is +(`anim/scenes/syscalls.zig`), on the same recording (`hello`, by instruction +from main; the moments below are a fresh recording's, `ztrace record --by insn +--from main`, and move with the build). Vertical position has a meaning here +that it has nowhere else: the story goes down a call at a time to the kernel +and comes back up, and each bubble, level with its row, goes down with it. +Mocks 49 to 53 are five of its beats, 54 the crossing in both forms. + +**As it is** (the present frame, `beside`, the descent in 17 rows, a caption +of two lines under the stage): + +| | Moments | Step | The caption | +| --- | --- | --- | --- | +| P1 | 30 to 34 | walk by line to line 6 | A program cannot open a file itself. / It asks the kernel, and waits. | +| P2 | 34 to 37 | walk to the call | `main` calls `open` by its stub in the PLT, with "note" / in rdi and O_RDONLY in rsi. | +| P3 | 37 to 38 | `descend` | The call goes down: main's call waits, ringed; / the stub's three rows open under it. | +| P4 | 38 to 39 | the stub's jmp | The stub's jmp reads open@got / and goes on to libc's `open`. | +| P5 | 39 to 61 | a run | libc's `open` is a wrapper: a few lines of C, open64.c, / up to the instruction that calls the kernel. | +| P6 | 61 to 64 | walk, three | Its last three set r8 to 0, rdi to AT_FDCWD (-100) / and rax to 257: openat's number. | +| P7 | 64 to 65 | `cross` | `syscall` crosses down. The kernel opens the file / and answers in rax: 3, the descriptor. | +| P8 | 65 to 75 | a run, then `ascend` | `open`'s ret comes straight back to main: the stub / was a jump, not a call. The windows close up. | + +**In the column**: the author's choices, a beat a row, as a scene file is +written from them. *Panes* are in the column's order with their rows (`rest`: +what the column has left above the floor); everything else is on the shelf, +its note given. *Level* is the row a bubble's first line sits beside; +*stem* the row its stem points at in the rest before the step (none: its +level is the tie). Where a cell says *default*, the author wrote nothing +there. + +| | Moments, step | Placement | Panes | Shelf (notes) | The bubble | Level | Stem | +| --- | --- | --- | --- | --- | --- | --- | --- | +| C1 | 30 to 34, walk by line | `below` | the working frame whole (`beside`) | | A program cannot open a file itself. / It asks the kernel, and waits. (the caption, as P1) | | | +| C2 | 34 to 37, three walked | `beside` | source 3 (5 to 7), disassembly 11, registers (14 rows, all) | system calls · its bytes · stack | main puts open's arguments where the convention says: "note" in rdi, 0 (O_RDONLY) in rsi. | default: the `lea` row, the beat's first | default: the same | +| C3 | 37 to 38, `descend` | `beside` | source 3, disassembly 11 becoming the descent, stack `rest` (19 words) | system calls · its bytes · registers (rsp struck) | The call pushes where to come back to, main+45, and goes down to open's stub. | the call row | the call row | +| C4 | 38 to 39, the stub's jmp | `beside` | source 3 (line 6 waiting), the descent (main 8, the stub 3), stack `rest` | system calls · its bytes · registers | The stub in the PLT is one jump: it reads open@got, where the loader wrote libc's open. It pushes nothing. | the stub's `jmp` | the same | +| C5 | 39 to 61, a run | `beside` | source 2, the descent (main 3, the stub 1, open's window following the pc), stack `rest` (open's frame growing: its pins travel over the veil) | system calls · its bytes · registers | libc's open is a wrapper: a few lines of C around the one instruction that calls the kernel. | open's head row | open's head row | +| C6 | 61 to 64, three walked | `beside` | source 2, the descent (main 3, the stub 1, open 6), registers 14 | system calls · its bytes ("note" handed in) · stack (open's frame, 16 words) | Its last three set the kernel's arguments: AT_FDCWD in rdi, and 257, openat's number, in rax. | the first of the three (`xor r8d`) | none | +| C7 | 64 to 65, `cross` | `beside` | source 3 (waiting), the descent with the kernel at its floor (24 rows) | system calls (its row arriving) · its bytes · registers (rax 3 struck, rcx, r11) · stack | syscall crosses down. The kernel opens "note" and answers 3: the file's descriptor, in rax. | the kernel's head | none | +| C8 | 65 to 73 a run, 73 `leave`, 74 `ascend`, 75 the store | `beside` | source 3, the descent closing to main's window (13), stack `rest` (open's frame released as rsp's pin falls) | system calls · its bytes · registers (rax 3) | open's ret comes straight back to main: the stub was a jump, not a call. main keeps the answer in f. | main's call row (the bubble climbs back) | none | +| C9 to C11 | `read`, `close`, `write`, each stepped over | `beside` | its bytes (buf, 3 rows) over the source 3, main's disassembly with the kernel's window under the call row | system calls · registers · stack | the present captions for the three | each call row | each call row | +| C12 | to main's return | `below` | the working frame whole | | the present closing | | | + +**One beat, its frames** (C2 to C3, from the end of C2's last step's rest): + +| Frames | | +| --- | --- | +| 0 to 18 | C2's bubble dims to `dim`, losing its paper | +| 18 to 30 | the registers' rows fade | +| 30 to 54 | the registers' panel closes to its tag as the tag travels to the shelf (24 f, `glide`); its note fades in there: `rsp` | +| 54 to 78 | the stack's tag travels from the shelf to its box as the panel opens under the disassembly (24 f) | +| 78 to 90 | the stack's rows fade in | +| 90 to 114 | C2's bubble glides up out of the way of the next (24 f, `glide`) | +| 114 to 132 | C3's bubble arrives level with the call row, rising 8 (18 f) | +| 120 to 132 | its stem draws to the call row | +| 132 to 192 | the lead: the bubble read, the frame still | +| 192 | the step fires (`descend`, its touch to the free word over rsp, as "A call pushed"), and the stem draws back over its first 12 f | + +So a beat that changes its panes costs about 96 f, 1.6 s, over the caption's +change (out 12, gap 6, in 18, then the same 60 f lead), and a beat that keeps +them nothing. Over C2 to C8 the panes change five times: about 8 s on a part +of some 45 s. + +**What the scene's code says for a beat.** The author's choices are the +beat's arguments, each optional; what it leaves out is defaulted as the +catalogue says, never against what it wrote: + +```zig +// C3: the call goes down. The stack under the descent, the rest on the shelf. +col.beat(s, .{ + .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .stack, .rest } }, + .say = "The call pushes where to come back to, `main+45`,\nand goes down to open's stub.", + .at = .beside, // .below .above .on; default .beside in a column scene + .level = .{ .row = call }, // default: the row of the beat's first step + .stem = .{ .row = call }, // default: what it is level with; .none +}); +canim.descent.step(cur, s, .moment); // the step itself, as in the scene now +``` + +**What it costs and gains, beat by beat** (the working frame against the +column, at each beat's hold): + +| Beat | The working frame shows | The column shows | Leaves on the shelf | +| --- | --- | --- | --- | +| C2 | source 8, disassembly 17, registers 14, stack 11, the log and its bytes | source 3, disassembly 11, registers 14 | the stack (nothing changes in it), the log, its bytes | +| C3 | the same; the descent closing main's window to 3 | source 3, the descent, a stack of 19 words with the return address on top | the registers (rsp struck on its tag) | +| C4 | the descent 17 (main 3, stub 3) | the descent 12 (main 8, stub 3) and the stack (the return address held: the stub pushes nothing) | the registers | +| C6 | the descent 17, registers 14 | the descent 12 (open 6), registers 14 (rip above 888) | the stack | +| C7 | the descent 17 (open 8), registers 14, stack 11 | the descent 24 (open 13, the kernel 2) | the registers (rax 3 struck on the tag), the stack, the log (its row) | +| C8 | the windows closing, stack 11 | main 13, a stack of 18 | the registers | + +Nothing the narration depends on is only on the shelf: rax's 3 is in the +kernel's `returns 3`, on the registers' tag, and in the bubble; rsp's move is +the stack's pin when the stack stands, and the registers' tag when it does +not. The context is whole at C1 and C12 (`below`), on the shelf throughout, +and on the map. + +**How the render is to be judged**, both variants played to the same viewer +(the user, on the device the videos are watched on), at 1080p and at 480p: + +- At each beat's hold, with the sound off: can one say what the step did and + where, from the frame alone? Count the beats where the column's answer is + quicker, and where something wanted was folded. +- Eye travel: the distance from the bubble's first line to the step's mark + (the current row, the struck value); within two rows for most of each + beat in the column, against the caption's 300 to 800 in the working frame. +- The account: after the crossing, can the viewer find what the call row's + bubble said without rewinding? +- The motion instruments (CROWD, POP, METRONOME, CAPTION, AIR): no POP from + a fold or an unfold, no CROWD from the beat changes. +- Time: the scene no more than a sixth longer. +- Taste, said plainly: whether the frame with half its panes folded feels + like canim (the whole context, pwndbg's density) or like a slide deck. + +**What I think.** A style for some scenes and some beats, not the way every +scene is made: it wins where the story is a column of rows that goes down and +comes back (a call followed down, a recursion, the stack growing, a loop told +turn by turn beside its rows), and loses where every step acts on the program +and the state at once (sort's swaps with the array, the heap scene's two rows +of nodes and their bytes): there the working frame is the subject and its text +belongs `below` or `above`. So the placements are the instrument: a scene +mixes `below` and `beside` beat by beat, `on` for a drawing with room, and the +working frame stays the language's default and a column scene's opening and +close. + +**If it wins**, what changes in the two storyboards waiting for it. *The ASan +pair*: its facing beats need both runs side by side and stay `below` (or +`above`, the seam undisturbed); from i = 16, when they part, plain goes on +alone: its frame's bytes (`hexdump` `eight`) stand in the panes' column the +height of the stage, and each bubble sits level with the field the turn's +letter lands in, `buf`, the saved rbp, the return address, so the narration +climbs the frame as the overflow does; ASan's report is unfolded as the +subject of its own beat, a bubble level with each line it explains (`WRITE of +size 1`, `[32, 48) 'buf'`). *The introduction*: `segments` is a tall subject, +`beside`, a bubble level with each band as it is enlarged, the stack's at the +top and the program's at the foot, so the chapters go down the address space; +`regroup` at x2 is a drawing with room, its bubble `on` it beside the walked +word; `aligned` spans both columns and keeps its text `above`; the stack panel +built over the words is `beside`; and its one walked load is the beat for +`carry = .value`. + ## Stills Seen while looking at motion; against `README.md`. |
