Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

41% Positive

Analyzed from 2590 words in the discussion.

Trending Topics

#mte#google#security#pixel#grapheneos#graphene#apps#system#don#more

Discussion (54 Comments)Read Original on HackerNews

chekibrekiabout 2 hours ago
For anyone else not knowing what MTE stands for:

> Memory safety bugs, which are errors in handling memory in native programming languages, are common code issues. They lead to security vulnerabilities as well as stability problems.

>Armv9 introduced the Arm Memory Tagging Extension (MTE), a hardware extension that allows you to catch use-after-free and buffer-overflow bugs in your native code.

https://developer.android.com/ndk/guides/arm-mte

delta_p_delta_xabout 1 hour ago
MTE is essentially hardware-accelerated AddressSanitiser[1].

[1]: https://clang.llvm.org/docs/AddressSanitizer.html

protimewasterabout 1 hour ago
Unfortunately, the headline is somewhat optimistic compared to the reality, I think.

The thread makes it sound like it could have been disabled due to errata or performance issues. Basically, it looks like the software Google is shipping intentionally doesn't use MTE on the Pixel 11 hardware. That raises the question of...what does Google know is wrong with MTE on the Pixel 11?

worldsavior44 minutes ago
Nothing is wrong. They just don't use MTE yet, they probably have other priorities. They wanted to save some costs until they will use MTE, so they removed some hardware acceleration and downgraded the GPU. Simple as that.
Yokolos34 minutes ago
I've read that there's a significant performance cost to MTE on Android (or on Tensor). It might just be that.
OneDeuxTriSeiGo17 minutes ago
There's only a significant cost to synchronous MTE.

MTE ships two modes. synchronous mode and asynchronous mode. SYNC is slower but gives you far better traces and throws an SEGV_MTESERR as soon as violations happen. ASYNC however is async so there's a bit of a delay between a violation and the "catch" that throws SEGV_MTEAERR.

Strictly speaking async is worse for security because there's a brief window of time where the process "gets away with it" but the main differentiator is that because things don't stop the moment the violation occurs, SEGV_MTEAERR traces tend to be some degree of "out of date" vs SEGV_MTESERR which capture the exact state of the world the moment the error occurs.

The main tradeoff here is that async MTE has basically negligible cost. Something like 1-5% in practice but in microbenchmarks you can see up to 50%. Vs synchronous MTE where the penalty is on average closer to like 10-15% but in microbenchmarks it can be like 5-6x slower.

So yeah the perf cost is there but it's really not a major issue.

------------

The main issue is that apps and services crash when an MTE segfault occurs. So this means that to the uninformed end user apps appear spuriously unstable with no meaningful context. And it's not just apps. On graphene I see MTE segfaults semi regularly from various system daemons (mainly related to GPS/nav) and occasionally in Google Play Services itself.

From time to time I get them in Youtube and I constantly get them in the Twitch app. It's very annoying and the apps just crash when you happen to do some particular action leaving you walking on your toes to avoid accidentally tapping whatever magic pattern happens to invoke a MTE SIGSEGV until the next update. Doubly so since most apps provide no meaningful interface for uploading log traces to report these issues.

-------------

If Google wanted to roll this out without the spurious crashes they'd need to deploy it and eat the minor perf hit but they'd need to register a global signal handler to capture these MTE SIGSEGVs and report them back to the services in question without crashing the app.

And most app devs don't care so they'd be taking a minor (or major) perf hit in exchange for logging errors that developers always ignore. Doubly so in the modern day of "just have AI fix/do XYZ and who cares about the consequences as long as it runs".

I'm not surprised they dropped it but I do honestly wish they'd forced the issue and just deployed it and forced apps to fix their shit.

iamnothereabout 1 hour ago
It’s absurd that a small project like Graphene is able to run rings around a giant like Google in the security sphere. Almost makes you wonder if some of those vulnerabilities are intentionally allowed to exist.

Vulnerabilities in the world’s most popular (by volume) mobile OS could provide a plausibly deniable global espionage backdoor.

surajrmalabout 1 hour ago
The perception that they are able to run rings around Google is not necessarily an accurate one. There are tradeoffs in any engineering situation and GrapheneOS devs make different ones based on different requirements. Google is one of the reasons MTE even exists. I don't think GrapheneOS devs would be capable of helping push forward that technology in the same capacity.
iamnothere43 minutes ago
Fair, and also Google is not a monolith. I’m sure that their own security experts who helped push things like MTE are also confused and frustrated by the lack of internal adoption.

