r/programming • • Aug 29 '24

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"

https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
1.2k Upvotes

795 comments sorted by

View all comments

56

u/sisyphus Aug 29 '24

From the youtube he linked I can't tell if the nontechnical nonsense is pushback on people seen as pushing 'the Rust religion' or the tone in which they do it, but I found this bit interesting: "we will find out whether or not this concept of encoding huge amounts of semantics into the type system is a good thing or a bad thing" when I talk to static typing people they take that being a good thing as a truism. It's definitely hard to make progress with people who have spent a lifetime learning the intricacies of C and C++ who tend to be very defensive about them, and it's probably even worse in a project that doesn't take security particularly seriously like the linux kernel.

138

u/quaternaut Aug 29 '24

A bit off-topic, but why do you say that the Linux kernel project doesn't take security particularly seriously? Were there security incidents that could have been prevented had the kernel devs been more vigilant or security-minded?

66

u/meltbox Aug 29 '24

Yeah I don’t follow that comment at all.

19

u/neoKushan Aug 29 '24

So many companies use and rely on the linux kernel, it gets audited to hell and back. It's difficult to imagine anyone thinking it's not security focussed.

→ More replies (1)
→ More replies (2)

68

u/Plasma_000 Aug 29 '24 edited Aug 29 '24

Not OP but:

Linux (Linus specifically) has long had a policy of "security vulnerabilities are just bugs" - which while true, puts aside that security vulnerabilities often have extra impact to users, and so instead they are treated and prioritised without any special attention.

Furthermore, recently the Linux org became able to publish and reserve CVE numbers - this is a system which is designed to inform people which vulnerabilities they have patched by giving each a number. What Linux instead proceeds to do is give nearly every commit to the kernel its own CVE irrespective of whether any actual vulnerability is present, which is poisoning the well and throwing off normal statistics and decision making.

Additionally, Linux has a history of pushback at any security mitigations or hardenings, especially ones that would have even a negligible performance impact. Today this is a little more relaxed but still very much exists.

16

u/schlenk Aug 29 '24

CVEs are just numbers, so people talk about the same issues instead of every vendor invents its own numbers.

The security "industry" came up with the grand idea to consider any CVE in a component important and spamming people with HIGH, CRITICAL security alerts all over the place, when all you have is an issue in a commandline tool that is explicitly just used in some test and totally irrelevant for 99.999999% of all users of that library. Might leave a few users if you happen to develop Android, okay. Thank you for wasting everyone elses time.

Like, imagine to have a public bug tracker. Now some clueless horde of attention seekers starts to file all kinds of hillarious bugs there. And can set the "severity" externally. And then the same crowd tries to convince you to totally absolutely treat their specific issues with super high priority, because its seehhhcuuuurityyyy, and obvious HIGH, because they said so. And if you don't react, they go to some social media, press or whatever and present their scandals and critical problems. Thats the current CVE system. 95% noise.

9

u/[deleted] Aug 29 '24

Hmm, regarding the CVEs, are there any particular examples of an irrelevant CVE?

I haven’t looked deeply into it but it has always seemed to me that they publish proactive CVEs when they patch a security class bug.

Should they use a higher CVSS as threshold or are there a lot of egregious CVEs I’ve just not seen (since I haven’t actively been looking).

21

u/Plasma_000 Aug 29 '24 edited Aug 29 '24

So far this year Linux has published nearly 3000 CVEs, nearly none of them are actual vulnerabilities.

Instead of any effort to publish security vulnerabilities, org is actively undermining the system by publishing practically any bug fix as a CVE.

Linus is quoted saying "Bugs will happen, and anything can be a security bug […]"

Edit: reading this article gives a much more charitable perspective and changed my mind a bit https://lwn.net/Articles/978711/ but imo the process is still very flawed.

13

u/iiiinthecomputer Aug 29 '24

There's a whole other side to the story though, with abuse of the CVE system by "vulnerability" and "security" scanner companies to drive sales, and by a whole Compliance™ industry around it. Combined with some security researchers being much more interested in CV-padding than finding genuine issues, we've landed up in a situation where the CVE database is full of noise, seeverities are inflated, and it can be actively unhelpful.

The Linux maintainers are reacting to the resulting high churn environment full of meaningless noise and demands for rushed urgent fixes for non-vulnerabilities some code scanner flagged, before some company who sure isn't paying the maintainer for the work exceeds some arbitrary remediation deadline set by their tech-ignorant corporate compliance team, baked into external contracts, or even into industry regulations or law.

