~/talk

Understanding Data Races in the Linux Kernel

Talkat Open Source Summit Europe 2025 · on Tuesday, 2025-08-26· at 11:55· G001-G002 (Level 0)· [security]
links:none on file
slides:none on file

States that kernel data races cause silent corruption and security holes and demonstrates tooling: KCSAN (enable CONFIG_KCSAN=y) uses hardware watchpoints plus sampling and prints conflicting read/write addresses, sizes, stack traces and sometimes observed value changes, while TSan uses compiler instrumentation to check every access but is much heavier. Notes KCSAN is probabilistic and misses races (roughly 75% detection reported in experiments), allows sample‑rate tuning, and recommends locks, RCU, atomics and SMP store-release ordering as prevention.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Kernel data races matter
  3. 4:14Kernel concurrency explained
  4. 8:12Smallest data race example
  5. 10:43Kernel sync primitives
  6. 13:34Memory barriers and ordering
  7. 15:22Static analysis limits
  8. 16:45TSAN and KCSAN overview
  9. 18:53KCSAN in action
  10. 21:28Reading KCSAN reports
  11. 24:04KCSAN limitations
  12. 25:48Preventing data races
  13. 29:05Prevention checklist
  14. 30:12Key takeaways
  15. 32:01Q&A
~/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.