Linux creator Linus Torvalds fixed a stubborn kernel bug this week using AI assistance, despite the tool insisting the problem could not be solved. The bug had lived in the Intel Xe graphics driver for two years, causing random black screens on affected Intel Arc GPUs during cold boot. 

Advertisment

Torvalds tracked it down through 24 rounds of debug patches and 18 kernel boots before landing on the actual fix. He worked through the issue on his own machine, treating the AI as a helper rather than a decision-maker throughout the process.

Also read:Trump Rejects AI Danger Warnings, Takes Aim at Anthropic Chief 

Debug Session & What Torvalds Said

The AI assistant repeatedly called the bug "impossible and unsolvable" and suggested writing a report instead of continuing the search. Torvalds pushed back and kept going. In his commit message for hash 818bebe, he described the experience directly. 

Advertisment

"While the AI was ready to give up several times, it did keep adding debug code and analysing it faithfully when I pushed," Torvalds wrote. He credited the tool for its persistence under pressure and even let it write the final commit message. 

The fix turned out to be surprisingly simple: a one-character change in the driver code, replacing round_up() with round_down(). The issue was caused by a memory offset being rounded up instead of down, leading to the underlying problem.

Also read:Apple Rolls Out iOS 27 with Major Siri AI, Performance Upgrades 

Advertisment

Why This Episode Matters for AI in Coding

Torvalds has long taken a practical stance on AI tools in kernel development, allowing AI-written code as long as a human takes responsibility for any issues. This episode reinforces that approach rather than changing it. 

The AI moved fast on repetitive debug work, yet it lacked the deep system knowledge needed to recognise the actual fault. Torvalds' experience stands in contrast to a wider problem now facing Linux maintainers, where automated AI code review tools have flooded the kernel's security list with reports. 

Between recent kernel versions, the number of flagged issues per release jumped sharply, overwhelming human reviewers tasked with sorting genuine bugs from noise.

Advertisment