174 points · by based2 · 7y ago · 46 comments
I switched to FreeBSD as a result of my time reading LKML. The BSDs seem, at least to me, to be more designed rather than thrown together; but maybe I just haven't spent enough time watching their sausage get made.
Hopefully now that a senior kernel developer (Chinner) is saying some of these things publicly, things can get better. But a culture change of the magnitude needed will not come quickly.
However saying that no testing happens in Linux kernel is dishonest, to say at least: there is automated tests maintained by big corporations like LTP [1] or autotest [2], thousands of people run different versions of unstable/mainline kernels with different configurations, security researches does multiple tests like running fuzzers and reporting issues, multiple opensource projects run tests in current versions of Linux kernel (that in the end also serves as a test of kernel itself), etc etc.
Linux is basically the kind of project that is big enough and impactful enough that naturally gets testing for free from the community.
That makes intuitive sense, but is it really true? Is Linux being throughly tested by the community?
There's just no substitute for rigorous unit and/or functional tests, constructed with an eye toward what can happen instead of just what commonly does happen in the most vanilla usage. Unfortunately, UNIX kernel development - not just Linux - has never been strong on that kind of testing. Part of the reason is the inherent difficulty of doing those sorts of tests on such a foundational component. Part of it is ignorance, which I mean as simply "not knowing" and not as an insult. Part of it is macho kernel-hacker culture. Whatever the reasons, it needs to change.
[0]: I have had more than my fair share of user land problems, but I have come to expect that on any platform.
>>But anything less than 100% coverage guarantees that some part of the code is not tested...
> And anything less than 100% race coverage similarly guarantees a hole in your testing. As does anything less than 100% configuration-combination coverage. As does anything less than 100% input coverage. As does anything less than 100% hardware-configuration testing. As does ...
Because the Linux kernel for sure is going crazy in my new laptop. The lack of AMD support is mindblowing, to say the least.
[1] https://linux.slashdot.org/story/12/11/07/1634237/amd-closes...
I don't know why you'd be surprised by this. The top kernel on kernel.org's front page is literally just Linus's personal tree. "Upstream" is context-sensitive but "mainline" has always been Linus's personal tree.
In reality, what matters to most users is what goes in to Debian stable or RHEL, and those kernels are far from just "works for me" tested.
For years FreeBSD development was very stagnant while Linux exploded in popularity and support. The comparison is silly.
Not saying which one is better, I guess everyone has preference. Although I really wish FreeBSD is more widely deployed and used.
Does the maintainer merge the code after just reading over the code and checking it compiles, never having executed it?
My assumption has always been there's little testing in such a situation - but I can't square that with the fact the kernel seems to work so well :)
It's a collaborative project. If support for your HW gets broken, you can bug someone to fix it or fix it yourself.
What I do to keep my HW working is fetch -rc1, test it, and send fixes.
I've spent a few months upstreaming a subsystem earlier last year, something that had been tested in the field, at customers, and I had to literally gut it to fit the priesthood's way of doing things. Ultimately the result that went into the kernel was technically /inferior/ to the original source, and any rant about /that/ was pointedly ignored.
I'm not even going to mention the device tree binding, which has become as bad as the high days of XML where the format took a life of it's own and requires it's own maintainers. It's completely bonkers.
I think since a lot of maintainers became 'professionals' they no longer use linux. They just juggle patches all day and talk between themselves and their clique. And as long as it fits the big tech company that pay them, it doesn't matter if it's actually /useful/ to anyone else.
I had to keep an old kernel for quite a while before that one was fixed.
It seems that a lot of the quality control happens with the distributions, not with the upstream software itself. I doubt that SLES would have seen this bug, but because I was running Tumbleweed I have to expect breakage like that.
[0] http://lkml.iu.edu/hypermail/linux/kernel/1704.3/02043.html
I did some fuzzing on filesystem tools a few years ago. xfsprogs was... "interesting". Interesting in that it was seemingly impossible to find anyone to report bugs to. They had a bug tracker, but it didn't work, submitting bugs resulted in an error. I think there was also a mail address that bounced. I think in the end my bug reports reached noone who could care about them.
- https://bugzilla.kernel.org/show_bug.cgi?id=135461
- https://bugzilla.kernel.org/show_bug.cgi?id=135451
No response...
It's exceedingly rare that a maintainer of anything would scoff at all patches from users to help fix things.