~/talk

Keeping Track of Resources in the Kernel - Overview and Pitfalls...

links:none on file
slides:none on file

Covers concrete kernel helpers and concrete failure modes: devres misuse breaks when resources live outside the bind/unbind window (don’t call devm from subsystem code, don’t manage devices whose lifetime is uncontrolled, don’t hand devres-owned objects to subsystems), DMA remove often needs non-reverse teardown order, and mixing devres with kref objects causes leaks/use-after-free. Shows scope-based cleanup via cleanup.h guards (__attribute__((cleanup))) and scope loops for refcounted objects which simplify cleanup but forbid jump-over/goto patterns and can change break/continue semantics. Modules require try_module_get semantics to pin providers.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:54Device managed resources (devres)
  3. 19:18Devres pitfalls and don'ts
  4. 22:07Scope-based cleanup with cleanup.h
  5. 27:42Guards and scope guards
  6. 30:08Reference counting in the kernel
  7. 34:00Mixing devres and refcounting
  8. 35:43Modules as special refcounting
  9. 37:06Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.