Bugs got into new Linux
Software’s Mr Sweary, Linus Torvalds, is furious that some “buggy crap” got under the bonnet of his nice new Linux kernal.
Torvalds released Linux 4.8 earlier this week, but now it turns out that it contains some code he thinks can “kill the kernel”.
Torvalds a said sorry yesterday on the Linux Kernel Mailing list for a bug fix gone bad.
“I’m really sorry I applied that last series from Andrew just before doing the 4.8 release, because they cause problems, and now it is in 4.8 (and that buggy crap is marked for stable too).”
The “crap” was fixing a bug that’s been present in Linux since version 3.15. Torvalds rates the fix for that bug “clearly worse than the bug it tried to fix, since that original bug has never killed my machine!”
Torvalds is fuming at kernel contributor Andrew Morton, who he says is debugging with a known bad use of BUG_ON().
“I’ve ranted against people using BUG_ON() for debugging in the past. Why the f*ck does this still happen?” Torvalds writes, pointing to a 2002 post to the kernel mailing list outlining how to do BUG_ON() right. He later adds “so excuse me for being upset that people still do this almost 15 years later.”
Morton seems to have put his hand up for the Torvalds’ criticisms. But Torvalds also thinks he could and should have done better, as he writes:
“I should have reacted to the damn added BUG_ON() lines. I suspect I will have to finally just remove the idiotic BUG_ON() concept once and for all, because there is NO EXCUSE to knowingly kill the kernel.”