~/talk

Demystifying Process Address Space: Heap, Stack, and Beyond

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [linux-and-operating-systems]
links:none on file
slides:none on file

Linux x86 process layout shows 48-bit virtual addresses split into user vs kernel space, kernel uses KPTI for isolation, and ASLR randomizes most mappings; pmap and readelf + objdump reveal segments, ELF program headers, and the interpreter path. Heap allocation flips between brk and mmap depending on malloc’s threshold; stacks always grow downward and threads get separate mmap’d stacks with guard pages. JIT-style code is placed via mmap/mprotect, bytes copied and executed successfully.

AI-written summary · about

  1. 0:00Process address space intro
  2. 7:06Virtual vs physical memory
  3. 13:26Kernel vs user space
  4. 16:37Demo of memory layout
  5. 24:25Inspecting memory with pmap
  6. 33:13Heap memory region
  7. 36:45Stack memory region
  8. 41:25Debugging stack with GDB
  9. 47:50Environment variables
  10. 48:53Memory mapping segment
  11. 53:14Minimizing memory layout
  12. 55:44Thread stacks and guard pages
  13. 57:49Dynamic code execution
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.