News for hackers. Stuff that matters.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by rvz on Sunday December 29, 2019 @09:49AM (#21906123)
> Your brain is being polluted. This is just wrong.

This isn't even an argument here. How is he/she wrong?

It's true that the majority of C/C++ programs are riddled with memory corruption vulnerabilities. Just look at the countless CVE's of WebKit, Linux, Chrome, V8, VMWare and the list forever goes on.

There is a case for Rust to reduce or possibly eliminate these age old vulnerabilities which C/C++ find it hard to do.

You are free to change my mind. :)

Re:IncludeOS: a minimal unikernel operating system for C++ s... by ncmncm on Sunday December 29, 2019 @02:19PM (#21907835)
There is no such language as C/C++. You undermine your argument right out of the gate.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Sunday December 29, 2019 @10:05AM (#21906209)
OpenVMS was promoted as ultrasecure back in the day. Hint: exploits happened too.

Here's your hard slap in your face.

https://medium.com/@shnatsel/how-rusts-standard-library-was-...

Re:IncludeOS: a minimal unikernel operating system for C++ s... by rvz on Sunday December 29, 2019 @10:26AM (#21906329)
> Here's your hard slap in your face.

Not really. I said 'reduce or possibly eliminate'. I already entertained the fact that even Rust has bugs. But I can't see how one example of a documented Rust vulnerability which even requires a tricky exploit chain in practice, would change my mind given the tens of thousands of memory corruption CVEs in C/C++ software. The effectiveness of Rust's claims to 'reduce' these cases of memory corruption vulnerabilities have been proven over the years.

Rust is no doubt already being tested with confidence in production by many companies for years, making it possible to compliment or replace C/C++ based programs. You too are more than welcome to change my mind. :)

Re:IncludeOS: a minimal unikernel operating system for C++ s... by simion314 on Sunday December 29, 2019 @12:39PM (#21907198)
You are comparing the number of CVEs in hundreds or thousands of low level code vs a few Rust libraries , you might want to wait until you have a few popular OSs, full browsers,drivers ,VMs made from scratch with Rust then compare or do a fair one to one comparisons.

Just wanted to let you know that your comment feels very misleading because you present the large number of bugs in say web browsers and contrast it with no Rust bugs in web browsers because nobody uses a Rust browser(I know Firefox has some parts in Rust but those parts are new so you can't compare it with years old code that had time to accumulate bugs and people to find them)

Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @02:45AM (#21911550)
This. Let's see is Mozilla rebases the entire browser in Rust except some dependencies on FreeType and MESA and let's see how many bugs do rise. If Chrome did the same shit would happen, it's 20x more code in Chrom{e,ium} than the OpenBSD base with LLVM.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by saagarjha on Monday December 30, 2019 @03:58AM (#21911897)
Probably significantly fewer memory corruption vulnerabilities.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by simion314 on Monday December 30, 2019 @11:43AM (#21914598)
Let's wait and see how "significant" will it be.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Tuesday December 31, 2019 @08:25AM (#21920828)
Easy, according to Microsoft and Google security reports on C related memory corruption exploits, 68% less.

Applies to any memory safe programming language, not only Rust.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by steveklabnik on Tuesday December 31, 2019 @10:15AM (#21921477)
The Microsoft report wasn't organized by language, it was organized by vulnerability class. It was memory unsafety, across projects, not C specifically.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @04:16AM (#21912002)
Then let's solve how Rust will save us from wasm running at full speed.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by saagarjha on Monday December 30, 2019 @04:21AM (#21912035)
I’m having difficulty understanding your comment. Would you mind expanding on it? What’s the concern here?
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @04:32AM (#21912119)
Rust and WebAssembly implementations will clash somehow in a near future, if Mozilla tries to rebase almost al Firefox into Rust.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by saagarjha on Monday December 30, 2019 @05:39PM (#21917324)
How, and why would this have anything to do with memory corruption vulnerabilities?
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @10:21AM (#21906291)
Surely they did happen, a tiny set, meanwhile the C flaws that allowed the Morris worm to happen 30 years ago, are still present in C11 being written today.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Sunday December 29, 2019 @12:32PM (#21907149)
Current compiler and OSes have some protections to avoid that precisely.

It won't be that easy.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @03:16PM (#21908146)
Apparently it is, given the exploits presented at CCC talks.

Or the ones given by Google and Microsoft at Linux Kernel Security Summit 2018 and 2019.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @02:43AM (#21911540)
I use OpenBSD, other OS'es focusing on performance over security doesn't interest me. Except 9front, but because of the huge networked grid as a bare computer.

But in OpenBSD even plan9port compiled software is done with Retguard:

>nm $HOME/Docs/c/p9p/9.aecho | grep retpo

00003150 t __llvm_retpoline_r11

https://undeadly.org/cgi?action=article&sid=20170819230157

It makes using acid(1) in OpenBSD a bit more difficult, but I almost always omit that.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Monday December 30, 2019 @03:34AM (#21911740)
I advise you to watch the CCC talk about validation of OpenBSD exploit mitigation features.

Yes, it is great that OpenBSD values security over performance, but as the talk shows, not every security feature is as secure in practice as OpenBSD sells it.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @04:18AM (#21912016)
Ok, will do. Still Rust is not magical, even if it helps a lot.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Monday December 30, 2019 @07:01AM (#21912733)
Rust is not the only option to get rid of C, there are plenty to choose from.

Neither of them are magical.

All of them don't suffer from memory corruption, UB and use-after-free like C does.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by saagarjha on Monday December 30, 2019 @03:57AM (#21911885)
There are a number of attacks that retguard can’t help with.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by dnpp123 on Sunday December 29, 2019 @10:24AM (#21906320)