News for hackers. Stuff that matters.
[dead]
Re:IncludeOS: a minimal unikernel operating system for C++ s... by rvz on Sunday December 29, 2019 @09:40AM (#21906065)
> A shame it is done in C++ tho. We all know this kind of project should be done in Rust.

I'm taking this and your other remarks as sarcasm. But still, here we go again.

> When will there be a decent Rust unikernel as a drop in replacement for the standard lib/async-std/tokio/whatever ?

You seem to be knowledgeable and interested in such a project. Perhaps you care to create or contribute to such a unikernel project to test against the IncludeOS project?

If not then sit back and keep on waiting.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by eyberg on Sunday December 29, 2019 @10:35AM (#21906389)
Nanos, https://ops.city has had rust support for a while now as does OSv.

I'm involved with nanos/ops.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by dnpp123 on Sunday December 29, 2019 @10:57AM (#21906498)
First time hearing about this, looks nice! but:

- is the Nano unikernel open source ? A quick (maybe too quick) google search tells me no.

- can you customize the component you want a la MirageOS, eg is it possible in the future to add a fail2ban to your app with a single command line ? same for filesystem and so on.

- is performance on par at least with other linux systems ?

- does it support rust ? not metal barebone rust, but rust with at least the std lib ?

Re:IncludeOS: a minimal unikernel operating system for C++ s... by eyberg on Sunday December 29, 2019 @06:02PM (#21909245)
Little late here but yes nanos is Apache and found at https://github.com/nanovms/nanos .

It also runs rust very well.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by zamadatix on Sunday December 29, 2019 @11:11AM (#21906585)
Found a license link at the bottom of the page https://ops.city/license.txt

To your Rust question it seems like the standard library is supported https://github.com/nanovms/ops-examples/blob/master/rust/02-...

Re:IncludeOS: a minimal unikernel operating system for C++ s... by eyberg on Sunday December 29, 2019 @06:12PM (#21909299)
Ops is merely an orchestration tool to deploy these to google cloud and aws. The actual kernel is nanos and we decided against the recent trend of custom licenses to go with apache.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by Ragnarork on Sunday December 29, 2019 @09:28AM (#21906013)
> When will there be a decent Rust unikernel as a drop in replacement for the standard lib/async-std/tokio/whatever ?

When someone write it? Why not you even?

Re:IncludeOS: a minimal unikernel operating system for C++ s... by BossingAround on Sunday December 29, 2019 @09:27AM (#21906011)
> We all know this kind of project should be done in Rust

As a user, I don't care whether the tool is in Go, C++, Rust, or whatever else. If Docker was written in C (or Rust, or whatever else), it would have zero effect on my usage of Docker.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @09:33AM (#21906030)
As proven by the ongoing CCC talks, if Docker was written in C, security patches will be coming up daily.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by rumanator on Sunday December 29, 2019 @01:11PM (#21907372)
> As proven by the ongoing CCC talks, if Docker was written in C, security patches will be coming up daily.

SQLite is written in ANSI C. What's your point?

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @03:08PM (#21908111)
Which includes a battle test of unit tests, and yet:

https://www.cvedetails.com/vulnerability-list/vendor_id-9237...

This is my point.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by jstimpfle on Sunday December 29, 2019 @05:23PM (#21909002)
To have only so few entries accumulated over more than a decade, for a project as well-known as sqlite3, which is in the 100Ks of lines of code, is an incredible feat, and would be so regardless of the implementation language.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Monday December 30, 2019 @03:31AM (#21911726)
Not really, given that in 2019 they are still fixing heap corruption and use after free exploits.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by seisvelas on Sunday December 29, 2019 @10:45AM (#21906444)
What are the ongoing CCC talks? Sounds interesting.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by namibj on Sunday December 29, 2019 @12:24PM (#21907084)
[dead]
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)
[dead]
Re:IncludeOS: a minimal unikernel operating system for C++ s... by rumanator on Sunday December 29, 2019 @01:12PM (#21907378)
You don't do security by switching programming languages. If you think you do then you have more serious problems to deal with than picking a programming language.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @03:10PM (#21908118)
The security teams from Microsoft, Google and Apple think differently.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @03:10AM (#21911638)
Until the Rust runtime gets vulnerable and hilarity ensues. Well, not much. Everyone trusted rust blindly, shit happens x200 everywhere.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Monday December 30, 2019 @03:39AM (#21911768)
C folks are so afraid of Rust taking their baby away.

When we security minded people talk about secure languages, we have a panoply to chose from, Swift, D, OCaml, Java, .NET, ATS, Ada, Go, Nim, Zig, Crystal and many more, yet you always think that we speak only about Rust.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by rumanator on Monday December 30, 2019 @05:13AM (#21912313)
> C folks are so afraid of Rust taking their baby away.

This tribal way of thinking makes no sense at all. I qualify as a C and C++ developer and I'm very excited with Rust. The only baby there is is the software project we are working on.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Monday December 30, 2019 @07:07AM (#21912758)
It makes sense in the context that every time one mentions safe systems programming, most people of that background only think about Rust.

Meanwhile I, and others have been replacing C and C++ written applications by safer stacks long before Rust was born.

And on mobile OSes, the alternative languagea that are being pushed are not Rust.

Yet the replies are always as if we are only talking about Rust as alternative.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Wednesday January 01, 2020 @05:33AM (#21927500)
I like Go. It's a logical step over the C and Unix portability philosophy, expecially the C from plan9/9front, where cross-compiling is dead easy.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by steveklabnik on Monday December 30, 2019 @08:12AM (#21913100)
(Rust has about as much runtime as C and C++ do)
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Monday December 30, 2019 @04:10PM (#21916751)
No.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by anthk on Sunday December 29, 2019 @10:02AM (#21906190)
OpenBSD -stable base errors:

     anthk:~>syspatch -l | wc -l     
     
     15
Who cares about your toy language backed from Mozilla. Do you think the Go runtime from Docker is bug free?

https://www.cvedetails.com/vulnerability-list/vendor_id-1418...

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @10:19AM (#21906278)
I don't use any toy language from Mozilla, neither do Google, Microsoft for that matter.

We are counting memory corruption and UB bugs here.

Re:IncludeOS: a minimal unikernel operating system for C++ s... by laughingman2 on Sunday December 29, 2019 @01:15PM (#21907394)
But why is microsoft experimenting with the toy language then?

https://www.infoq.com/news/2019/11/microsoft-exploring-rust-...

70% of microsoft errors would be gone in future if they start using what you demean as "toy" language.

https://www.zdnet.com/article/microsoft-70-percent-of-all-se...

Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @03:11PM (#21908122)
Go talk to anthk, please. I am not the one talking about toy languages, other than using sarcasm on my reply to anthk.
Re:IncludeOS: a minimal unikernel operating system for C++ s... by temac on Sunday December 29, 2019 @09:53AM (#21906148)
This is not a "tool" for "users", this is to write your own programs in a funny way, in C++
Re:IncludeOS: a minimal unikernel operating system for C++ s... by pjmlp on Sunday December 29, 2019 @09:30AM (#21906019)
It already exists, with several deployments in production, including libraries used by Docker on macOS and Windows, MirageOS written in OCaml.

Yes, it isn't Rust and uses automatic memory management, however as proven by their deployments in production, it is quite usable.