~/talk

Zephyr OS Memory Protection

Talkat Open Source Summit Europe 2019 · on Tuesday, 2019-10-29· at 14:25· Forum 6· [embedded-and-hardware, security]
links:none on file
slides:none on file

Zephyr implements MPU-backed user mode with memory domains, using a build-time DWARF scan and a perfect hash table (via Jeepers) mapping kernel-object addresses to metadata and per-object permission bitmaps indexed by numeric thread IDs. System calls run a verification step that validates pointers, copies user buffers to avoid TOCTOU, and enforces policy. The runtime programs MPU/MMU regions (some boards expose 16 regions), enforces power-of-two alignment, supports futex-like fewtex locks to avoid syscalls when uncontended, and routes globals into linker-generated partitions.

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.