~/talk

Between Building and Testing Your Linux Driver

Talkat Open Source Summit Europe 2025 · on Monday, 2025-08-25· at 15:35· Elicium 1 (Elicium Level 1)· [security]
slides:none on file

Building alone misses bugs like an array element read before its bounds check that compiles clean but yields out‑of‑bounds access; static analyzers catch those mistakes. Workflow: compile with clang (use Warnings and try-clang builds), run smatch for intent/NULL/resource checks, run sparse for locking and address‑space issues, and use Coccinelle for large semantic refactors. clang/smatch/sparse run quickly; Coccinelle can take hours on the whole tree. Always fix root causes and record tool output in commits.

AI-written summary · about

  1. 0:00Static analysis in Linux drivers
  2. 1:05Why building your driver is not enough
  3. 4:37Clang and GCC for static analysis
  4. 7:46Sparse for kernel checks
  5. 13:25Smatch static analyzer
  6. 17:16Coccinelle for refactoring
  7. 22:32Work in Linux kernel
  8. 24:39AI tools in kernel dev
  9. 27:24Q&A workflows
  10. 33:14Final thoughts
~/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.