~/talk

Porting and Generalizing Dynamic Privilege in Linux

Talkat DevConf.US 2024 · 2024-08-14..08-16· [linux-and-operating-systems, security]
links:none on file
slides:none on file

Project ports a Dynamic Privilege mechanism from x86_64 to ARM64 by adding a K_elevate syscall and a task_struct flag to track elevation, with a working ARM64 implementation and lessons for RISC‑V. x86 needs an alternate exit path because sysenter/sysret (segment selector behavior) forces privilege drops; ARM uses PSTATE and the saved program status register to flip mode between SVC and return. A permissions fault on ARM leads to a pragmatic fix: a dynamic single-page PT mapping option passed to the syscall to make just the return page executable for elevated code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49What is Dynamic Privilege
  3. 3:13Motivations
  4. 5:20System call interface
  5. 7:50Kernel changes overview
  6. 8:10x86 challenges
  7. 10:39ARM flexibility
  8. 13:12Privileged memory access
  9. 16:02RISC-V future work
  10. 17:28Process caching
  11. 18:33Q&A
~/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.