A lot of heavy lifting is involved at the lower levels of security and Graphene doesn’t have to deal with this work, generally. I guess my surprise comes at the “fit and finish” stage where Google regularly seems to be lacking.

serf39 minutes ago
>Almost makes you wonder if some of those vulnerabilities are intentionally allowed to exist.

the fact that someone can say that post-Dual_EC_DRBG/project-rubicon/eternalblue/eternalromance exposure boggles the mind.

delichon31 minutes ago
There's a lot of speculation that US model censorship around "cyber capabilities" is about protecting an inventory of non-public vulnerabilities used for intelligence purposes. That same explanation could cover Google's MTE actions as a result of pressure from intelligence agencies. Nobody should be surprised if they prioritize what they see as national over personal security.
demonshreder44 minutes ago
Just to nitpick, the facilitation by AOSP & ARM is available so it is not about the OS but about Google as a Hardware manufacturer.
moonshot5about 1 hour ago
AOSP eng here;

I don't interact with Graphene or any of their folks at all; I'm just a distant observer like most folks here.

Still, I can't help but think that Graphene seems to want to complain about everything and anything that doesn't fit their niche use case. (As much as it seems beloved here, people that flash custom Android OSs are the very definition of niche users.)

My personal attitude to Graphene seems to get a bit more negative with each one of these "rants" and I doubt I'd go far out of my way to help them, even if I had exposure to them.

embedding-shapeabout 1 hour ago
> that Graphene seems to want to complain about everything and anything that doesn't fit their niche use case

What would you want them to complain about instead? Of course they'll complain about that, just like Googlers will complain about things affecting their stock price, no one is surprised that people care about stuff they're personally involved in, it makes a lot of sense.

Now if these complaints weren't accurate, then I'd walk with you and feel a bit more negative with each piece. But the ones I've looked into, have been spot on, so who cares if it's for their specific niche? I expect them to care about their niche, that's why those people all work together in that organization in the first place.

