~/talk

Zephyr OS Memory Protection

links:none on file
slides:none on file

Zephyr implements MPU-based protection on Cortex-M and an identity-page MMU on x86, using memory domains (collections of MPU partitions) programmed on context switch so threads only map their stack, text, and granted partitions. Kernel objects get a build-time perfect-hash table (DWARF parse + jeeper) mapping addresses to metadata and per-thread permission bitmaps. A futex-like fewtex lets uncontended locks avoid syscalls. Automatic linker-driven partition coalescing handles MPU alignment/power-of-two sizing; build-time ELF parsing (pyelftools) is slower but functional.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Zephyr vs. Linux
  3. 1:33So What's the Problem?
  4. 6:30High Level Security Objectives
  5. 8:02User Mode Threads
  6. 12:36Build Generation
  7. 15:01Object Metadata
  8. 16:36Futex-like objects
  9. 20:06Dynamic Kernel Objects
  10. 23:40System Calls Flowchart
  11. 24:20MPU Hardware - SAM E70 Example
  12. 25:43Memory Domains / Kernel Object Permissions
  13. 27:34Automatic Memory Domain Setup
  14. 28:34Automatic Memory Partitioning
  15. 30:35Resource Allocation
  16. 31:24Wrap-Up
~/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.