~/talk

Improving resource ownership and life-time in linux device drivers

links:none on file
slides:none on file

Many subsystems mix reference‑counted resources with regular data and embed implementation structs inside driver private data, leading to use‑after‑free and leaked resources on unplug or provider unbind. Proposed fix: subsystems create and own a reference‑counted wrapper around the provider implementation, consumers hold opaque resource handles that weakly reference the wrapper, and API calls enter SRCU protection so calls return clean errors when providers vanish. Plan: convert gpio first, add a kernel library for the pattern, use Coccinelle and a test suite to find and fix affected drivers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Device driver lifetime issues
  3. 7:44Real-world resource problems
  4. 13:28Provider-consumer relationships
  5. 27:17Embedded struct device pitfalls
  6. 32:35Volfram’s proposed solution
  7. 35:41Unified resource wrapper model
  8. 41:44Abstraction library proposal
  9. 43:15Broader kernel implications
  10. 50:21Debugging and testing approaches
  11. 53:14Q&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.