~/talk

Challenges and Innovations Towards Spatial Safety in the Linux Kernel

Talkat LinuxCon @ OSS EU 2024 · on Monday, 2024-09-16· at 16:20· Hall M1 (Level 1)· [linux-and-operating-systems]
links:none on file
slides:none on file

Work since 2019 replaces ad‑hoc trailing arrays with C99 flexible array members, fixes an 8‑year bug, and changes memcpy fortification to use build_dynamic_object_size (mode 1), yielding runtime bounds checks for many cases. Compiler features used: strict-flex-arrays (GCC13/Clang16, enabled in Linux 6.5) and the counted_by attribute (GCC15/Clang18). Scans find ~60k warnings, reduced unique issues from ~600 to ~300 so far; about 1% prove to be real bugs, and the hardening already prevents whole classes of OOB exploits.

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.