162 points · by zdw · 3y ago · 75 comments
It seems to me that for a long time now stable releases haven't been trying very hard to follow the stated policy [1], in particular the parts that say
> It must fix a real bug that bothers people (not a, "This could be a problem..." type thing).
and
> It must fix a problem that causes a build error ([...]), an oops, a hang, data corruption, a real security issue, or some "oh, that’s not good" issue. In short, something critical.
[1]: https://docs.kernel.org/process/stable-kernel-rules.html
Well, that's all in my interpretation :) for more broad background see https://lwn.net/Articles/863505/
That is, I think the stable-release maintainers should update Documentation/process/stable-kernel-rules.rst so that it tells the truth.
(I think this is about normal stable kernels, not 'longterm' ones. I don't think 6.0 was expected to become the next LTS release.)
The last three 'stable' releases have contained an annoying number of refactors and fixes for amdgpu in particular
Play with PowerPlay tables in staging, I haven't been able to upgrade
Stable seems an odd place /shrug
Those 'fixes' may have fixed what they looked at, but I'm still broken. Feels more like rearranging chairs than actually fixing
It should fix an actual problem, even if not found until now.
Test the damn thing!
I wish this was true. It would have made my job of writing compilers so much easier.
I learned that Gcc has a policy not to fix performance regressions on any but the development branch.
Back in the late '80s we spent fully half of each working day tracking down the trigger and workaround for cfront crashes. Kids today have it easy.
I say, it’s “rarely a compiler bug.” When teaching new developers I remind them that you should assume the bug is in the code you just wrote before jumping to the bug being a compiler, framework or OS issue. It’s just a matter of probabilities.
At the end of the day, you want to optimise for debug time. There's the probability that it's a compiler/developer bug (respectively very low/very high) and the time it takes to rule it out. It's of course best NOT to start by investigating the compiler bug.
1) With with an esoteric environment that has relatively few users.
2) Have specific objectives that require a lot of edge case testing or ridiculously thorough fuzzing of the binary.
3) Go out looking for them by crafting nifty things that aren't much used.
Otherwise it would imply large companies (Google-scale) experience thousands of compiler bugs per year...
Not that most problems still aren't in my code, but I've increasingly run into framework/library level issues and very rarely compiler issues. Can't say I've triggered any kernel issues yet.
Networks can and do go down of course. But in my experience, the vast majority of these issues are actually the result of something extremely mundane like a typo in a hostname. I've resolved an incredible number of issues over the years by simply reading the error message someone sent to me and asking them to check the exact thing that the message says is wrong.
Compiler bug or CPU issue, take your pick :)
https://kunit.dev/ - unit tests for kernel
https://docs.kernel.org/dev-tools/testing-overview.html - entire testing overview.
You can usually trust that select() is not broken, but select.js is deprecated, select-kitchensink.js is not compatible with your toolchain and unicyclect.ts leaks memory like a sieve
I don't think it is a bug in the kernel. More likely the userspace or the host system needs to be reconfigured to work well with the bleeding edge kernel. Still I am curious, what exactly may cause this dramatic drop?
Back in the days of ISO-8859-1, you could make gcc crash by having the string literal "ä" in the source code...
Which commit caused it?
https://lore.kernel.org/stable/CAFsF8vL4CGFzWMb38_XviiEgxoKX...
A patch was backported to the 6.0 branch from the main branch, but they forgot a line of code, leading to a buggy behavior.
> As 6.0.y is now end-of-life, is there anything keeping you on that kernel tree?
Uh, several distributions. It wasn't EOL enough to prevent breaking it, so fix it.
Don't even technically need their input, Git and all.
I'll buy this EOL thing if they revert the change that caused this and stop releasing under 6.0. There were at least two more after this
That is the kernel bug tracker, not the distributions bug tracker.
>It wasn't EOL enough to prevent breaking it, so fix it.
It wasn't EOL at the time the patch was backported. It's EOL now.
>I'll buy this EOL thing if they revert the change that caused this and stop releasing under 6.0. There were at least two more after this
Not sure what "this" in "two more after this" is, but there have been no 6.0 releases since it was EOLed.
Why aren't the processes either manual or automated in place to check for things like this?
Aren't there some tests in place to check for such basic functionality errors?
Doesn't kernel development process mandate much facilities? I'm sure the NSA, Unit 8200 and GCHQ have tests like this in place but don't share their findings.
Is it a matter of funding or leadership philosophy and priorities?
You can get a kernel from Red Hat that has been through Red Hat's release process. Red Hat has their own test suite/labs and will also pay attention to test results from elsewhere - including Fedora, their evergreen distro for putting new software into the wild ahead of its incorporation into Red Hat Enterprise Linux.
Substitute the distro of your choice.
If you don't have that constraint yeah, not much reason.
There's a tradeoff between the risk of running an older kernel that has known bugs, upgrading to the latest new kernel which has bug fixes but may introduce new bugs, and getting backports for known bugs to your known working kernel. Most of the time the last option is reasonable but it definitely depends on your use case and what you're optimizing for.