~/talk

Catching Real-time Safety Violations in C++

Talkat C++ on Sea 2024 · 2024-07-02..07-05· [security]
links:none on file
slides:none on file

Describes a practical stack for finding real‑time safety violations: use kernel tracers (mac System Trace, dtrace, strace/ltrace) to catch syscalls and futex waits but expect noisy output; use LD_PRELOAD interposing or a shared‑library shim to intercept malloc/free and pthread_mutex calls (works and finds allocations and locks, but yields false positives for uncontended lock fast‑paths and misses inline syscalls); add an operator new/delete override with thread‑local realtime scopes for app‑level checks; try RTSan (clang fork) for attribute‑based detection and future no_alloc/no_lock static checks.

AI-written summary · about

  1. 0:00Introduction and concepts
  2. 2:18Defining real-time safety
  3. 5:20Detecting violations
  4. 8:54Using GUI tools
  5. 11:51Atomic and lock challenges
  6. 14:54Command line tracing tools
  7. 17:22Deep dive with Dtrace
  8. 21:13Code-level instrumentation
  9. 25:12Progressive real-time testing
  10. 32:40Mutex contention and safety
  11. 35:14Function interposing
  12. 41:33RTSan implementation
  13. 45:03Future of real-time analysis
~/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.