As usual - capitalism ruins everything.

5

u/[deleted] Aug 29 '24 edited Aug 29 '24

Ah I see, I’ve probably only paid attention to the “relevant” ones so to speak, that definitely sounds like a blatant misuse of the system.

Edit: Cool addition with the link, thanks!

→ More replies (1)

16

u/[deleted] Aug 29 '24

What Linux instead proceeds to do is give nearly every commit to the kernel its own CVE irrespective of whether any actual vulnerability is present, which is poisoning the well and throwing off normal statistics and decision making.

Jesus Christ this has to be one of the most idiotic movements I've ever seen.

Security vulnerabilities are bugs

OK. I can stand living with that idea if someone wants to see it that way even though it doesn't work like that in reality.

But then using a system that's exclusively for security, to register all bugs...that's just being idiot.

43

u/Booty_Bumping Aug 29 '24 edited Aug 30 '24

It's not idiotic when you consider that environmental CVSS scores are now a thing. It was always a bad idea to create automations that read from the CVE system that don't do any filtering whatsoever, and the Linux kernel is just adapting to this reality. The kernel team essentially DoSing the CVE system with noise is a blessing in disguise, and is actively improving the situation by weeding out automation tools that were already prone to information overload. The CVE system was never intended as a list of all severe problems to pay attention to, it is just a way to make sure a non-overlapping number is assigned to each security issues so that they can be discussed without confusion.

→ More replies (2)

19

u/iiiinthecomputer Aug 29 '24

There's more to it than it sounds like.

A bunch of companies have created automation around CVEs to scan code and infrastructure. Which was be handy and a good idea until a whole industry grew around blindly and slavishly following the scanner results, using them to "prove" your product or service is "secure", etc. Now it's routine to have to do an urgent upgrade of some library you use becuse an unrelated feature you don't use is vulnerable to a theoretical exploit by a local user even though you only use the library in container images anyway.

This industry has been successful at lobbying to get use of their products encoded into industry compliance standards like PCI/DSS, into government procurement, and in some places even into law. All nuance has gone with it, and it's now common to just blindly follow the scanner.

I've had to fork upstream projects or libraries and back port fixes myself in cases where a direct upgrade wasn't feasible in the time allowed. For something completely irrelevant, where a sane process should only have required an inspection and sign-off that the component is unaffected by the issue with a suitably justification.

Then there's the issue that a significant number or security researchers are CV-padding using CVEs; they will try to find any way they can to get high severity CVEs to their name. Its actual risk or significance isn't a concern. This has led to a huge spike in nonsense higher severity CVEs, which drowns the real ones in noise.

This wears out maintainers, who are then deluged by these minor code linter complaints dressed up as security issues, and by bugs raised by companies using these scanners about the need to upgrade some "vulnerable" component. Urgently of course, but without a patch or PR.

It's also creating a high code churn environment that makes it WAY too easy to sneak in malicious changes because nobody has time to even look properly over "PR: bump libfoobar to v1.9.79999 for CVE-ABCD-12342234".

→ More replies (2)
→ More replies (1)

22

u/sisyphus Aug 29 '24

