~/talk

Upstream Kernel Hardening: Progress on Enabling -Wflex-array-member-not-at-end

links:none on file
slides:none on file

GCC's -Wflex-array-member-not-at-end reveals that the kernel had ~60,000 warnings which collapse to about 650 unique issues; work reduces that to roughly 200 remaining by combining concrete fixes: remove unused flex members, replace types with str_group/str_group_tag to avoid duplication, use container_of when code must access the flex payload, allocate on-stack with DECLARE_FLEX/DEFINE_FLEX or a new trailing_overlap helper, and verify layouts with pahole; changes are incremental and patches land in KSPP-driven upstream work.

AI-written summary · about

  1. 0:00Linux kernel hardening intro
  2. 1:24Flexible array members in C
  3. 4:38Risks of flexible arrays not at end
  4. 7:0360,000 compiler warnings analyzed
  5. 9:29Case 1: Removing unused flexible arrays
  6. 11:15Case 2: Handling used flexible arrays
  7. 14:46strgroup to avoid code duplication
  8. 18:57Case 3: Implicit unions with flexible arrays
  9. 23:37Trailing padding issues
  10. 27:56Case 4: On-stack implicit unions
  11. 31:48Trailing overlap for cleaner solutions
  12. 33:12Hardening strategies evolution
  13. 34:14Progress and next steps
~/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.