~/talk

MLEE: Effective Detection of Memory Leaks on Early-Exit Paths in OS Kernels

Talkat USENIX ATC '21 · 2021-07-14..07-16· [testing]
links:none on file
slides:none on file

A static detector called MLEE analyzes compiled RVM IR of Linux 5.0, identifies conditional early-exit branches, cross-checks allocations versus deallocations, and flags missed frees. Implemented as rrvm2 on RVM 8.0, it scans the whole kernel in ~30 minutes, reports 126 suspicious early-exit branches and yields 120 new memory leaks (103 branches confirmed and fixed), mostly in drivers; the tool reduces coverage gaps of dynamic detectors but admits false positives and negatives.

AI-written summary · about

  1. 0:00MLEE: Effective Detection of Memory Leaks on Early-Exit Paths in OS Kernels
  2. 2:11However, detecting leaks in OS kernels is still challenging The Linux kernel memory leak detector is a dynamic detection tool Cannot cover kernel code that is not executed at runtime
  3. 5:27MLEE: detecting memory leaks on early-exit paths Idea * Inconsistent presences of memory deallocations on different early-exit paths
  4. 7:35Challenge 1: how to identify early-exit paths? Problem: the diverse semantics and usage scenarios of early-cocit paths in OS kernels make it difficult to precisely identify early-exit paths
  5. 8:46Challenge 2: how to analyze memory deallocations? Problem: a missed memory deallocation may be not needed on a specific early-exit path
  6. 13:51Summary Memory leaks in critical system software can cause serious system issues To detect memory leaks in OS kernels, we develop and implement MLEE ✓ MLEE focuses on memory leaks on early-exit paths, which are often
~/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.