diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 19:11:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 19:35:09 -0300 |
| commit | cc2059e39047cafe1886dc17084855ddd0c52b01 (patch) | |
| tree | 84346e7d956cd16425391e5b07f7ffc7135d34ed /design/mock | |
| parent | b54c6776953d3243ab5b8e676e747713827ab320 (diff) | |
| download | computeranim-cc2059e39047cafe1886dc17084855ddd0c52b01.tar.gz computeranim-cc2059e39047cafe1886dc17084855ddd0c52b01.zip | |
design: the disassembly tied to the stack; rsp's moves seen; a column of text as an experiment
From the user. A fact is printed once, in the pane that holds it: under
annotation = .tied a row names the word it touched and a touch line
ties it to its stack row while a step is walked; .whole keeps the full
chain. An instruction that moves rsp or rbp says the amount, and the pin
travels row to row with the rows it gains or releases marked, the stack
following only after it lands. Every strip is ordered cause before
effect and numbered. carry is an optional arrow from memory to a
register. An experiment sets a column of text bubbles beside the panes a
beat is about, each bubble level with what it speaks of, tried on the
call followed down; text may also stand below, above or on a drawing.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'design/mock')
28 files changed, 3022 insertions, 1 deletions
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") |
