~/talk

Challenges and Innovations Towards Spatial Safety in the Linux Kernel

Talkat Open Source Summit Europe 2024 · 2024-09-16..09-18· [security]
links:none on file
slides:none on file

Work since 2019 converts ad hoc trailing arrays into C99 flexible array members, annotates them and hardens memcpy so the kernel uses __builtin_dynamic_object_size mode 1 instead of naive copies; compiler-side fixes include -fstrict-flex-arrays (GCC13/Clang16) and the counted_by attribute (GCC15/Clang18) to give runtime sizes. The effort finds ~60,000 warnings across the tree, reduces a set of ~600 unique cases to ~300 with patches, and surfaces ~3–5 real bugs; the fortified memcpy instrumentation now provides practical bounds checking.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Array safety basics
  3. 9:51Kernel hardening origin
  4. 10:11BleedingTooth vulnerabilities
  5. 13:23Fortifying memcpy
  6. 15:34__builtin_object_size modes
  7. 18:48Cross-member overflows
  8. 22:23Trailing arrays ambiguity
  9. 27:25Fixing trailing arrays
  10. 31:18counted_by attribute
  11. 34:19Dynamic object size
  12. 36:52Flexible arrays in structs
  13. 40:28Flexible array misuse
  14. 43:37Summary
~/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.