Overview
OS-Sanitizer explores whether benign Linux runtime behavior can reveal latent defects before a visible failure. The series moves from defect-versus-failure distinctions to eBPF’s cross-layer event correlation, path analysis, coverage and workload costs, and case-study validation. Its central lesson is qualified: selected heuristics can expose context-dependent weaknesses and guide source review, reproduction, fuzzing, or testing, but they do not prove defects, replace static analysis, or cover unobserved executions.
Learning outcomes
- OS-Sanitizer can infer possible latent defects from selected runtime behavior before a visible failure, but its reports are contextual leads, not proof.
- eBPF connects selected user-space and kernel-space events through map-backed state; verifier safety does not establish application correctness.
- The prototype offers targeted dynamic coverage and cannot replace static, language-level, or failure-based analysis or reveal unobserved executions.
- System-interaction passes may be practical on some workloads, while hot userspace memory probes and repeated reports can impose substantial cost.
Keywords
Preview every chapter · Unlock full text, audio, and video from chapter 4
PlansFAQ
What does OS-Sanitizer actually detect?
OS-Sanitizer detects selected runtime behavior patterns that match heuristics for possible Linux defects or code smells; it does not prove a vulnerability or failure.
How does eBPF help OS-Sanitizer find latent defects?
eBPF lets OS-Sanitizer observe selected user-space and kernel-space events, preserve their relationships in maps, and send contextual suspicions to userspace without modifying target applications.
Can OS-Sanitizer replace testing or static analysis?
No. OS-Sanitizer complements testing and static analysis by supplying live system context, while source-only properties and unobserved executions require other methods.
When is OS-Sanitizer practical to run?
OS-Sanitizer is most practical when live, cross-layer context matters and monitored hooks are not too hot; system-interaction passes may suit passive use, whereas some memory-function probes are costly.