Linus famously said 'security problems are just bugs'; it's been an article of faith among security people for ever and in the present that if you have a local shell on a Linux box you've got root; grsecurity and pax have never gotten upstreamed (though spender ain't exactly the easiest person to work with; neither are Linus and Co.). You can see what a security focus looks like in a project like OpenBSD; Linux for better or worse leaves a lot of this up to third parties.

20

u/astrange Aug 29 '24

 Linus famously said 'security problems are just bugs'

That's a good approach if you want to keep developers on your open source project, since you need to defend their egos (and they already have Linus yelling at them.) Security offense researchers are unique among bug reporters because they're extremely annoying and self-important and when they find a bug in your code they go around giving conference talks about it, giving themselves prizes, making up logos for it, getting bounty programs to give them a million dollars etc. 

Nobody's doing that for the guy who put the bug in even if you needed the feature he wrote!

8

u/astrange Aug 29 '24 edited Aug 29 '24

OpenBSD is not really very good at security because they don't actually engage with vulnerability research. They maintain some projects in the security category, but their OS mitigations aren't good and aren't based on realistic priorities. They basically just make up defenses for imaginary attacks and put them in there.

https://isopenbsdsecu.re/quotes/

 iOS and Android have the most effort put into them since they have the most real-world attacks. It helps that ARMv8 is the only hardware ISA with useful security features regularly being added.

→ More replies (2)

14

u/UncleMeat11 Aug 29 '24

The kernel is filled with CVEs.

But what's worse, the kernel has had vuln regressions because they didn't introduce tests alongside fixes.

The linux kernel is an incredibly complicated piece of software, but it is probably also the most important piece of software on the planet when it comes to the world's security posture. The kernel developers aren't totally blase about security, but they definitely aren't taking an approach that prioritizes security whenever possible.

I know a number of people who have spent careers trying to find ways to change the culture within the kernel community and ultimately failed.

→ More replies (9)

7

u/Coffee_Ops Aug 29 '24 edited Aug 29 '24

Watching the story arc of the spectre / meltdown etc fixes certainly gave me that impression. I recall intel giving guidance to MS and the Linux devs on how to fix it; Microsoft took their approach but Linus rejected it as a crap idea due to the performance implications.

Sometime around 2022-2023 a new variant came around which Windows was immune to, having baked Intel's suggestions in years prior, while new releases (Ubuntu 23.04?) were hit. This resulted in the linux kernel having to implement those fixes after all, performance regressions and all.

I also recall that a lot of the anti-exploit features that Windows has been implementing for years now were historically available with grsecurity but generally rejected as not necessary.

Beyond that (not all of these are kernel but go to the general anti-security vibe)

  • sudo /setuid is a security dumpster fire

  • Things like SELinux user constraint that might help are generally not used

  • Secureboot has been a dumpster fire for years as well, which is only recently starting to get fixed with UKIs

→ More replies (6)

54

u/tejoka Aug 29 '24

"we will find out whether or not this concept of encoding huge amounts of semantics into the type system is a good thing or a bad thing" when I talk to static typing people they take that being a good thing as a truism.

Well, sure. I mean, we figured out the answer was yes in the 80s. In 2009 they gave Barbara Liskov a Turing award for her part in figuring this out. (Pop articles often talk about object-oriented programming for her Turing award, but oddly enough I find the above quote to actually be a more accurate of a description of Liskov's contribution than anything "OO.")

Maybe we could read a lot into the word "huge", because there's certainly room to critique, say, dependently typed languages as maybe going "too far." But Rust's type system is really quite conservatively designed.

Sometimes we do actually figure things out, and the industry isn't just a morass of "well that's just your opinion man."

30

u/JoeyJoeJoeTheIII Aug 29 '24

C programmers prefer not to acknowledge any PL options and theory that’s from beyond the 70s.

Actually it’s pretty funny how they went from one unhinged whine fest about rust to immediately a weird tangential whine fest about Java.

Just a toxic group.

It’s kind of funny how Torvalds got shit on so much for being toxic but on this topic he’s been reasonable and pragmatic.

→ More replies (9)

24

u/bleachisback Aug 29 '24

when I talk to static typing people they take that being a good thing as a truism.

It's strong typing people. C obviously has static typing, but proficient C programmers love how weak C's type system is, which is why Rust is seen in such a bad light by them.

→ More replies (7)

2

u/nicheComicsProject Aug 30 '24

"we will find out whether or not this concept of encoding huge amounts of semantics into the type system is a good thing or a bad thing" 

It's funny that the person who said this claimed the Rust devs were "religious". This kind of attitude is certainly not something from an impartial engineer. Imagine going to a civil engineer and stating "we'll see if this process which catches more imperfections in bridge building material turns out to be good or bad!" or a doctor and saying "we'll see if this test which has less false negatives is good or bad!".

2

u/gmueckl Aug 30 '24

There is one important practical subtlety in this particular discussion that only occurs at the boundary between languages, because language semantics never line up perfectly in practice: the rules embedded in the type system on one side are mirroring a convention on the other side of the bindings. The only way to ensure that the two of them are in sync is through manual effort. This is especially troublesome if the interface is intricate and subject to change. It's easy to get into one of two situations in this case:

  1. The type based interface is not adjusted to mirror a convention change or misses a subtlety in the convention and therefore encourages/enforces wrong use of the interface.

  2. A change in the bound function is of a nature such that the types used to express the constraints of the interface need to change drastically to keep up. This would drive up the refactoring effort to keep the strictly typed side in sync.

→ More replies (24)