Iolaumabout 1 hour ago
Even in the EU spyware use is prevalent (and i 'd guess everywhere else in the world). There have been many scandals of government authorized commercial spyware been deployed against journalists. Is it really that niche a mobile OS that tries to not be exploitable by them?
Borealid5 minutes ago
Graphene doesn't position itself against spyware.

For example, a user being able to inspect and edit the files written by an app, no matter where or how those files were written, would be an anti-spyware feature: you could better observe the behavior of a closed-source application.

Grapene opposes this feature because the app security model protects the app AGAINST the device user editing or reading protected files.

Graphene's philosophy is enforcing the Android security model. The Android security model gives guarantees to the app developer about how their app can behave, even where the device's owner wishes otherwise. See: Play Integrity.

edent38 minutes ago
Perhaps they complain because that's literally the only way to get Google to take notice?

Let's be real, AOSP doesn't exist any more. Google have closed down nearly everything. All the development happens in private, you've stopped addressing bugs raised by the public, the source of patches are only infrequently released, device trees are gone.

Wouldn't you complain?

WarmWashabout 1 hour ago
When you are a minority you have to be incredibly loud for any chance to sway things your way.

Not saying whether it's a good thing or a bad thing, but just the nature of reality.

riedelabout 1 hour ago
I personally would wish that the AOSP communities would work together. I would love to see some oft their work to also land on other devices even if that's not 100% secure without bootloader relocking. It sometimes seems to me that the perfect seems to be the enemy of the good sometimes. I still understand their sentiment and their goals. I hope that the Motorola thing takes off. Still think a crossover with true aftermarket roms would not hurt.
Cider99869 minutes ago
You might not like their style of speech, at least they care about their users. Maybe Google uses nice flowery language that makes the reader feel nice—IDC—actions speak louder than words.

Stock Pixel is an awful experience. So many useless notifications, popups, ads, privacy not by default.

Company: "We care about your privacy" meanwhile 1400 corporations they share data with

GrapheneOS: "There's zero telemetry in GrapheneOS"

The more you read the more you realize they are nearly always correct.

delichon24 minutes ago
This doesn't read as a rant to me, but as calm and factual, regarding a genuine security regression that merits public attention. What is your interest in mischaracterizing it?
iamnothereabout 1 hour ago
Security shouldn’t be a niche use case. There’s a constant trickle of CVEs, and spyware vendors are known to abuse these exploits in their software. All this on devices that are reachable in the US through a text or MMS, sent to an easily located 10 digit number that isn’t easily changed. These are devices that people now use for all kinds of sensitive tasks!

Security should be the number one priority, frankly. Graphene has shown that this is possible, and they have tried multiple times to get Google to integrate their work.

mmoossabout 1 hour ago
I'm not an AOSP engineer, but that was my thought reading GOS's comments: Why be negative toward the people who you want help from? They don't need more stress in their day and wouldn't want to engage, with the promise of enjoying more of the same treatment. If it's consolation, much of their communication seems the same - it has nothing to do with AOSP or Google. :)

Communication is a challenging skill and not all good engineers are good at it. It's stressful to be in a role that demands lots communication if you feel you aren't good at it (I'm not speaking for GOS leaders - I don't know what they think).

Going out on a limb, hoping it helps - the most powerful single solution IME is compassion: Compassion toward yourself and toward others. They are engineers like you, trying to get through a stressful day like you, and they could use some pleasant interaction from someone who understands what it's like. You could use some of that too. Running GOS isn't easy, I'm sure.

colincowardlyabout 1 hour ago
So not only a price increase: less RAM, performance scraping backwards, crippled/lost features, a camera system that captures stuttering audio and video imperfectly often, and Pixels dropping out of AOSP.

Google Pixel has the marketshare it deserves.

megagpt11 minute ago
There's no phone that isn't like that this year
chasilabout 1 hour ago
"Aside from MTE, Google downgraded the Pixel 11 series GPU compared to the Pixel 10 series in addition to reducing RAM for base Pro models."

I will make a note not to buy this model.

Is this the worst quality control lapse since the Huawei Nexus core failures?

rkozik1989about 1 hour ago
Phones typically have 2 operating systems: one to handle telephonic functions like managing tower connections and separate operating system for user applications. The security implication here is that the telephonic operating system has access to the same system resources as the application operating system at the same time, right? The problem is your data is always available in plaintext to the telephonic OS because it has to be stored somewhere before it gets encrypted, so assuming graphene OS doesn't handle both functions its not a perfectly closed loop system.
bramhaagabout 1 hour ago

  > The security implication here is that the telephonic operating system has access to the same system resources as the application operating system at the same time, right?
It shouldn't. As per https://grapheneos.org/faq#baseband-isolation:

  > The baseband is isolated on all of the officially supported devices. Memory access is partitioned by the IOMMU and limited to internal memory and memory shared by the driver implementations. The baseband on the officially supported devices with a Qualcomm SoC implements Wi-Fi and Bluetooth as internal sandboxed processes rather than having a separate baseband for those like earlier devices.
surajrmal41 minutes ago
No, shared peripherals need to go through a central arbiter for access. In the case of things like storage the AP's OS, eg android, provides that roll. This is also true for the OS that runs under the trustzone. Be careful about spreading rumors without validating them.
ignoramousabout 1 hour ago
> Phones typically have 2 operating systems

A separate OS runs the security chip (like Titan). Another could be running in EL3 (Trusted Execution Environment), yet many could be running in Realms (mutually untrusted VMs). The later stage bootloaders and some firmware (ex: GPUs) themselves could be considered OSes in their own right.

w3ll_w3ll_w3llabout 1 hour ago
Also, the SIM card has its own operating system.
bushwart19 minutes ago
Shouldn't the headline read "GrapheneOS: Pixel 11 has bare minimum hardware level MTE support"?

As currently written, one would take away an entirely different message from the headline.

loufeabout 1 hour ago
I am almost certainly going to live with whatever drawbacks in terms of camera quality, battery life, etc. Come with their Motorola phone when it's time to upgrade. MTE is such a non-negotiable for modern digital security on phones it's crazy Google would be so okay with this regression.

What's especially stuck in my mind lately is how insecure basically all desktop OS' feel. In at the point of buying a second and third GPU for my desktop to run my email and browser in dedicated VMs because everything feels as watertight as a sieve. Qubes seems more and more appealing in a world where every open source software supply chain is under seige, corporate software underprioritizes security, and most sites will stop at almost nothing to surveil you.

I truly lament this new reality where MY computers I PURCHASED feel to use like I'm reaching blind into a paper bag filled with razor blades.

greesilabout 2 hours ago
Boo. I was delighted by its introduction in pixel 8. I thought this was a resurgence of the old Google, actually giving a f about software, security and the end user.

iPhone 17 has it now. maybe Google's work here is done

https://www.reddit.com/r/apple/comments/1ndcrug/iphone_17_in...

hk1337about 2 hours ago
So, where does the restriction for side loading apps live, on the device or the OS? Curious about getting the Pixel 11 Pro if/when I can install GrapheneOS.
alpaca9about 1 hour ago
GrapheneOS themselves said it wasn't worth getting the 11 over the 10 on Twitter. It has a worse GPU and less RAM, and the increase in CPU speed is so negligible that often you end up with better performance using the previous generation. In addition, GrapheneOS isn't even available on 11 series devices yet.
hk1337about 1 hour ago
interesting. what about the side loading apps? I assume that's an OS and Graphene would likely allow it?
alpaca9about 1 hour ago
Sideloading has always been allowed, and that new "advanced flow" is something entirely decided by the OS so I don't think it has or will have any effect with GrapheneOS use.

It's actually recommended to get least of your apps as possible via the play store and use 3rd party stores if you are going for maximum privacy or de-googling.

electric_mayhemabout 1 hour ago
I’m in the process of switching from an iPhone to Graphene on a pixel 10 Pro.

I can load apps from the web (disabled by default iirc), the local file system, a sandboxed instance of the Play store, Obtainium, f-droid, wherever.

Took some getting used to, but it’s nice feeling like I actually control and can choose how my phone works.

Advertisement
mmoossabout 1 hour ago
My strong instinct is that GrapheneOS's plan could be problematic:

Generally, do not to invest in features that the upstream vendor isn't fully committed to. It might work today, but tomorrow or next year, etc., it might not. They might even deploy other things that are incompatible or do other things that assume the feature is disabled. In fact, plans to do those things might be the reason they disabled MTE.

Also, never support products or projects that won't work well. When someone's Pixel 11 is slow, they will think and post that 'GrapheneOS is slow'. Blaming Google will not be very credible and will look like you're just trying to duck responsibility. Your brand's name goes whatever you release; people will associate their experience with GrapheneOS (also because GOS is the new, unconventional thing; Google is the established norm); if their experience is bad, they will associate it with GOS.

drabbiticus42 minutes ago
12 hours before this was posted to HN: https://grapheneos.social/@GrapheneOS/117198980596943121

GrapheneOS: "Multiple Google engineers we've contacted have said they aren't able to give us any information about this so we're left doing reverse engineering and relying on leaks. The leaks do not seem reliable and do not match what we see. Our concern is that MTE may actually be broken due to CPU errata."

Noaidiabout 2 hours ago
A company making multi billions of dollars in profit still looking to save money selling their flagship phone?
jmm5about 2 hours ago
Google makes money, I'm not sure Pixel does.
ulfwabout 2 hours ago
Zero chance the Pixel division is net positive
Grombobulousabout 1 hour ago
I think there’s a very high chance it’s net positive. It’s growing quickly and approaching 10% marketshare for premium phones (the most profitable segment) in the US.

https://axis-intelligence.com/google-pixel-statistics/

They’re also strongly tied in with Google Fi which is almost certainly very profitable.

genxy38 minutes ago
It is net positive for keeping folks in the Google Ads funnel. That is Androids purpose after all.
rootsudoabout 1 hour ago
agreed h/w negative, but how far removed is pixel from android itself and then the ad tech platform, playstore, etc in general?
m00dyabout 2 hours ago
For those don't know you will either code in Rust or make sure MTE enabled.
user_7832about 2 hours ago
To clarify, regarding the confusion: it was disabled, leading them to think it didn't outright exist.

Why disabled? Well, its performance is apparently quite poor. But why?

...Apparently to save money.

OneDeuxTriSeiGo9 minutes ago
The performance isn't really that bad but it's definitely a hit. The bigger issue is that it causes apps and services and occasionally also the kernel to throw MTE SIGSEGV which becomes a substantial problem if the developers for said apps or services don't care enough to fix them.

So the TLDR is that the main issue is that it causes a whole bunch of stuff to segfault when bad memory accesses occur but where they wouldn't segfault without MTE. It makes the phone feel unstable to average users since stuff just crashes with no real end-user-facing explanations.

readthenotes1about 2 hours ago
The thread made it sound like it was more- that the actual release of pixel 11 did not have the firmware to support MTE, not that it was just disabled.

Is the thread wrong or did I misread it?

user_7832about 2 hours ago
Nah sorry my bad. I mixed up "it's currently disabled" and "the hardware is there" into "it was earlier disabled".
mmoossabout 1 hour ago
> Apparently to save money.

No evidence of this is presented.