News for hackers. Stuff that matters.
Re:Tales of the M1 GPU by dist1ll on Tuesday November 29, 2022 @01:38PM (#33791375)
There's this great USENIX talk by Timothy Roscoe [1], which is part of the Enzian Team at ETH Zürich.

It's about the dominant unholistic approach to modern operating system design, which is reflected in the vast number of independent, proprietary, under-documented RTOSes running in tandem, and eventually leading to uninspiring and lackluster OS research.

[1] https://youtu.be/36myc8wQhLo

Re:Tales of the M1 GPU by lbotos on Tuesday November 29, 2022 @01:40PM (#33791408)
Also one by Bryan Cantrill recently around the stack of black boxes:

https://www.osfc.io/2022/talks/i-have-come-to-bury-the-bios-...

Re:Tales of the M1 GPU by est31 on Tuesday November 29, 2022 @02:13PM (#33791809)
I think making it harder to build an OS by increasing its scope is not going to help people to build Linux alternatives.

As for the components, at least their interfaces are standardized. You can remove memory sticks by manufacturer A and replace them with memory sticks from manufacturer B without problem. Same goes for SATA SSDs or mice or keyboards.

Note that I'm all in favour of creating OSS firmware for devices, that's amazing. But one should not destroy the fundamental boundary between the OS and the firmware that runs the hardware.

Re:Tales of the M1 GPU by dist1ll on Tuesday November 29, 2022 @02:28PM (#33792041)
Building an OS is hard. There's no way around its complexity. But closing your eyes and pretending everything is a file is a security disaster waiting to happen (actually, happening every day).

And furthermore, OS research is not only about building Linux alternatives. There are a lot of operating systems that have a much narrower focus than full-blown multi-tenant GPOS. So building holistic systems with a narrower focus is a much more achievable goal.

> As for the components, at least their interfaces are standardized

That's not true once you step into SoC land. Components are running walled-garden firmware and binary blobs that are undocumented. There's just no incentive to provide a developer platform if no one gives a shit about holistic OSes in the first place.

Re:Tales of the M1 GPU by MisterTea on Tuesday November 29, 2022 @02:49PM (#33792323)
> But closing your eyes and pretending everything is a file is a security disaster waiting to happen (actually, happening every day).

What is this in response to? GP never mentioned file interfaces.

Re:Tales of the M1 GPU by Godel_unicode on Tuesday November 29, 2022 @03:18PM (#33792678)
Sure they did, they talked about the abstractions present in Linux.
Re:Tales of the M1 GPU by MisterTea on Wednesday November 30, 2022 @12:29PM (#33804154)
I'd like to know why they believe this.
Re:Tales of the M1 GPU by GekkePrutser on Tuesday November 29, 2022 @04:01PM (#33793242)
> But closing your eyes and pretending everything is a file is a security disaster waiting to happen (actually, happening every day).

How so? I can see the limited access control in Linux is an issue, and for this reason augmented security MAC (Mandatory Access Control) controls exist like SELinux and AppArmor.

But I don't see how the nature of everything being a file is a vulnerability in itself.

I'd be happy to learn how though.

Re:Tales of the M1 GPU by dist1ll on Tuesday November 29, 2022 @04:21PM (#33793469)
It was a lame attempt at humor, a roundabout way of referring to the simplifying assumptions that *nix systems generally make of the underlying machine.
Re:Tales of the M1 GPU by fanf2 on Tuesday November 29, 2022 @05:29PM (#33794280)
If you want to follow the principles of capability security, then a key part of the strategy is to eliminate “ambient authority”, that is, any kind of globally accessible way of obtaining a capability.

In traditional unix-like systems, file descriptors are very close to capabilities. But the global filesystem namespace is a source of ambient authority.

There are a couple of ways to fix this issue: fine-grained per-process namespaces like Plan 9, so that the filesystem’s authority can be attenuated as necessary, so it becomes more like a capability. Or eliminate absolute pathnames from the API, so you have to use functions like openat() to get an fd relative to an existing fd.

Re:Tales of the M1 GPU by simonh on Wednesday November 30, 2022 @01:35AM (#33797673)
> There are a lot of operating systems that have a much narrower focus than full-blown multi-tenant GPOS.

I hear some of them are used to manage embedded components in GPOS systems. Oh, wait…!

Re:Tales of the M1 GPU by dist1ll on Wednesday November 30, 2022 @08:27AM (#33800359)
Narrow focus =/= only control one hardware component