~/talk

The life cycle of the mm_struct

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

Multiple regressions where an mm_struct is observed half-initialized or lingering cause real crashes: tasks with zero VMAs, incomplete setup that drops locks before exit, and a teardown that spans a read lock plus an MMU notify flush so ordering breaks. External subsystems (zswap, oom, pte-lock contention, perf) amplify races. Past mitigations move the probe lock and fix a maple-tree loop — those patches stop specific breakages but don’t generalize. Stronger solution: enforce refcount discipline (use mm_get_not_zero and proper grab/get semantics) and define a single mm lifecycle so walkers never see partially torn-down state.

AI-written summary · about

  1. 0:00Introduction to mm_struct
  2. 3:23Current problems and workarounds
  3. 8:19Reference counting challenges
  4. 12:18Race conditions in VMA handling
  5. 14:25Root cause and solutions
~/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.