News for hackers. Stuff that matters.
Re:Apple Helps Asahi Linux by pcr910303 on Friday December 17, 2021 @10:40AM (#29593636)
Everyone is like how having Asahi makes Apple more profit, so it makes sense in a business sense, e.g... but am I the only person thinking that this is probably just one or two core kernel engineers just feeling good someday and decided to provide this to Asahi? I don't think the high-level people would really know that these changes even existed...
Re:Apple Helps Asahi Linux by dev_tty01 on Friday December 17, 2021 @10:59AM (#29593935)
I agree that this is mostly a small number of engineers (with approval) being helpful. This has almost no bearing on Apple profit. The number of people who want to run Linux on an Apple Mac is very small compared to their other markets. The only tangible benefit to the company is that this may add a bit of goodwill and slightly reduce the volume of the vocal detractors.

As others have pointed out, it may also help if they are moving to add back bootcamp support for Windows (on ARM).

Apple has added better support for virtualization at the OS level in recent years and that handles the needs of most devs.

Re:Apple Helps Asahi Linux by GeekyBear on Friday December 17, 2021 @11:19AM (#29594244)
> I agree that this is mostly a small number of engineers (with approval) being helpful.

The M1 Macs have their security settings applied per partition instead of per computer.

If you set the bootloader to "permissive security policy", you can boot from a Linux partition without effecting the security of the system when you boot from the MacOS partition.

This is a big change over the way things have previously worked on iOS (where there is no option to unlock the bootloader) or the Mac. It probably wasn't a quick hack that a couple of guys stuck in when nobody was looking.

Re:Apple Helps Asahi Linux by sharikous on Friday December 17, 2021 @03:37PM (#29598018)
The fact that you can boot the M1 from a different OS (but you still need the internal SSD even if you boot from an external disk) is a corporate decision.

The fact that someone decided to provide support for a raw image instead of a Mach-O file could very well be the work of someone ar a much lower level.

Re:Apple Helps Asahi Linux by larkost on Friday December 17, 2021 @05:43PM (#29599257)
I disagree with your assertion that the requirement for the internal SSD was a marketing decision (your word was "corporate", but that could mean anything). I think that it was probably a technical decision.

Likely there is a very small bit of bootstrap code stuffed into a ROM somewhere, and the only thing that bootstrap code enables it to read from some protected part of the onboard SSD, which then gives you the next round of bootstrap enabling you to read from other devices (e.g. all the code needed to power up and use the hardware needed to get to an external drive, and the code to read the partitions on said drive).

Someone made the decision that it would be better to use the bit of internal SSD (since it would "always" be there), that could be changed later, rather than hard-code this into comparatively expensive silicon. Unless your internal drive goes bad, it is a pretty good compromise. I seriously doubt that anyone in marketing cared about this.

Re:Apple Helps Asahi Linux by marcan_42 on Friday December 17, 2021 @08:21PM (#29600496)
Support for external disks massively increases the attack surface of the security-sensitive iBoot bootloader, and anything messing with USB (nevermind Thunderbolt) is almost guaranteed to have exploitable attack surface. This was absolutely a technical decision. iBoot is a lot simpler not supporting external storage.

The SecureROM boots iBoot1 from NOR flash, then that has the SSD driver code. It would certainly be possible to add support for external storage, as long as it still fits in NOR. But I doubt they will.

Re:Apple Helps Asahi Linux by mehrdada on Sunday December 19, 2021 @04:10AM (#29612498)
(not the GP) I think you are attacking the strawman here, as your own post admits, by interpreting "corporate" as exclusively "marketing" and not including technical folks in it. I agree with you the decision is also partially driven by technical folks at the company, but given macOS on ARM is really closer to iOS, the natural course of action would have been to simply clone the iOS model of secure boot, not to rethink it. That observation alone almost certainly implies it has been given explicit thought at relatively senior levels of the engineering hierarchy, at the very least.

My take is the company deliberated about this trade-off quite explicitly at some length and decided the Mac serves the world in its current capacity as a "computer" (i.e. the truck in the truck vs car analogy) and that they do not wish to limit the capabilities of the existing Mac that people love in any shape or form by moving to ARM, which was highly speculated and ripe for potential backlash. They probably decided the Mac would be an "open" system to some degree (at least as open as it already was) and iOS would be the closed mass market computing device optimizing for security and dependable end-to-end experience.

Re:Apple Helps Asahi Linux by gsnedders on Friday December 17, 2021 @12:02PM (#29594920)
Note there's also macOS-related reasons to use the different modes:

Reduced security mode is needed to boot into outdated macOS installs (specifically, I believe this is "outdated, insecure, at install-time"), along with loading kernel extensions (which aren't supported in full security mode on Apple Silicon).

Permissive security mode is needed to boot into macOS with a custom XNU kernel.

But yes, this is a significant change to iOS devices, but not to older macOS devices.

Re:Apple Helps Asahi Linux by GeekyBear on Friday December 17, 2021 @12:23PM (#29595237)
> But yes, this is a significant change to iOS devices, but not to older macOS devices.

Previously the Macs had their security settings applied per computer, not per partition.

Re:Apple Helps Asahi Linux by pbronez on Friday December 17, 2021 @12:11PM (#29595048)
Oh cool, I wasn't aware of that. I like that option a lot. It's nice to have access to both a walled garden and an open one.
Re:Apple Helps Asahi Linux by saagarjha on Friday December 17, 2021 @07:01PM (#29599855)
> It probably wasn't a quick hack that a couple of guys stuck in when nobody was looking.

I mean, that's not what the parent comment said:

> I agree that this is mostly a small number of engineers (with approval) being helpful.

Here's some more details from someone who actually worked on this: https://twitter.com/XenoKovah/status/1339914714055368704

Re:Apple Helps Asahi Linux by dasil003 on Friday December 17, 2021 @02:23PM (#29597127)
I don't disagree with what you're saying, but focusing on the number of people that want to run Linux on a Mac and the tangible short-term benefits misses the larger dynamics that could play out over time.

The bigger opportunity is expanding the footprint and flexibility of Apple Silicon in general. As a developer the new MacBook Pros performance characteristics were too juicy to ignore, the main pain points are virtualization and architecture shift. I'm not knowledgeable enough about the low level details to have a fully formed idea of impact of these pain points yet—maybe Apple Silicon and ARM support are equivalent in practice when it comes to development/deployment—but it certainly makes me feel more comfortable paying the Apple premium the more diverse and open the supported use cases are.

Re:Apple Helps Asahi Linux by mekster on Friday December 17, 2021 @11:02PM (#29601514)
Maybe they want to ship Apple Silicon to server vendors?
Re:Apple Helps Asahi Linux by m12k on Friday December 17, 2021 @10:57AM (#29593917)
Yep, there seems to be this tendency to evaluate all the actions of all the people inside a company as a single coherent whole, expecting there to be single coherent thread running through it all. It's almost like people think of the company as a single person - a kind of anthropomorphization maybe. Companies may strive for alignment, but they're not the Borg, and they certainly don't have the capacity to micromanage every single decision for every single employee.
Re:Apple Helps Asahi Linux by frosted-flakes on Friday December 17, 2021 @12:09PM (#29595034)
It's interesting how American/Canadian English uses the singular for groups of people, while British English uses the plural:

"Apple helps Asahi Linux" (American).

"Apple help Asahi Linux" (British), as if there's a "people" after Apple.

Re:Apple Helps Asahi Linux by handelaar on Friday December 17, 2021 @01:55PM (#29596650)
As someone who has worked as a sub (copy-editor) in the UK for many years in the past I cannot begin to describe exactly how completely incorrect this is.
Re:Apple Helps Asahi Linux by tomComb on Friday December 17, 2021 @03:28PM (#29597922)
If you are going to write something like that you really should explain.
Re:Apple Helps Asahi Linux by nathancahill on Friday December 17, 2021 @04:26PM (#29598540)
Well he said he can't begin to describe...
Re:Apple Helps Asahi Linux by spacedcowboy on Friday December 17, 2021 @03:33PM (#29597974)
Have to agree - as a Brit, using 'help' there is just ... wrong
Re:Apple Helps Asahi Linux by toyg on Friday December 17, 2021 @06:10PM (#29599456)
Not really. It's absolutely normal to see, for example, sports clubs and teams used as plural noun in the UK press; hence by extension it cann be used for any org. I know because it's a big gotcha for us Europeans, who tend to use the singular there.
Re:Apple Helps Asahi Linux by badtoro on Friday December 17, 2021 @02:14PM (#29596964)
British or American version?
Re:Apple Helps Asahi Linux by azinman2 on Friday December 17, 2021 @12:27PM (#29595283)
That seems odd to me (as an American) because Apple is not plural, and often times when it is a group of people by identity you do use the plural for them (eg Americans help Asahi Linux). Would British folks say “England help Asahi Linux” as well?
Re:Apple Helps Asahi Linux by handelaar on Friday December 17, 2021 @01:57PM (#29596670)
No, they would not. Don't mistake erroneous colloquial speech for what's "correct" in written English. This is wrong, and so is the original example.
Re:Apple Helps Asahi Linux by frosted-flakes on Friday December 17, 2021 @01:14PM (#29595939)
Yes, I believe that would be correct. Apple is plural in the sense that it is made up of multiple people acting in unison. Same as "My family are visiting over Christmas."

However, the word Americans is not a group of people in the same sense that USA, England, Apple, or family is. Its kind of like the distinction between people and persons.

Edit: the term for words like family is "collective noun". More at https://blog.harwardcommunications.com/2017/02/07/the-family...

Re:Apple Helps Asahi Linux by nopenopenopeno on Friday December 17, 2021 @01:14PM (#29595944)
Another American here. I never knew this. How common is this? Have I just assumed it’s a typo every time I see it? Or has (have?) the British media just become more Americanized like most places?
Re:Apple Helps Asahi Linux by frosted-flakes on Friday December 17, 2021 @01:27PM (#29596155)
I am Canadian myself and generally follow the American style, but I believe it is very common, though not universal. Scanning The Guardian, they (!) seem to follow the American style, though this paragraph popped out at me where they use both:

> Labour [singular] takes comfort partly from the fact it expended little effort or money on the seat, allowing the Lib Dems [plural] to declare themselves in the best position to challenge the Tories.

But an American publication would probably write the same, because the name Lib Dems is itself pluralized.

Re:Apple Helps Asahi Linux by Smaug123 on Friday December 17, 2021 @04:28PM (#29598557)
"Labour" is a party name, and it is singular. "Liberal Democrats" is a party name, and it is plural. The verb is agreeing with the number of the noun, just as is usual in English.
Re:Apple Helps Asahi Linux by Ar-Curunir on Friday December 17, 2021 @05:49PM (#29599309)
I don't think that's the case; British English would say "X help Y" when X is a collective noun referring explicitly to a group of people, eg a football team ("Manchester United have scored"), or a band ("Radiohead are playing a concert today"). This means that "Spain (the country) is ..." but "Spain (the football team) are ...".

See here for details: https://editorsmanual.com/articles/collective-nouns-singular...

Re:Apple Helps Asahi Linux by frosted-flakes on Friday December 17, 2021 @07:09PM (#29599919)
That's more or less what I said, except a lot more nuanced.
Re:Apple Helps Asahi Linux by sockbot on Friday December 17, 2021 @01:17PM (#29595991)
It's not that American English uses singular for groups of people. It's that American English sees Apple as a singular corporate entity.

British English peers past the corporate veil to see the singular corporation as it's underlying people.

Re:Apple Helps Asahi Linux by frosted-flakes on Friday December 17, 2021 @01:19PM (#29596027)
American English generally uses singular for collective nouns. British English generally uses plural. There are exceptions (such as if the name itself is pluralised), but that's the general rule. Whether its "peering past the corporate veil" or not is neither here nor there, as they treat all collective nouns this way.
Re:Apple Helps Asahi Linux by handelaar on Friday December 17, 2021 @01:58PM (#29596692)
No. Singular nouns require singular verbs, in both countries.
Re:Apple Helps Asahi Linux by ninkendo on Friday December 17, 2021 @04:24PM (#29598524)
Sure, but there is some disagreement across the pond on which nouns are singular.

Brits would be more likely to say “Led Zeppelin are on stage”, while Americans would prefer “Led Zeppelin is on stage”, and the reason is the disagreement between whether Led Zeppelin is singular (one band) or plural (4 people constituting the band.)

Re:Apple Helps Asahi Linux by hackmiester on Friday December 17, 2021 @06:43PM (#29599704)
I wish you could provide some more details or substance so that I might know why your experiences contradict mine.
Re:Apple Helps Asahi Linux by travisgriggs on Friday December 17, 2021 @12:12PM (#29595077)
Is that because whatever company we work for ourselves, those in charge tend to push that narrative so much?

We get constantly bombarded by our own employers with messages of unity and vision statements and the business plan and the message etcetera. So even when we pause and think about our own experiences and we realize how many varied voices and agendas there are within, we’re conditioned when referring to a brand employer like Apple to reduce them to a single point of view.

Re:Apple Helps Asahi Linux by JohnBooty on Friday December 17, 2021 @01:41PM (#29596376)

    we’re conditioned when referring to a brand employer 
    like Apple to reduce them to a single point of view. 
Maybe? Americans also tend to be individualistic (often to a fault, many would say)so I'm not sure there's a cultural significance at work here.

It's probably informative that British English tends to refer to most (all?) collective nouns this way. It's not some corporation-specific thing.

Sports teams are the most obvious example - a Brit would say "Team A have defeated Team B" rather than "Team A has defeated Team B."

Re:Apple Helps Asahi Linux by tombert on Friday December 17, 2021 @01:46PM (#29596473)
I didn't work on the OS team, but when I worked at Apple, if I had snuck in an altruistic change without direct order/approval, I would be in trouble. I suspect there's a good chance that the higher-ups are aware of this.
Re:Apple Helps Asahi Linux by bestouff on Friday December 17, 2021 @10:48AM (#29593765)
This may have security implications, I highly doubt they would be authorized to make such a change without consulting anyone.
Re:Apple Helps Asahi Linux by marcan_42 on Friday December 17, 2021 @11:07AM (#29594073)
The shift to moving the Mach-O parsing from iBoot to kmutil has positive security implications. Adding a raw input option on top of that has zero additional security implications. It's a strict subset of the attack surface.
Re:Apple Helps Asahi Linux by uranusjr on Friday December 17, 2021 @11:29AM (#29594410)
I believe parent is not talking about the security implications of the contributions themselves, but the security implications of the act of making contributions as an Apple employee. And it’s a reasonable assumption; from my (not many) interactions with Apple employees in OSS world, they are generally very careful about doing this sort of things, and I would be very very surprised if not at least a few managers know about this beforehand.
Re:Apple Helps Asahi Linux by marcan_42 on Friday December 17, 2021 @11:33AM (#29594454)
No Apple employees made any OSS contributions here. They just added a tiny feature to an existing Apple tool that happens to make our lives easier.
Re:Apple Helps Asahi Linux by uranusjr on Friday December 17, 2021 @11:34AM (#29594483)
Yes, sorry, the wording I used was misleading. What I meant by “contribution” is in a broad sense “something that helps”, not actual OSS code contributions.
Re:Apple Helps Asahi Linux by elteto on Friday December 17, 2021 @10:50AM (#29593802)
There is no way that two random kernel engineers pushed a feature that allows booting unsigned kernels on Apple hardware (I'm assuming that's what raw image is?). I don't know how _high_ up it goes but I am very certain it was not some low-level skunkworks thing.
Re:Apple Helps Asahi Linux by marcan_42 on Friday December 17, 2021 @11:08AM (#29594087)
> I'm assuming that's what raw image is?

You're assuming wrong. Booting unsigned kernels on Apple hardware has been possible since January. This just makes it slightly less annoying since you don't need to build a Mach-O binary to do it, and more future-proof since it decouples it from Apple's binary format which they can change the requirements for at any time (as they did this time). It means I don't have to go off and reverse engineer what the new requirements are, I can just stop using Mach-Os and know the raw option will never break (assuming it continues to exist), since there is nothing to break with a raw file.

Apple's machines are designed as an end-to-end ecosystem that suits their needs, and that they can change at any time - open, but without stability guarantees. This feature is effectively an acknowledgement that people using these machines outside of their ecosystem exist, and might want some stability guarantees.

Re:Apple Helps Asahi Linux by elteto on Friday December 17, 2021 @11:58AM (#29594862)
Thanks for the correction. Glad to see these steps being taken by Apple.
Re:Apple Helps Asahi Linux by merbanan on Friday December 17, 2021 @12:08PM (#29595008)
Well I think this falls right into the anti-competitive argument. With the option of booting unsigned code the platform is available for anyone. Microsoft did sign boot loaders so linux can boot, there would have been some kind of fallout if they had not. So the booting of unsigned Mach-O sunds like a minimal action to not let it become a public issue for Apple.

The addition of raw mode sounds like a stable abi for booting linux. The Asahi developers have found "stuff" with the hardware. Just that feedback will be of great value to the continued development of the Apple SoCs. So my guess is that the raw mode is a gift with the expectation to be able to see how the Linux folks solves other issues.

Re:Apple Helps Asahi Linux by tw04 on Friday December 17, 2021 @12:12PM (#29595071)
Why would it become a public issue for Apple? You're going to have a REAL tough time getting the government to intervene because you can't run linux on a macbook. You have literally thousands of alternatives.

And outside of government intervention, the response from the general public will be: who cares? None of them want to or care to run Linux on a macbook. Heck even within the HN community I'm willing to bet the number of folks who run linux as a daily driver desktop on a macbook is a rounding error.

Re:Apple Helps Asahi Linux by jdavis703 on Friday December 17, 2021 @05:56PM (#29599357)
Mac’s have a 16% market share. I don’t think Apple is concerned about antitrust in this part of their business.
Re:Apple Helps Asahi Linux by sixothree on Friday December 17, 2021 @11:11AM (#29594138)
It's not like they're huge contributors to anything open source. I have to agree. This is probably an engineer or two. They may even have personal reasons for wanting it to work.
Re:Apple Helps Asahi Linux by darthrupert on Friday December 17, 2021 @01:10PM (#29595896)
They're not that different people from the rest of us, so why wouldn't some of them want to run Linux themselves on those machines? MacOS isn't that great.
Re:Apple Helps Asahi Linux by bpye on Friday December 17, 2021 @04:40PM (#29598672)
I agree, this seems likely to be a couple folks at Apple trying to be helpful rather than a real policy. If Apple were serious about helping open source efforts they could, for example, release the documentation for their different peripherals and ISA extensions.
Re:Apple Helps Asahi Linux by jjtheblunt on Friday December 17, 2021 @01:48PM (#29596507)
> I don't think the high-level people would really know that these changes even existed...

if anyone on the outside knows, then Federighi (sp?) and insiders know and approved publishing with visibility?

Re:Apple Helps Asahi Linux by manojlds on Saturday December 18, 2021 @03:18AM (#29602792)
Apple Engineers don't even come on a podcast to discuss stuff without thinking and asking internally if it's ok.