~/talk

Enhancing Spatial Safety: Better Array-bounds Checking in C (and Linux)

links:none on file
slides:none on file

Six years of kernel hardening turns into concrete fixes: memcpy is rewritten to use __builtin_object_size(mode=1) then __builtin_dynamic_object_size paired with the new counted_by attribute (Clang 18 / GCC 15) so flexible members get runtime bounds checks, and -fstrict-flex-arrays=3 lands in Linux 6.5 after a five-year push converting one‑element and zero‑length arrays to true flex members. A true_group macro removes hundreds of false positives; one flag initially reports >60,000 warnings (650 unique) and the changes are enabled via CONFIG_FORTIFY_SOURCE.

AI-written summary · about

  1. 0:00Spatial safety in C
  2. 3:12Arrays and flexible members
  3. 12:26Flexible arrays in Linux
  4. 21:19Hardening memcpy
  5. 29:53Trailing array ambiguity
  6. 36:13Strict flex arrays
  7. 43:18Flexible array challenges
  8. 51:46Counted by attribute
  9. 1:00:12BleedingTooth hardening
  10. 1:03:26Conclusions
~/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.