~/talk

Coccinelle: Finding bugs in the Linux Kernel

Talkat FOSSASIA Summit 2017 · 2017-03-17..03-19· [c-and-cpp]
slides:none on file

Coccinelle is a program-matching and transformation tool that uses SmPL semantic patch language to auto-find and auto-fix kernel bugs, producing about 4000+ kernel patches and shipping 40+ scripts with Linux. It matches code fragments, uses meta-variables, disjunctions and “dot dot dot” wildcards, runs as spatch in patch/context/report modes, and finds real issues like copy_to_user under spinlocks, missing bit-macro refactors and inter-file race patterns while integrating with Python/OCaml for reports and batch fixes.

AI-written summary · about

  1. 0:00Start
  2. 5:08Code Maintenance Issues
  3. 8:02Some useless code
  4. 8:24Some serious stuff
  5. 9:53Goals of the tool Coccinelle
  6. 11:25Semantic Patch Language (SmPL)
  7. 12:02Example 1: Using BIT macro
  8. 15:14Example 2: Compressing the lines
  9. 16:07Transformation specification
  10. 16:51Spatch
  11. 17:25Coccicheck
  12. 17:54Modes for the Coccinelle script
  13. 19:11Some other notable features
  14. 22:36Useful links
~/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.