~/talk

Protected DMAbufs and its dynamic memory assignment woes

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [security]
links:none on file
slides:none on file

Protected DMA-buf support targets secure media pipelines using a GStreamer pipeline with OP-TEE and must handle allocations of hundreds of MBs while keeping plaintext frames invisible to kernel/user space. Static carveouts work but waste memory; dynamic assignment requires lending normal pages to firmware and then removing kernel mappings, yet current dma_alloc_pages cannot unmap kernel pages and there’s no solid API. Explored fixes include HMM/device-private/device-exclusive approaches and a GFP-flag patch that allocates already-unmapped pages, but a reliable, efficient solution is still pending.

AI-written summary · about

  1. 0:00Introduction to protected DMAbufs
  2. 3:15Secure media pipeline use case
  3. 6:46Kernel mainline adoption challenges
  4. 9:18Static memory carveouts limitations
  5. 10:45Dynamic memory assignment woes
  6. 13:58HMM and kernel page unmapping
  7. 18:15Memory protection and T framework
  8. 19:42Future confidential compute use cases
~/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.