From 2a97030c9743d4680d698414c28e8d8739614215 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 23:25:40 -0300 Subject: design: down is deeper; a call followed down; operands without size words; the heap as a scene From the user. Direction and nearness are rules: the idea, the source, its instructions, the callee and the kernel go down the frame, a call goes down and a return comes up, and every tie runs one of those ways. The disassembly can descend: a window a call depth, the caller keeping three rows with its call waiting, a PLT stub its jump, the kernel at the bottom on vellum, with verbs descend, cross and ascend. The kernel leaves the band, which keeps the calls so far as strace writes them; the backtrace has its newest frame at the bottom. Size words are dropped from operands and a width is shown as byte cells where nothing else says it; a compare shows its values and flags, a jump the flags it reads, an indirect call its target and the slot it was read from. libc's heap is a scene of blocks that exist (a dump by fields with a size and a protected pointer read, arcs as the free list, a loupe into the tcache, the list drawn over malloc's own), storyboarded on glibc 2.44. Mocks 16 to 18. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/14-sqlite-page.svg | 162 ++++++++++++----------------------------- 1 file changed, 45 insertions(+), 117 deletions(-) (limited to 'design/mock/14-sqlite-page.svg') diff --git a/design/mock/14-sqlite-page.svg b/design/mock/14-sqlite-page.svg index c22705b..5a8b676 100644 --- a/design/mock/14-sqlite-page.svg +++ b/design/mock/14-sqlite-page.svg @@ -121,10 +121,15 @@ 48 mov rcx, r14 + 4220 4b call -qword ptr [rip + 0xf1567] +[rip + 0xf1567] + + +__pwrite64 + = 4096 @@ -147,7 +152,7 @@ 4220 5e mov -ecx, dword ptr [rax] +ecx, [rax] @@ -325,121 +330,44 @@ unixWrite - - -kernel -the other side of a system call - -calls so far - - -pwrite64 -4096 - -pwrite64 -4096 - -fsync -0 - -pwrite64 -12 - -close -0 - -fsync -0 - -openat -5 - -fsync -0 -pwrite64 -system call 18 - -rdi -fd -3 -"t.db" - -rsi -buf -538b28 - -rdx -count -4096 - -r10 -offset -4096 - -rax -returns -4096 -the bytes it was given - - -0d - - -00 - - -00 - - -00 - - -03 - - -0f - - -e6 - - -00 - - -0f - - -f7 - - -0f - - -ef - - -0f - - -e6 - - -00 - - -00 - - -00 - - -00 - - -00 - - -00 + + +system calls +oldest on top · newest at the bottom +fsync +(…) = +0 +openat +(…) = +5 +fsync +(…) = +0 +close +(…) = +0 +pwrite64 +(…) = +12 +fsync +(…) = +0 +pwrite64 +(…) = +4096 +pwrite64 +(fd +3 + "t.db" +, buf +538b28 +, count +4096 +, offset +4096 +) = + +4096 -- cgit v1.3