~/talk

Userspace in Zephyr: Overview and Practicality

Talkat Embedded Open Source Summit 2024 · 2024-04-16..04-18· [security]
links:none on file
slides:none on file

Zephyr implements a userspace model that enforces access by assigning buffers and globals to memory partitions and grouping threads into memory domains; illegal MMU/MPU accesses cause page‑faults that kill the thread. Kernel services use an explicit syscall argument verification step and copy‑in/copy‑out, which prevents TOCTOU attacks but adds latency and extra stack/page‑table memory. Userspace requires MPU or MMU, offers isolation for accidental bugs (not full hostile code protection), and uses build‑time linker magic with examples in the docs.

AI-written summary · about

  1. 0:00User space in Zephyr
  2. 0:43User vs kernel space
  3. 3:53Sharing data between threads
  4. 7:12System calls from user space
  5. 15:00Why and why not use user space
  6. 21:09Q&A: Applications & limits
  7. 23:16Q&A: Loadable modules
  8. 25:25Q&A: MMU vs MPU
  9. 27:40Q&A: Memory access permissions
  10. 30:49Q&A: Memory access errors
  11. 31:32Q&A: Memory partitioning
  12. 32:17Q&A: Memory layout tooling
  13. 32:59Q&A: Driver code in user space
  14. 33:40Q&A: User space vs TEE
  15. 34:26Q&A: Future user support
  16. 35:32Q&A: Interactive scenarios
  17. 36:58Q&A: Threat model limits
  18. 37:42Q&A: Shell & user support
  19. 38:04Q&A: User space overhead
  20. 39:54Summary
~/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.