Static analyzers
Static analyzers
Posted Oct 11, 2026 20:32 UTC (Sun) by mvollrath (subscriber, #183387)In reply to: Static analyzers by mathstuf
Parent article: Coping with the onslaught of kernel security bugs
For "active development" where design is being done on-the-fly, the typing of the code gives me space to think about the design and seeing it unfold helps to clarify things. For example, after refactoring some LLM-assisted code recently, I found even more improvements and use cases that I wouldn't have without adding another feature utilizing many of the same codepaths.
I can relate. I write all of the commit messages myself in detail, to prove to myself that I understand what's going on, and in that process I'll often ask the LLM questions and this leads to asking it for revisions. Rewriting (or removing) all generated comment blocks manually has a similar effect, and keeps the typical LLM over-commenting in check.
The sweet spot seems to be, for me, a "motivation bridge" where I know how something should be done in my head, but the activation energy is just too high. This seems to be the land of "good third to fifth issue" bugs and features (I definitely don't think LLMs belong in the "good first issue" field for long-lived projects because their value lies in being an onramp for humans).
For me, it was a motivation bridge to learning about the kernel and how to work on it. If you use it "the way I think you oughtta", spending most of your time asking questions and reading the code it is citing to explain things, you can produce a better first patch even if you never press Send on the generated output. Doing good work still requires time and attention and now the discipline to not just vibe slop it.
Now that I've been working on kernel for about 8 months, and mostly drivers, it's maddening. There are so many bugs and optimizations left on the table. Drivers controlling chips produced in the hundreds of millions lacking attention and modernizations from the past 20 years of kernel development. I have 4 e1000e chips in my house and they're still mapping and unmapping DMA for every frame that comes and goes. Almost every DMA map error path was badly broken at the beginning of this year. Now I'm picking through the bugs so that I can drip feed patches to unify the 3 Rx paths and get it on a page pool without papering over too many issues.
I have a fifth bullet point to add to yours:
- There's no good reason to accept things being bad or broken.
When any software I use doesn't do what I want it to, it takes very little effort to patch it or even replace it and make the problems go away. An LLM digs up crash dumps, runs debugger against hung processes, isolates where the problem is, and produces a patch or solution in minutes. I could have done that manually, but I would have tried really hard to find another way around or just accepted the jank. A friend vibed out his own Xorg server implemented in Odin and is very happy with it. And why not?
This effect is coming for the kernel and open source. I've been running my own kernel fork for most of this year, and at the current rate it will be late next year before all of the changes are even submitted to mainline. There will be forks. For some, -7 days median time to exploit isn't good enough.
