Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

[flagged]


[flagged]


There's this bit from the article which might provide a hint:

> Drivers in Rust, [Greg KH] said, are indeed proving to be far safer than those written in C.

And since CVEs haven't been getting assigned to Rust code until recently, I think he's more well-positioned to opine on the safety of Rust code vs. C code in Linux than those who are only indexing off the singular Rust CVE so far.


There is relatively little Rust in the kernel, but there are even less Rust CVEs. In this cycle alone there were 160 CVEs, one in Rust. The first one! The amount of rust is way less than 1/160 and even that statistic is off, because one should count all CVEs.


> because one should count all CVEs.

That is debatable, and I think untrue. It sometimes takes years to find CVEs in C code, and I don’t know of an argument why that would be different for Rust.

The fairest comparison, I think, would be with other new code of similar complexity in the kernel, and track #of CVEs per equivalent functionality (per line of code might be sufficient, but if one language is verbose than the other, you should correct for that)


Greg Kroah-Hartman has been in charge of CVEs in the Linux kernel for a decade.

Your account is 1 day old.

I’m in a real dilemma here about whose word to take on the seriousness of this CVE.


It's in a block explicitly marked unsafe lmao

As opposed to an implicitly unsafe what 1 million lines of C


What good does that do though? They still have the bug, whether it's marked "unsafe" or not. You could mark every C source file as "unsafe" and that wouldn't magically make C a better language or have fewer bugs.

This talking point needs to stop. Rust could be a better language but that would be because it causes fewer bugs, not because the bugs are labeled "unsafe"


In which code base is this bug easier to find, especially preemptively?

Your bias is showing.


Well this particular bug was avoided in the C code but not in the Rust code, so if we're going the evidence-based route...


Sure, let's do it. Go ahead and tally the reverse too.

If you want evidence-based, you can't cherry-pick.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: