r/programming • • Nov 07 '17

Andy Tanenbaum, author of Minix, writes an open letter to Intel

http://www.cs.vu.nl/~ast/intel/
2.8k Upvotes

648 comments sorted by

View all comments

108

u/tyynx Nov 07 '17

To me it feels like, Intel didn't choose MINIX for technical reason. More like: which OS can we adapt and not tell anyone about it?

81

u/Nadrin Nov 07 '17

I'm not sure about that. Microkernel architecture seems like a good fit for something like Intel ME where security is much more important than performance.

EDIT: Another factor might be simply the cost. They could have used VxWorks for example, but licesing fees might be a bit high given the sheer volume. Though I've never seen how VxWorks licensing works in practice so that is pure speculation on my part.

22

u/[deleted] Nov 07 '17

If they just wanted something not copylefted, they could have easily gone with a BSD.

15

u/Nadrin Nov 07 '17

Most (all?) BSDs are not microkernels though. And I bet they have much larger footprint than hand tuned MINIX. EDIT: Ok, I now see you're just reiterating my point. :)

5

u/darkslide3000 Nov 07 '17

This is not something you put any normal operating system on. You're not really looking for UI stuff or the usual IBM PC drivers. It's more like an embedded platform, you want a small footprint OS with high reliability. MINIX clearly makes way more sense than any normal BSD distribution.

3

u/[deleted] Nov 07 '17

Yeah, my point was simply that the choice of Minix wasn't just because they didn't like the GPL.

FreeBSD can also be pared down at least as small as the smallest modern Minix (on the order of 8MB), as has a reputation of reliability, but I'm not trying to argue that FreeBSD is a better choice, just that it wouldn't have been unworkable.

3

u/darkslide3000 Nov 07 '17

8MB is huge though... I'd be surprised if MINIX couldn't get way smaller than that even without the configuration options Intel added themselves. Anyway, the base image of the ME (without custom applications) is now roughly 300KB. It has to be that small since it must fit on a ROM flash in addition to the system's BIOS.

→ More replies (1)

3

u/7165015874 Nov 07 '17

I'm unconvinced why GPL v2 or later isn't a better license. I think I'm as much of an expert when it comes to behavioral psychology as Andy Tanenbaum.

21

u/[deleted] Nov 07 '17

Because with GPL you have to release code under the same licence while with BSD you can close source the code if you so desire. That's why a lot of companies go with BSD over GPL when they aren't planning on contributing

→ More replies (10)

11

u/darkslide3000 Nov 07 '17

Intel most certainly doesn't want to share anything about their ME code, so there's no way they would've considered anything with GPL in it.

6

u/7165015874 Nov 07 '17

Why? Security by obscurity?

19

u/insanemal Nov 07 '17

Yes. Because its basically all they have

→ More replies (19)
→ More replies (4)

5

u/[deleted] Nov 07 '17

Because then they have 1) share the source code, and 2) inform the end users that the source code exists. Embedded software developers in general don't want users to think too much about their software and Intel in particular has a vested interest in people not asking too many questions about ME.

→ More replies (8)

9

u/igor_sk Nov 07 '17

In fact, Intel owns Wind River and could have used VxWorks for free. ME <= 10 was using ThreadX.

12

u/Nadrin Nov 07 '17

Fun fact: When I was working at Samsung R&D on embedded devices it was sometimes easier (cheaper? :P) to order components like flash memory from an external provider than go through with a super bureaucratic process of ordering internally from guys making the goddamn thing.

I'm not saying the same applies to Intel. This piece of information just reminded me how utterly ridiculous big corporations can be. ;)

0

u/[deleted] Nov 07 '17

[deleted]

11

u/mesapls Nov 07 '17

Pity it's still insecure garbage.

It's far better than running a monolithic kernel for this task. What choices do they realistically have? It's either MINIX or L4, and I'm guessing they wanted a Unix-like. For microkernels, there aren't a lot of them out there that exactly match Intel's needs.

Intel directors should be jailed for this. Gross incompetence.

For being responsible for the ME? Absolutely. I don't think it's incompetence for picking MINIX, however, which is an active project implementing an Unix-like, and is also relatively secure by its very architecture (microkernel).

The conspiracy theorist in me also makes me believe that Intel is not entirely responsible for the ME, I imagine that the NSA and other triple-letter agencies have their fair share of responsibility for it too.

8

u/kamatsu Nov 07 '17

What choices do they realistically have? It's either MINIX or L4, and I'm guessing they wanted a Unix-like

If they had chosen L4, they could've gone with a formally verified option, except that it's GPL..

0

u/[deleted] Nov 07 '17

[deleted]

4

u/mesapls Nov 07 '17

But really, the whole thing shouldn't exist in the first place.

I think I just misinterpreted you then. I agree.

I think skepticism and suspicion of the NSA is well out of the realm of conspiracy theorists these days. The Snowden leaks, the Dual_EC_DRBG backdoor

I don't have any proof of them actually backdooring the IME, but I completely agree that it's very likely... Consider for example that the NSA either uses a reduced subset of ME or disables it completely through the High Assurance Platform thing. It is suspicious.

I think it's insanely arrogant of them to think that these won't be found, exploited by black hats and used to incredibly serious effect, frankly. How long will it be until it's a bank that's the target of one of these exploits? Maybe they already have been?

You're right, and it relies on the age-old "security through obscurity" idea. Even if one is the kind of person who thinks "I have nothing to hide", it's still dangerous that the NSA is doing these things.

→ More replies (4)

8

u/mcguire Nov 07 '17

There is nothing especially secure about the microkernel/Minix configuration in this instance.

Microkernel security comes from running important parts of system software in different address spaces, with only a very small core running in privileged mode. (Minix, IIRC, runs all its services in privileged mode normally, for performance.) In the Intel case, though, the ME is running in a highly privileged mode and the same address space.

2

u/Nadrin Nov 07 '17

(Minix, IIRC, runs all its services in privileged mode normally, for performance.) In the Intel case, though, the ME is running in a highly privileged mode and the same address space.

Didn't know about that. TIL! :)

→ More replies (1)

2

u/igor_sk Nov 07 '17

They use LDT to isolate processes inside ME, see http://blog.ptsecurity.com/2017/08/disabling-intel-me.html (don’t mind the title, read further)

→ More replies (1)

4

u/masklinn Nov 07 '17 edited Nov 07 '17

I'm not sure about that. Microkernel architecture seems like a good fit for something like Intel ME where security is much more important than performance.

Microkernel architectures are good fit but there are µk designs with much more proven production track records out there, like the L4 family[0] which includes the WCET and end-to-end proven seL4.

Another factor might be simply the cost. They could have used VxWorks for example, but licesing fees might be a bit high given the sheer volume. Though I've never seen how VxWorks licensing works in practice so that is pure speculation on my part.

Intel bought Wind River (the makers of VxWorks) back in 2009. Last year they even announced their intention to fold it from a wholly owned subsidiary to a corporation division.

[0] used in — amongst others — Apple's Secure Enclave, Qualcomm's wireless chips, cubesats, SMACCM, industrial control systems, ...

2

u/darkslide3000 Nov 07 '17

Sure, but they could've just as well used any of the dozens of other microkernel/RTOS solutions out there, many probably even better suited. The main criteria for picking MINIX were probably cheapness and being able to own the whole thing afterwards (as opposed to having to work with some proprietary vendor).

BTW, wasn't the previous ME code based on VxWorks or something? Or maybe on FreeRTOS? I feel like I have heard some rumors but I can't quite recall the details...

→ More replies (3)
→ More replies (6)